[Bug c/35761] GCC 4.3.0 tar 1.19 and glibc 2.7 bug with __cplusplus and -O2
channelzero at web dot de
gcc-bugzilla@gcc.gnu.org
Sun May 11 21:55:00 GMT 2008
------- Comment #3 from channelzero at web dot de 2008-05-11 21:54 -------
I can confirm a make error in tar, last step of build fails:
gcc -std=gnu99 -g -O2 -o tar buffer.o compare.o create.o delete.o extract.o
xheader.o incremen.o list.o misc.o names.o sparse.o system.o tar.o transform.o
update.o utf8.o ../lib/libtar.a -lrt
lots of messages like this with other function names:
../lib/libtar.a(argp-fmtstream.o): In function `argp_fmtstream_putc':
/mnt/lfs/builder/build/tar-1.19/lib/argp-fmtstream.h:233: multiple definition
of `argp_fmtstream_putc'
tar.o:/mnt/lfs/builder/build/tar-1.19/src/../lib/argp-fmtstream.h:233: first
defined here
I tried -O0, this worked, only difference is inline functions will not used.
Then I tried -O2 -fno-inline-functions won't work.
It seems to be an tar problem, I just read this:
http://lists.gnu.org/archive/html/bug-tar/2008-04/msg00006.html
Ok fixed with tar-1.20
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35761
More information about the Gcc-bugs
mailing list