[erlang-questions] Erlang/OTP 20.0-rc2 is available for testing

Jachym Holecek freza@REDACTED
Tue Jun 6 10:43:17 CEST 2017


# Adam Jensen 2017-06-05:
> [hanzer@REDACTED otp]$ cat config.log | nc termbin.com 9999
> http://termbin.com/74uzy

The failing command was:

	configure:2617: /home/hanzer/.local/llvm/bin/clang -O4 -I/home/hanzer/.local/llvm/include -L/home/hanzer/.local/llvm/lib conftest.c /usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64:/home/hanzer/.local/llvm/lib/ >&5
	clang-4.0: error: no such file or directory: '/usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64:/home/hanzer/.local/llvm/lib/'
	clang-4.0: warning: -O4 is equivalent to -O3 [-Wdeprecated]

Meaning the problem most likely is:

> If anyone wants to reproduce this, the entire process so far is:
> ----
> [...]
> export PATH=$PATH:$HOME/.local/llvm/bin
> export LANG=C
> export CC=clang
> export CXX=clang++
> export CPP=clang-cpp
> export LD=lld
> export RANLIB=llvm-ranlib
> export AR=llvm-ar
> export GETCONF=llvm-config
> export CFLAGS="-O4"
> export CXXFLAGS="-O4"
> export CPPFLAGS="-I/usr/include -I /usr/local/include -I$HOME/.local/llvm/include"
> export LDFLAGS="-L/usr/lib -L/usr/lib64 -L/usr/local/lib -L/usr/local/lib64 -L$HOME/.local/llvm/lib"
> export LIBS=/usr/lib:/usr/lib64:/usr/local/lib:/usr/local/lib64:$HOME/.local/llvm/lib/

The LIBS line above -- IIRC that's supposed to hold list of additional libraries to link
against, in the form of readily digestable linker arguments. Instead you're giving it
an unintelligible colon-separated thing. So keeping LIBS empty should sort it out.

	-- Jachym

More information about the erlang-questions mailing list