Skip to contentSkip to conversation

qemu 0.7.0 does not compile with binutils 2.16

Qemu-devel Gioele Barabucci 6 participants 6 messages Jun 10, 2005 – Jun 12, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I tried to compile qemu 0.7.0 on my gentoo-ppc box. This is what the configuration script outputs:

  Install prefix    /usr 
  BIOS directory    /usr/share/qemu 
  binary directory  /usr/bin 
  Manual directory  /usr/share/man 
  ELF interp prefix /usr/gnemul/qemu-%M 
  Source path       /var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0 
  C compiler        gcc 
  make              make 
  host CPU          powerpc 
  host big endian   yes 
  target list       i386-user ppc-user i386-softmmu ppc-softmmu x86_64-softmmu 
  gprof enabled     no 
  static build      no 
  SDL support       yes 
  SDL static link   yes 
  mingw32 support   no 
  Adlib support     no 
  FMOD support      no 
  kqemu support     no 

And this is the error message:
gcc -g -Wl,-T,/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/ppc.ld -o
qemu-i386 elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o
vm86.o libqemu.a gdbstub.o -lm

/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../../powerpc-unknown-linux-gnu/bin/ld:
qemu-i386: Not enough room for program headers (allocated 9, need 10)

/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../../powerpc-unknown-linux-gnu/bin/ld:
final link failed: Bad value

collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory
`/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/i386-user'
make: *** [all] Error 1

I used gcc-3.4.3, binutils 2.16 and gentoo's glibc 2.3.4.20041102-r1 with NPTL.

I found a bug report similar to mine in the archives, but there was no reply. Is this bug going to be fixed in qemu 0.7.1?

--
Gioele <[email protected]>

#1 lore raw

0.7.0 compiles fine on mingw with custom compiled gcc-3.3.6 and binutils-2.16. This is on windows host.

Christian

#2 lore raw
In reply to Gioele Barabucci

I've the same problem on my iBook running gentoo-ppc. Maybe is a ppc-related problem...

Best regards,
David Coppa

Quoted 57 lines · Gioele Barabucci

Hi,

I tried to compile qemu 0.7.0 on my gentoo-ppc box. This is what the configuration script outputs:

  Install prefix    /usr
  BIOS directory    /usr/share/qemu
  binary directory  /usr/bin
  Manual directory  /usr/share/man
  ELF interp prefix /usr/gnemul/qemu-%M
  Source path       /var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0
  C compiler        gcc
  make              make
  host CPU          powerpc
  host big endian   yes
  target list       i386-user ppc-user i386-softmmu ppc-softmmu x86_64-softmmu
  gprof enabled     no
  static build      no
  SDL support       yes
  SDL static link   yes
  mingw32 support   no
  Adlib support     no
  FMOD support      no
  kqemu support     no

And this is the error message:
gcc -g -Wl,-T,/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/ppc.ld -o
qemu-i386 elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o
vm86.o libqemu.a gdbstub.o -lm

/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../../powerpc-unknown-linux-gnu/bin/ld:
qemu-i386: Not enough room for program headers (allocated 9, need 10)

/usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.3-20050110/../../../../powerpc-unknown-linux-gnu/bin/ld:
final link failed: Bad value

collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory
`/var/tmp/portage/qemu-0.7.0/work/qemu-0.7.0/i386-user'
make: *** [all] Error 1

I used gcc-3.4.3, binutils 2.16 and gentoo's glibc 2.3.4.20041102-r1 with NPTL.

I found a bug report similar to mine in the archives, but there was no reply. Is this bug going to be fixed in qemu 0.7.1?

--
Gioele <[email protected]>

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

#3 lore raw
In reply to Gioele Barabucci
Quoted 1 line · Gioele Barabucci

I tried to compile qemu 0.7.0 on my gentoo-ppc box.

...

Quoted 1 line

I used gcc-3.4.3, binutils 2.16 and gentoo's glibc 2.3.4.20041102-r1 with > NPTL.

Posting a bug to Gentoo's bugzilla would be a good idea (http://bugs.gentoo.org).
Since binutils-2.16 is ~ppc (i.e. being tested), you could try the latest stable version of binutils (2.15.90.0.3-r5). That would demonstrate whether it's a binutils issue or not.

Kev.

#4 lore raw
Quoted 8 lines · Kevin F.Quinn
Quoted 1 line · Gioele Barabucci

I tried to compile qemu 0.7.0 on my gentoo-ppc box.

...

Quoted 1 line

I used gcc-3.4.3, binutils 2.16 and gentoo's glibc 2.3.4.20041102-r1 with > NPTL.

Posting a bug to Gentoo's bugzilla would be a good idea (http://bugs.gentoo.org).
Since binutils-2.16 is ~ppc (i.e. being tested), you could try the latest stable version of binutils (2.15.90.0.3-r5). That would demonstrate whether it's a binutils issue or not.

Similar bug was reported looong (year...) ago (x86 with QEMU-fast) and Luca closed it with "waiting for upstream fix" message.

I think it should be reopened, it's title should be changed to reflect current (no qemu-fast) state and somebody (who knows ld scripts more than me) should really fix it.

Maybe Fabrice knows what is wrong?

Grzegorz Kulewski

#5 lore raw
In reply to Kevin F. Quinn
Quoted 7 lines · Kevin F. Quinn
Quoted 1 line · Gioele Barabucci

I tried to compile qemu 0.7.0 on my gentoo-ppc box.

...

Quoted 7 lines
Quoted 1 line

I used gcc-3.4.3, binutils 2.16 and gentoo's glibc 2.3.4.20041102-r1 with > NPTL.

Posting a bug to Gentoo's bugzilla would be a good idea (http://bugs.gentoo.org).
Since binutils-2.16 is ~ppc (i.e. being tested), you could try the latest stable version of binutils (2.15.90.0.3-r5). That would demonstrate whether it's a binutils issue or not.

The problem got already reported in the gentoo bugzilla and in the binutils bugzilla.

As I wrote before the issue is in the linker scripts. isn't a ld problems (it does the right thing) nor a distribution problem (I'm not so keen on use a older and probably with more issues open version)

lu

Signature · 4 lines
Luca Barbato

Gentoo/linux Developer		Gentoo/PPC Operational Leader
http://dev.gentoo.org/~lu_zero