Open paulocoutinhox opened 2 years ago
Hi @toge,
Can you help me with this?
It start happen recently, because i used it before without problems.
@paulocoutinhox I'm sorry for late response. I don't know the reason of it.
I think this error message is caused by not libiconv but apple-clang environment.
configure: error: C preprocessor "/lib/cpp" fails sanity check
Can you build other recipe in same environment?
This is strange, because it start recently.
Other packages are not building too: https://github.com/conan-io/conan-center-index/issues/11952
@paulocoutinhox How to obtain the darwin-toolchain/1.0.0@nativium/stable
package?
Hi @uilianries and @toge
It still happen: https://github.com/nativium/nativium-game/actions/runs/2989300262/jobs/4792920747#step:14:440
The darwin toolchain is from here (you help me update it before): https://github.com/nativium/nativium/tree/main/conan/darwin-toolchain
Thanks for any help.
Hi @uilianries and @toge,
I made a standalone simple project to test and show it happening: https://github.com/paulocoutinhox/conan-libiconv
To test:
git clone https://github.com/paulocoutinhox/conan-libiconv.git
cd conan-libiconv
make ios
FYI simple build works fine for me:
arm64 build targeting iOS 12.0 succeeded as well (can't paste build log in the same comment)
Any progress on this issue?
I'm also facing it when try to build iconv/1.16
for armv8
on macos.
@paulocoutinhox Did you find any workaround?
Hi, No :(
We need someone to solve apple problems for conan, because all issues about apple problems still unresolved.
Any progress on this issue? I'm also facing it when try to build
iconv/1.16
forarmv8
on macos. @paulocoutinhox Did you find any workaround?
builds fine on my side:
> conan --version
Conan version 1.53.0
Any progress on this issue? I'm also facing it when try to build
iconv/1.16
forarmv8
on macos. @paulocoutinhox Did you find any workaround?builds fine on my side:
libiconv/1.16 cross-compiled for macOS ARM
> conan --version Conan version 1.53.0
Ok, I tried to build libiconv
without nativium
and it was successful!
So I guess nativium
somehow affects it.
Thanks @kambala-decapitator !
Package and Environment Details
Conan profile
Steps to reproduce
STEPS:
FULL LOG: https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:434
Logs
Click to expand log
``` Run python nativium.py target ios setup [INFO] Running "setup" on target "ios"... [INFO] Building for: armv7/release/ios... Configuration (profile_host): [settings] arch=armv7 arch_build=x8[6](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:7)_64 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=13 os=iOS os.version=9.0 os_build=Macos [options] nativium_arch=armv[7](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:8) nativium_build_type=release nativium_group=ios nativium_product_name=Nativium nativium_project_name=nativium nativium_target=ios nativium_version=1.0.0 nativium_version_code=1 darwin-toolchain:enable_bitcode=True [build_requires] *: darwin-toolchain/1.0.0@nativium/stable [env] Configuration (profile_build): [settings] arch=x[8](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:9)6_64 arch_build=x86_64 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=13 os=Macos os_build=Macos [options] [build_requires] [env] [INFO] Nativium: Extending conan configuration with module game [INFO] Nativium: Extending conan requirements with module game sdl/2.0.20: Not found in local cache, looking in remotes... libiconv/1.16: Building your package in /Users/runner/.conan/data/libiconv/1.16/_/_/build/4ac31d5d0c1627657f3e62f1b22[9](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:10)36dec2[10](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:11)0590 libiconv/1.16: Generator txt created conanbuildinfo.txt libiconv/1.16: Aggregating env generators libiconv/1.16: Calling build() libiconv/1.16: Calling: > ./configure '--enable-static' '--disable-shared' '--prefix=/Users/runner/.conan/data/libiconv/1.16/_/_/package/4ac31d5d0c1627657f3e62f1b22936dec2100590' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' --build=x86_64-apple-darwin --host=arm-apple-ios checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-apple-ios-strip... no checking for strip... strip configure: WARNING: using cross tools not prefixed with host triplet checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make sets $(MAKE)... (cached) yes checking for arm-apple-ios-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking how to run the C preprocessor... /lib/cpp configure: error: in `/Users/runner/.conan/data/libiconv/1.16/_/_/build/4ac31d5d0c1627657f3e62f1b22936dec2100590/source_subfolder': configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details libiconv/1.16: libiconv/1.16: ERROR: Package '4ac31d5d0c1627657f3e62f1b22936dec2100590' build failed libiconv/1.16: WARN: Build folder /Users/runner/.conan/data/libiconv/1.16/_/_/build/4ac31d5d0c1627657f3e62f1b22936dec2100590 ERROR: libiconv/1.16: Error in build() method, line 146 autotools = self._configure_autotools() while calling '_configure_autotools', line [13](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:14)2 self._autotools.configure(args=configure_args, host=host, build=build) ConanException: Error 1 while executing ./configure '--enable-static' '--disable-shared' '--prefix=/Users/runner/.conan/data/libiconv/1.[16](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:17)/_/_/package/4ac31d5d0c1627657f3e62f1b22936dec[21](https://github.com/nativium/nativium-game/runs/7142560975?check_suite_focus=true#step:14:22)00590' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' --build=x86_64-apple-darwin --host=arm-apple-ios COMMAND: conan install /Users/runner/work/nativium-game/nativium-game/nativium/conan/recipe/conanfile.py -pr:b default -pr:h /Users/runner/work/nativium-game/nativium-game/nativium/conan/profiles/nativium_ios_profile -s:h os.version=9.0 -s:h build_type=Release -s:h arch=armv7 -o nativium_target=ios -o nativium_build_type=release -o nativium_arch=armv7 -o nativium_project_name=nativium -o nativium_product_name=Nativium -o nativium_version=1.0.0 -o nativium_version_code=1 -o nativium_group=ios -o:h darwin-toolchain:enable_bitcode=True --build=missing --update WORKING DIR: /Users/runner/work/nativium-game/nativium-game/nativium/build/ios/release/ios/armv7/conan Error: Command execution has failed Error: Process completed with exit code 10. ```