View previous topic :: View next topic |
Author |
Message |
Sleipnir Guru
Joined: 20 Sep 2005 Posts: 372 Location: Germany
|
Posted: Mon Oct 17, 2005 7:09 pm Post subject: [SOLVED] emerge diffutils failed |
|
|
I get the following error message for a brand new gentoo install:
emerge diffutils:
Code: |
sparc-unknown-linux-gnu-gcc -mcpu=ultrasparc -O3 -pipe -ffunction-sections -fdata-sections -mvis -o diff analyze.o context.o diff.o dir.o ed.o ifdef.o io.o normal.o side.o util.o ../lib/libdiffutils.a -lrt
context.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.5-20050130/../../../../sparc-unknown-linux-gnu/bin/ld: Disabling relaxation: it will not work with multiple definitions
diff.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
dir.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
ed.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
ifdef.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
io.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
normal.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
side.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
util.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
collect2: ld returned 1 exit status
make[2]: *** [diff] Error 1
make[2]: Leaving directory `/var/tmp/portage/diffutils-2.8.7-r1/work/diffutils-2.8.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/diffutils-2.8.7-r1/work/diffutils-2.8.7'
make: *** [all] Error 2
|
And one additional question: How could a emerge -e system be resumed? _________________ A)bort, R)etry, I)nfluence with large hammer.
Last edited by Sleipnir on Mon Oct 17, 2005 8:51 pm; edited 1 time in total |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Mon Oct 17, 2005 7:26 pm Post subject: Re: emerge diffutils failed |
|
|
Sleipnir wrote: | I get the following error message for a brand new gentoo install:
emerge diffutils:
Code: |
sparc-unknown-linux-gnu-gcc -mcpu=ultrasparc -O3 -pipe -ffunction-sections -fdata-sections -mvis -o diff analyze.o context.o diff.o dir.o ed.o ifdef.o io.o normal.o side.o util.o ../lib/libdiffutils.a -lrt
context.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
/usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.5-20050130/../../../../sparc-unknown-linux-gnu/bin/ld: Disabling relaxation: it will not work with multiple definitions
diff.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
dir.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
ed.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
ifdef.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
io.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
normal.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
side.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
util.o(.bss.lines_differ+0x0): multiple definition of `lines_differ'
analyze.o(.bss.lines_differ+0x0): first defined here
collect2: ld returned 1 exit status
make[2]: *** [diff] Error 1
make[2]: Leaving directory `/var/tmp/portage/diffutils-2.8.7-r1/work/diffutils-2.8.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/diffutils-2.8.7-r1/work/diffutils-2.8.7'
make: *** [all] Error 2
|
| Get rid of silly CFLAGS such as -ffunction-sections -fdata-sections. They don't work globally. Stick to stable flags. Post youroutput if you're not sure. Sleipnir wrote: | And one additional question: How could a emerge -e system be resumed? | provided you didn't try to emerge something else after it died. If you did, there's no way to resume. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
Sleipnir Guru
Joined: 20 Sep 2005 Posts: 372 Location: Germany
|
Posted: Mon Oct 17, 2005 7:47 pm Post subject: |
|
|
Thank you, I removed the section flags and the package compiles.
This is my first experience with sparc and so I read the gcc documentation
for compile-flags for the ultrasparc IIi processor. There was a comment that
this flags will lead to a speed increase and the usage is save....
However, could you recommend a CFLAG setting for an ultrasparc IIi? _________________ A)bort, R)etry, I)nfluence with large hammer. |
|
Back to top |
|
|
moocha Watchman
Joined: 21 Oct 2003 Posts: 5722
|
Posted: Mon Oct 17, 2005 8:53 pm Post subject: |
|
|
I'm not familiar with the SPARC achitecture, sorry... But, besides the obvious -march flag, safe flags are -O2 -fomit-frame-pointer -fno-ident. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
Back to top |
|
|
|