Hi!
Has anybody tried to build clang with the LSB SDK (4.1)?
I configured these environment variables:
export CC="/opt/lsb/bin/lsbcc --lsb-target-version=4.0"
export CFLAGS="-I/opt/lsb/include"
export LDFLAGS="-L/opt/lsb/lib -Wl,–dynamic-linker=/lib/ld-lsb.so.3"
export CXX="/opt/lsb/bin/lsbc++ --lsb-target-version=4.0"
export CXXFLAGS="-I/opt/lsb/include -I/opt/lsb/include/c++"
export CPP="/opt/lsb/bin/lsbcpp"
Configure runs fine.
…/llvm-3.4/configure --enable-optimized
But if I try to build it I got a lot of warnings:
llvm-3.4/include/llvm/Support/MathExtras.h:612:3: warning: floating constant exceeds range of ‘float’ [-Woverflow]
The build stops with this error:
In file included from /llvm-3.4/lib/Support/Path.cpp:1035:0:
/llvm-3.4/lib/Support/Unix/Path.inc:540:2: error: #error Missing futimes() and futimens()
/bin/rm: cannot remove `/build/lib/Support/Release+Asserts/Path.d.tmp’: No such file or directory
make[1]: *** [/build/lib/Support/Release+Asserts/Path.o] Error 1
make[1]: Leaving directory /build/lib/Support’
make: *** [all] Error 1
I try to build it on Ubuntu 12.04, 32bit
Linux 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:40:43 UTC 2013 i686 i686 i386 GNU/Linux
lsbc++ --version
lsbc++ (lsbcc) 4.1.27
c++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If I use only gcc and g++ I can build clang, I got these warnings and error only with the lsb sdk.
Do you have any ideas what am I missing?
Thanks,
Gyorgy