* [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64.
@ 2005-07-12 10:30 Karel Gardas
2005-07-12 10:59 ` Karel Gardas
0 siblings, 1 reply; 4+ messages in thread
From: Karel Gardas @ 2005-07-12 10:30 UTC (permalink / raw)
To: QEMU Development Mailing List
Hello,
Qemu's trunk sources obtained from today CVS fails to compile on debian
3.1/amd64 platform. The error is:
gcc -g -Wl,-T,/home/karel/cvs/qemu/qemu/x86_64.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/bin/ld:/home/karel/cvs/qemu/qemu/x86_64.ld:62: parse error
collect2: ld returned 1 exit status
make[1]: *** [qemu-i386] Error 1
make[1]: Leaving directory `/home/karel/cvs/qemu/qemu/i386-user'
make: *** [all] Error 1
silence:~/cvs/qemu/qemu$ gcc -v
Reading specs from /usr/lib/gcc-lib/x86_64-linux/3.3.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
--disable-multilib x86_64-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)
silence:~/cvs/qemu/qemu$ ld --version
GNU ld version 2.15
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
silence:~/cvs/qemu/qemu$
Cheers,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64.
2005-07-12 10:30 [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64 Karel Gardas
@ 2005-07-12 10:59 ` Karel Gardas
2005-07-12 12:15 ` Michael Wetherell
0 siblings, 1 reply; 4+ messages in thread
From: Karel Gardas @ 2005-07-12 10:59 UTC (permalink / raw)
To: QEMU Development Mailing List
Hello,
short followup: exactly the same issue also hits qemu 0.7.0 release.
Cheers,
Karel
On Tue, 12 Jul 2005, Karel Gardas wrote:
>
> Hello,
>
> Qemu's trunk sources obtained from today CVS fails to compile on debian
> 3.1/amd64 platform. The error is:
>
> gcc -g -Wl,-T,/home/karel/cvs/qemu/qemu/x86_64.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/bin/ld:/home/karel/cvs/qemu/qemu/x86_64.ld:62: parse error
> collect2: ld returned 1 exit status
> make[1]: *** [qemu-i386] Error 1
> make[1]: Leaving directory `/home/karel/cvs/qemu/qemu/i386-user'
> make: *** [all] Error 1
>
> silence:~/cvs/qemu/qemu$ gcc -v
> Reading specs from /usr/lib/gcc-lib/x86_64-linux/3.3.5/specs
> Configured with: ../src/configure -v
> --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
> --mandir=/usr/share/man --infodir=/usr/share/info
> --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
> --enable-__cxa_atexit --with-system-zlib --enable-nls
> --without-included-gettext --enable-clocale=gnu --enable-debug
> --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc
> --disable-multilib x86_64-linux
> Thread model: posix
> gcc version 3.3.5 (Debian 1:3.3.5-13)
>
> silence:~/cvs/qemu/qemu$ ld --version
> GNU ld version 2.15
> Copyright 2002 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License. This program has absolutely no warranty.
> silence:~/cvs/qemu/qemu$
>
>
> Cheers,
> Karel
> --
> Karel Gardas kgardas@objectsecurity.com
> ObjectSecurity Ltd. http://www.objectsecurity.com
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64.
2005-07-12 10:59 ` Karel Gardas
@ 2005-07-12 12:15 ` Michael Wetherell
2005-07-12 12:44 ` Paul Brook
0 siblings, 1 reply; 4+ messages in thread
From: Michael Wetherell @ 2005-07-12 12:15 UTC (permalink / raw)
To: qemu-devel
On Tuesday 12 Jul 2005 11:59, Karel Gardas wrote:
> > Qemu's trunk sources obtained from today CVS fails to compile on
> > debian 3.1/amd64 platform. The error is:
> >
> > gcc -g -Wl,-T,/home/karel/cvs/qemu/qemu/x86_64.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/bin/ld:/home/karel/cvs/qemu/qemu/x86_64.ld:62: parse error
> > collect2: ld returned 1 exit status
>
> short followup: exactly the same issue also hits qemu 0.7.0 release.
Here's a suggested fix.
Regards,
Mike
--- qemu-0.7.0.orig/x86_64.ld 2005-04-27 21:52:05.000000000 +0100
+++ qemu-0.7.0/x86_64.ld 2005-07-12 13:06:32.104978032 +0100
@@ -59,8 +59,6 @@
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
- .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
- .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table) }
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (0x100000) - ((0x100000 - .) & (0x100000 - 1)); . =
DATA_SEGMENT_ALIGN (0x100000, 0x1000);
@@ -86,8 +84,8 @@
.data1 : { *(.data1) }
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
- .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
- .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table) }
+ .eh_frame : { KEEP (*(.eh_frame)) }
+ .gcc_except_table : { *(.gcc_except_table) }
.dynamic : { *(.dynamic) }
.ctors :
{
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64.
2005-07-12 12:15 ` Michael Wetherell
@ 2005-07-12 12:44 ` Paul Brook
0 siblings, 0 replies; 4+ messages in thread
From: Paul Brook @ 2005-07-12 12:44 UTC (permalink / raw)
To: qemu-devel
On Tuesday 12 July 2005 13:15, Michael Wetherell wrote:
> On Tuesday 12 Jul 2005 11:59, Karel Gardas wrote:
> > > Qemu's trunk sources obtained from today CVS fails to compile on
> > > debian 3.1/amd64 platform. The error is:
> > >
> > > gcc -g -Wl,-T,/home/karel/cvs/qemu/qemu/x86_64.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/bin/ld:/home/karel/cvs/qemu/qemu/x86_64.ld:62: parse error
> > > collect2: ld returned 1 exit status
> >
> > short followup: exactly the same issue also hits qemu 0.7.0 release.
>
> Here's a suggested fix.
For the record the script works fine with newer binutils.
Older binutils don't support the ONLY_IF_R[OW] keyworks.
Paul
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-12 12:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-12 10:30 [Qemu-devel] trunk sources fails to compile on Debian GNU/Linux 3.1 on AMD64 Karel Gardas
2005-07-12 10:59 ` Karel Gardas
2005-07-12 12:15 ` Michael Wetherell
2005-07-12 12:44 ` Paul Brook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).