This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35761] GCC 4.3.0 tar 1.19 and glibc 2.7 bug with __cplusplus and -O2
- From: "channelzero at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2008 21:54:51 -0000
- Subject: [Bug c/35761] GCC 4.3.0 tar 1.19 and glibc 2.7 bug with __cplusplus and -O2
- References: <bug-35761-15988@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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