asdf-vm / asdf-erlang

Erlang plugin for asdf version manager

Home Page:https://github.com/asdf-vm/asdf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build erlnag/otp 24.1.7 on macos 10.15.4

unixc3t opened this issue · comments

commented
asdf_24.1.7 is not a kerl-managed Erlang/OTP installation
The asdf_24.1.7 build has been deleted
Extracting source code
Building Erlang/OTP 24.1.7 (asdf_24.1.7), please wait...
Build failed.
checking host system type... i386-apple-darwin19.4.0
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/Users/rudy/.asdf/plugins/erlang/kerl-home/builds/asdf_24.1.7/otp_src_24.1.7/erts':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: /Users/rudy/.asdf/plugins/erlang/kerl-home/builds/asdf_24.1.7/otp_src_24.1.7/erts/configure failed!
./configure: line 366: kill: (-26763) - No such process
make: *** No rule to make target `is_cross_configured'.  Stop.
make: *** No rule to make target `all'.  Stop. 


```gcc -v                                                                                                                                                                                             ░▒▓ 1 ✘  at 20:44:46  
Configured with: --prefix=/Users/rudy/Downloads/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Users/rudy/Downloads/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.21)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Users/rudy/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

```gcc-11 -v                                                                                                                                                                                            ░▒▓ ✔  at 20:44:49  
Using built-in specs.
COLLECT_GCC=gcc-11
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/11.2.0_3/libexec/gcc/x86_64-apple-darwin19/11/lto-wrapper
Target: x86_64-apple-darwin19
Configured with: ../configure --prefix=/usr/local/Cellar/gcc/11.2.0_3 --libdir=/usr/local/Cellar/gcc/11.2.0_3/lib/gcc/11 --disable-nls --enable-checking=release --with-gcc-major-version-only --enable-languages=c,c++,objc,obj-c++,fortran,d --program-suffix=-11 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-zstd=/usr/local/opt/zstd --with-pkgversion='Homebrew GCC 11.2.0_3' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --enable-libphobos --build=x86_64-apple-darwin19 --with-system-zlib --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Homebrew GCC 11.2.0_3)
commented

I sloved it , you only need CC=/usr/bin/gcc asdf install erlang 24.1.7, it's work