[M3devel] compile problem on LINUXLIBC6

Mika Nystrom mika at async.caltech.edu
Sat Jan 22 03:15:03 CET 2011


On the following system:

Linux ballista 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 i686 i686 i386 GNU/Linux

 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.5/lto-wrapper
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.5 --enable-linux-futex --without-system-libunwind --enable-gold --with-plugin-ld=/usr/bin/gold --with-arch-32=i586 --with-tune=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux)

Installing 5.8.6 from the web and then attempting to compile the CVS head using "upgrade.py" leads
to the following:

echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
make[2]: Entering directory `/home/mika/cm3-cvs/cm3/m3-sys/m3cc/LINUXLIBC6/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mika/cm3-cvs/cm3/m3-sys/m3cc/LINUXLIBC6/libiberty/testsuite'
make[1]: Leaving directory `/home/mika/cm3-cvs/cm3/m3-sys/m3cc/LINUXLIBC6/libiberty'
cd . && cd libcpp && make  MAKE=make  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: libcpp.a
cd . && cd libcpp && make  MAKE=make  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: libcpp.a
g++  -I../../gcc-4.5/libcpp -I. -I../../gcc-4.5/libcpp/../include -I../../gcc-4.5/libcpp/include  -g -O2 -W -Wall -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long  -I../../gcc-4.5/libcpp -I. -I../../gcc-4.5/libcpp/../include -I../../gcc-4.5/libcpp/include  -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../../gcc-4.5/libcpp/charset.c
In file included from ../../gcc-4.5/libcpp/system.h:335:0,
                 from ../../gcc-4.5/libcpp/charset.c:24:
../../gcc-4.5/libcpp/../include/libiberty.h:106:36: error: new declaration â
/usr/include/string.h:601:28: error: ambiguates old declaration â
make: *** [charset.o] Error 1
"/home/mika/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile", line 273: quake runtime error: exit 2: cd . && cd libcpp && make  MAKE=make  AUTOCONF=: AUTOMAKE=: LEX='touch lex.yy.c' MAKEINFO=: libcpp.a

--procedure--  -line-  -file---
exec               --  <builtin>
m3cc_Run          273  /home/mika/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile
include_dir       518  /home/mika/cm3-cvs/cm3/m3-sys/m3cc/src/m3makefile
                    5  /home/mika/cm3-cvs/cm3/m3-sys/m3cc/LINUXLIBC6/m3make.args

Fatal Error: package build failed
 *** execution of [<function _BuildGlobalFunction at 0x814db54>, <function _ShipFunction at 0x814db8c>] failed ***

It looks like a clash between a declaration in libiberty.h and one in string.h

     Mika



More information about the M3devel mailing list