[LLVMbugs] [Bug 2851] New: libiberty fails to build with GCC 4.3.1
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Oct 2 08:38:30 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2851
Summary: libiberty fails to build with GCC 4.3.1
Product: tools
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: blocker
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Axel.Naumann at cern.ch
CC: llvmbugs at cs.uiuc.edu
I hope this is the right product - please move as needed.
I want to build llvm-gcc-4.2 with GCC 4.3.1 AMD64. I ran
CXX=`which g++` ../../src/llvm-gcc-4.2_svn/configure --prefix=/build/axel/local
--enable-checking --program-prefix=llvm-
--enable-llvm=/build/axel/build/llvm/obj/llvm-configure
--enable-languages=c,c++ --disable-bootstrap
Compilation with
make LLVM_VERSION_INFO=trunk-20081001-axel
stops here:
/build/axel/build/llvm/obj/llvm-gcc-4.2/./prev-gcc/xgcc
-B/build/axel/build/llvm/obj/llvm-gcc-4.2/./prev-gcc/
-B/build/axel/local/x86_64-unknown-linux-gnu/bin/ -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../../src/llvm-gcc-4.2_svn/libiberty/../include -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes -Wc++-compat
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c -o cplus-dem.o
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:55: warning: function
declaration isn't a prototype
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:55: error: conflicting
types for 'malloc'
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:56: warning: function
declaration isn't a prototype
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c: In function
'code_for_qualifier':
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:582: warning: implicit
declaration of function 'abort'
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:582: warning: incompatible
implicit declaration of built-in function 'abort'
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c: In function
'qualifier_string':
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:622: warning: incompatible
implicit declaration of built-in function 'abort'
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c: In function
'squangle_mop_up':
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:1082: warning: implicit
declaration of function 'free'
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c: In function
'demangle_qualified':
../../../src/llvm-gcc-4.2_svn/libiberty/cplus-dem.c:3177: warning: implicit
declaration of function 'atoi'
make[3]: *** [cplus-dem.o] Error 1
make[3]: Leaving directory `/build/axel/build/llvm/obj/llvm-gcc-4.2/libiberty'
make[2]: *** [all-stage2-libiberty] Error 2
make[2]: Leaving directory `/build/axel/build/llvm/obj/llvm-gcc-4.2'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/build/axel/build/llvm/obj/llvm-gcc-4.2'
make: *** [all] Error 2
What am I doing wrong? Or could these functions' declarations be added?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list