Latest git fails to link - missing main() routine

Bug #676190 reported by Nigel Horne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

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

Revision history for this message
Stefan Hajnoczi (stefanha) wrote : Re: [Qemu-devel] [Bug 676190] [NEW] Latest git fails to link - missing main() routine

On Tue, Nov 16, 2010 at 6:37 PM, Nigel Horne <email address hidden> wrote:
> 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

Revision history for this message
Nigel Horne (njh-bandsman) wrote : Re: [Qemu-devel] [Bug 676190] [NEW] Latest git fails to link - missing main() routine

On 11/16/2010 04:14 PM, Stefan Hajnoczi wrote:
> On Tue, Nov 16, 2010 at 6:37 PM, Nigel Horne<email address hidden> wrote:
>
>> 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
>
>
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.