Skip to contentSkip to conversation

Latest git fails to link - missing main() routine

Qemu-devel Nigel Horne 2 participants 3 messages Nov 16, 2010 – Nov 17, 2010

lore
Share & tools
lore
#0 lore raw

Public bug reported:

I can't get git 2834c3e0140c3b0ed4422909dfa0607b7213d95d to link on my Debian Linux/x86_64 machine with gcc4.4:

All goes well until the link stage:

/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [trace] Error 1
make: *** [subdir-i386-softmmu] Error 2

I did

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm

** Affects: qemu
Importance: Undecided
Status: New

Signature · 22 lines
Latest git fails to link - missing main() routine
https://bugs.launchpad.net/bugs/676190
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
I can't get git 2834c3e0140c3b0ed4422909dfa0607b7213d95d to link on my Debian Linux/x86_64 machine with gcc4.4:

All goes well until the link stage:

/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [trace] Error 1
make: *** [subdir-i386-softmmu] Error 2

I did

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm
#1 lore raw
Quoted 4 lines · Nigel Horne

Public bug reported:

I can't get git 2834c3e0140c3b0ed4422909dfa0607b7213d95d to link on my Debian Linux/x86_64 machine with gcc4.4:

Peter Maydell has submitted a patch to fix this:
http://patchwork.ozlabs.org/patch/71449/

I just tried it and it works for me.

Stefan

#2 lore raw
Quoted 7 lines · Stefan Hajnoczi
Quoted 5 lines · Nigel Horne

Public bug reported:

I can't get git 2834c3e0140c3b0ed4422909dfa0607b7213d95d to link on my Debian Linux/x86_64 machine with gcc4.4:

Quoted 8 lines

Peter Maydell has submitted a patch to fix this:
http://patchwork.ozlabs.org/patch/71449/

I just tried it and it works for me.

Stefan

Thanks for the quick turn around. I've closed the bug - it works for me now as well.

Regards,

-Nigel

** Changed in: qemu
Status: New => Fix Released

Signature · 22 lines
Latest git fails to link - missing main() routine
https://bugs.launchpad.net/bugs/676190
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: Fix Released

Bug description:
I can't get git 2834c3e0140c3b0ed4422909dfa0607b7213d95d to link on my Debian Linux/x86_64 machine with gcc4.4:

All goes well until the link stage:

/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [trace] Error 1
make: *** [subdir-i386-softmmu] Error 2

I did

make distclean
./configure --enable-linux-aio --enable-io-thread --enable-kvm