Bug#505331: FTBFS with GCC 4.4: missing #include

Martin Michlmayr tbm at cyrius.com
Tue Nov 11 19:43:50 UTC 2008


Package: llvm
Version: 2.2-12
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4

Your package fails to build with the upcoming GCC 4.4.  Version 4.4
has not been released yet but I'm building with a snapshot in order
to find errors and give people an advance warning.

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

I didn't check whether this has been fixed in the upstream release
that just came out.

You can reproduce this problem with gcc-snapshot from unstable.

> Automatic build of llvm_2.2-12 on em64t by sbuild/amd64 0.53
...
> if x86_64-linux-gnu-g++ -I/build/tbm/llvm-2.2/build-llvm/lib/System -I/build/tbm/llvm-2.2/lib/System -I/build/tbm/llvm-2.2/build-llvm/include -I/build/tbm/llvm-2.2/include -I/build/tbm/llvm-2.2/build-llvm/include -I/build/tbm/llvm-2.2/include  -D_DEBUG  -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O2 -fomit-frame-pointer -fno-exceptions -g -O2 -Woverloaded-virtual -Wall -W -Wwrite-strings -Wunused -Wno-unused-parameter -DLLVM_DEBIAN_INFO='" (Debian 2.2-12)"' -c -MMD -MP -MF "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.d.tmp" -MT "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.lo" -MT "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.o" -MT "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.d" /build/tbm/llvm-2.2/lib/System/DynamicLibrary.cpp -o /build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.o ; \
> 	        then /bin/mv -f "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.d.tmp" "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.d"; else /bin/rm "/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.d.tmp"; exit 1; fi
> /build/tbm/llvm-2.2/lib/System/DynamicLibrary.cpp: In static member function 'static void* llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(const char*)':
> /build/tbm/llvm-2.2/lib/System/DynamicLibrary.cpp:187: error: 'stderr' was not declared in this scope
> /build/tbm/llvm-2.2/lib/System/DynamicLibrary.cpp:188: error: 'stdout' was not declared in this scope
> /build/tbm/llvm-2.2/lib/System/DynamicLibrary.cpp:189: error: 'stdin' was not declared in this scope
> make[2]: *** [/build/tbm/llvm-2.2/build-llvm/lib/System/Release/DynamicLibrary.o] Error 1
> make[2]: Leaving directory `/build/tbm/llvm-2.2/build-llvm/lib/System'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/build/tbm/llvm-2.2/build-llvm'

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-llvm-team mailing list