[Bug target/36349] gcc-4.3.0 build fails with multiple definitions

2008-06-13 Thread phorgan1 at gmail dot com


--- Comment #7 from phorgan1 at gmail dot com  2008-06-13 21:54 ---
I don't know what changed, but on the same machine with the same circumstances
the build completes successfully now.  I can only think that something in the
environment changed as a result of updates on the machine, although the version
of gcc that builds it now is the same as the one that didn't build it before?:(

Patricik


-- 

phorgan1 at gmail dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36349



[Bug target/36349] gcc-4.3.0 build fails with multiple definitions

2008-05-27 Thread phorgan1 at gmail dot com


--- Comment #2 from phorgan1 at gmail dot com  2008-05-28 03:59 ---
Build in objdir fails similarly when building libiberty.a  Still has the same
multiple definitions.

make[3]: Entering directory
`/usr/local/gcc-4.3.0/objdir/build-x86_64-unknown-linux-gnu/fixincludes'
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/fixincl.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/fixtests.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/fixfixes.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/server.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/procopen.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/fixlib.c
gcc -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -Wno-overlength-strings
-pedantic -Wno-long-long   -DHAVE_CONFIG_H -I. -I../../../fixincludes
-I../include -I../../../fixincludes/../include ../../../fixincludes/fixopts.c
gcc -g -O2  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o
fixlib.o fixopts.o ../libiberty/libiberty.a
fixtests.o: In function `feof_unlocked':
/usr/include/bits/stdio.h:127: multiple definition of `feof_unlocked'
fixincl.o:/usr/include/bits/stdio.h:127: first defined here
fixtests.o: In function `ferror_unlocked':
/usr/include/bits/stdio.h:134: multiple definition of `ferror_unlocked'
fixincl.o:/usr/include/bits/stdio.h:134: first defined here
fixtests.o: In function `putchar_unlocked':
/usr/include/bits/stdio.h:108: multiple definition of `putchar_unlocked'
fixincl.o:/usr/include/bits/stdio.h:108: first defined here
fixtests.o: In function `putc_unlocked':
/usr/include/bits/stdio.h:101: multiple definition of `putc_unlocked'
fixincl.o:/usr/include/bits/stdio.h:101: first defined here
fixtests.o: In function `fputc_unlocked':
/usr/include/bits/stdio.h:91: multiple definition of `fputc_unlocked'
fixincl.o:/usr/include/bits/stdio.h:91: first defined here
fixtests.o: In function `putchar':
/usr/include/bits/stdio.h:82: multiple definition of `putchar'
fixincl.o:/usr/include/bits/stdio.h:82: first defined here
fixtests.o: In function `getchar_unlocked':
/usr/include/bits/stdio.h:73: multiple definition of `getchar_unlocked'
fixincl.o:/usr/include/bits/stdio.h:73: first defined here
fixtests.o: In function `getc_unlocked':
/usr/include/bits/stdio.h:66: multiple definition of `getc_unlocked'
fixincl.o:/usr/include/bits/stdio.h:66: first defined here
fixtests.o: In function `fgetc_unlocked':
/usr/include/bits/stdio.h:56: multiple definition of `fgetc_unlocked'
fixincl.o:/usr/include/bits/stdio.h:56: first defined here
fixtests.o: In function `getchar':
/usr/include/bits/stdio.h:47: multiple definition of `getchar'
fixincl.o:/usr/include/bits/stdio.h:47: first defined here
fixtests.o: In function `vprintf':
/usr/include/bits/stdio.h:39: multiple definition of `vprintf'
fixincl.o:/usr/include/bits/stdio.h:39: first defined here
fixfixes.o: In function `feof_unlocked':
/usr/include/bits/stdio.h:127: multiple definition of `feof_unlocked'
fixincl.o:/usr/include/bits/stdio.h:127: first defined here
fixfixes.o: In function `ferror_unlocked':
/usr/include/bits/stdio.h:134: multiple definition of `ferror_unlocked'
fixincl.o:/usr/include/bits/stdio.h:134: first defined here
fixfixes.o: In function `putchar_unlocked':
/usr/include/bits/stdio.h:108: multiple definition of `putchar_unlocked'
fixincl.o:/usr/include/bits/stdio.h:108: first defined here
fixfixes.o: In function `putc_unlocked':
/usr/include/bits/stdio.h:101: multiple definition of `putc_unlocked'

[Bug target/36349] gcc-4.3.0 build fails with multiple definitions

2008-05-27 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2008-05-28 04:24 ---
Can you make sure that your source tree is clean before building in the object
directory?


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36349



[Bug target/36349] gcc-4.3.0 build fails with multiple definitions

2008-05-27 Thread phorgan1 at gmail dot com


--- Comment #4 from phorgan1 at gmail dot com  2008-05-28 04:44 ---
I reinstalled gcc-4.3.0 from the tar.gz file, and extracted it in
/usr/local/gcc-4.3.0.  Then I made a completely separate object directory
/usr/local/gcc-4.3.0-objdir.  From within that directory I executed
../gcc-4.3.0/configure, then typed make.  The result was the same as in the
last comment, multiple defines when building libiberty.a   

mkdir -p -- build-x86_64-unknown-linux-gnu/fixincludes
Configuring in build-x86_64-unknown-linux-gnu/fixincludes
configure: loading cache ../config.cache
checking build system type... (cached) x86_64-unknown-linux-gnu
checking host system type... (cached) x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc supports -W... (cached) yes
checking whether gcc supports -Wall... (cached) yes
checking whether gcc supports -Wwrite-strings... (cached) yes
checking whether gcc supports -Wstrict-prototypes... (cached) yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wno-overlength-strings... yes
checking whether gcc supports -pedantic -Wno-long-long... yes
checking how to run the C preprocessor... (cached) gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... yes
checking for fgetc_unlocked... yes
checking for fgets_unlocked... yes
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... yes
checking for fputs_unlocked... yes
checking for fread_unlocked... yes
checking for fwrite_unlocked... yes
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking whether abort is declared... yes
checking whether asprintf is declared... (cached) no
checking whether basename is declared... (cached) no
checking whether errno is declared... no
checking whether vasprintf is declared... (cached) no
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgetc_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking for an ANSI C-conforming const... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: updating cache ../config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h
make[3]: Entering directory
`/usr/local/gcc-4.3.0-objdir/build-x86_64-unknown-linux-gnu/fixincludes'
gcc -c -g -O2 -W -Wall 

[Bug target/36349] gcc-4.3.0 build fails with multiple definitions

2008-05-27 Thread pinskia at gcc dot gnu dot org


--- Comment #5 from pinskia at gcc dot gnu dot org  2008-05-28 04:46 ---
gcc -g -O2  -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o
 fixlib.o fixopts.o ../libiberty/libiberty.a

What version of gcc do you have?
Can you do gcc -v?  This has to be a bug with glibc.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36349



[Bug target/36349] gcc-4.3.0 build fails with multiple definitions

2008-05-27 Thread phorgan1 at gmail dot com


--- Comment #6 from phorgan1 at gmail dot com  2008-05-28 04:54 ---
Subject: Re:  gcc-4.3.0 build fails with multiple definitions

pinskia at gcc dot gnu dot org wrote:
 What version of gcc do you have?
 Can you do gcc -v?  This has to be a bug with glibc.
   
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.2.1/configure --enable-languages=c,c++ 
--prefix=/usr/local/share/gcc-4.2.1
Thread model: posix
gcc version 4.2.1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36349