qemu-linaro: compile fail on sparc: epoll_create not present

Bug #731279 reported by Peter Maydell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro QEMU
Fix Released
Undecided
Unassigned

Bug Description

http://launchpadlibrarian.net/65850766/buildlog_ubuntu-lucid-sparc.qemu-linaro_0.14.50-2011.03-0-0ubuntu1~ppa10.04.1_FAILEDTOBUILD.txt.gz

  CC i386-linux-user/syscall.o
cc1: warnings being treated as errors
/build/buildd/qemu-linaro-0.14.50-2011.03-0/linux-user/syscall.c: In function 'do_syscall':
/build/buildd/qemu-linaro-0.14.50-2011.03-0/linux-user/syscall.c:7630: error: implicit declaration of function 'epoll_create1'
/build/buildd/qemu-linaro-0.14.50-2011.03-0/linux-user/syscall.c:7630: error: nested extern declaration of 'epoll_create1'

Not sure what's happening here -- configure is supposed to test for the presence of epoll_create1() but it doesn't seem to be working for some reason.

Revision history for this message
Peter Maydell (pmaydell) wrote :

This might be the result of this bug in the SPARC libc:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576826

where it isn't getting the declaration/definition of the epoll functions right.

Revision history for this message
Peter Maydell (pmaydell) wrote :

I've attached a patch to configure which I think ought to fix this -- Steve, can you give it a go on a Lucid SPARC box?

Revision history for this message
Steve Langasek (vorlon) wrote :

Tested on the Ubuntu sparc porter machine in the lucid chroot; definitely gets past the earlier build failure. Letting the build run to check whether it completes ok.

Revision history for this message
Steve Langasek (vorlon) wrote :

Whoops. Subsequent failure:

  CC arm-linux-user/main.o
In file included from /home/vorlon/qemu-linaro-0.14.50-2011.03-1/linux-user/qemu.h:82,
                 from /home/vorlon/qemu-linaro-0.14.50-2011.03-1/linux-user/main.c:29:
/home/vorlon/qemu-linaro-0.14.50-2011.03-1/linux-user/arm/nwfpe/fpa11.h:114:1: error: "REG_PC" redefined
In file included from /usr/include/signal.h:359,
                 from /home/vorlon/qemu-linaro-0.14.50-2011.03-1/linux-user/qemu.h:4,
                 from /home/vorlon/qemu-linaro-0.14.50-2011.03-1/linux-user/main.c:29:
/usr/include/sys/ucontext.h:97:1: error: this is the location of the previous definition
make[3]: *** [main.o] Error 1
make[2]: *** [subdir-arm-linux-user] Error 2
make[2]: Leaving directory `/home/vorlon/qemu-linaro-0.14.50-2011.03-1/user-build'

Revision history for this message
Peter Maydell (pmaydell) wrote :

I've attached a patch which ought to fix the second compile failure (by renaming the qemu constant to something else).

I've also submitted the configure patch upstream.

Revision history for this message
Peter Maydell (pmaydell) wrote :

Steve: you could also try pulling qemu-linaro from git and building that, as I've just put in both these patches.

Revision history for this message
Steve Langasek (vorlon) wrote :

Confirmed that with both patches applied, qemu-linaro builds on sparc/lucid. Thanks!

Peter Maydell (pmaydell)
Changed in qemu-linaro:
status: New → Fix Committed
milestone: none → 2011.04
Peter Maydell (pmaydell)
Changed in qemu-linaro:
status: Fix Committed → 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.