Open saltfishzzh opened 5 years ago
I got a pretty much same error with icu-58.2.
checking whether we are cross compiling... configure: error: in /Users/wsun/workdir/github/meta/build/deps/icu-58.2/src/ExternalICU-build': configure: error: cannot run C compiled programs. If you meant to cross compile, use
--host'.
See `config.log' for more details
make[2]: [deps/icu-58.2/src/ExternalICU-stamp/ExternalICU-configure] Error 1
make[1]: [CMakeFiles/ExternalICU.dir/all] Error 2
make: *** [all] Error 2
I get the same error with macOS 10.15.3 and icu-58.2
error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
make[2]: *** [deps/icu-58.2/src/ExternalICU-stamp/ExternalICU-configure] Error 1
make[1]: *** [CMakeFiles/ExternalICU.dir/all] Error 2
make: *** [all] Error 2
Have you found a workaround or fix for this?
Hi! I found a workaround for this problem. In my case, the deps/meta-cmake
was set to an ancient commit, that's why this problem wasn't fixed there.
So from the root meta directory I did:
cd deps/meta-cmake
git pull
And then run cmake again on the build directory with the updated meta-cmake.
I tried version 58.3, because version 58.2 seems to be unavailable. But the problem persists.
checking for ICU version numbers... release 58.3, library 58.3, unicode version 9.0
checking build system type... x86_64-apple-darwin19.5.0
checking host system type... x86_64-apple-darwin19.5.0
checking whether to build debug libraries... no
checking whether to build release libraries... yes
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... configure: error: in 'XXXX/meta/build/deps/icu-58.2/src/ExternalICU-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details
make[2]: *** [deps/icu-58.2/src/ExternalICU-stamp/ExternalICU-configure] Error 1
make[1]: *** [CMakeFiles/ExternalICU.dir/all] Error 2
make: *** [all] Error 2
Trying @stefandevai solution didn't work for me.
Hi, I am trying to setup meta toolkit on macOS 10.14.6. I followed the instructions and the issue here: https://github.com/meta-toolkit/meta/issues/191#issuecomment-354575135 Then the configuration worked but the make command still fails. The error message is:
Is it something wrong with the ICU version 63.1? I also tried the develop branch but no luck.