This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/35761] GCC 4.3.0 tar 1.19 and glibc 2.7 bug with __cplusplus and -O2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]