qemu-linaro: compile failure on sparc in linux-user/mmap.c

Bug #716336 reported by Peter Maydell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro QEMU
Fix Released
Low
Unassigned

Bug Description

The lucid/sparc build of the packages failed:
http://launchpadlibrarian.net/63766014/buildlog_ubuntu-lucid-sparc.qemu-linaro_0.13.50-2011.02-0-0ubuntu1~ppa10.04.1_FAILEDTOBUILD.txt.gz

  CC i386-linux-user/mmap.o
cc1: warnings being treated as errors
/build/buildd/qemu-linaro-0.13.50-2011.02-0/linux-user/mmap.c: In function 'mmap_find_vma_reserved':
/build/buildd/qemu-linaro-0.13.50-2011.02-0/linux-user/mmap.c:235: error: comparison of unsigned expression >= 0 is always true

This is gcc-4.4_4.4.3-4ubuntu5, but I think the key thing is that SPARC host doesn't define CONFIG_USE_GUEST_BASE, so RESERVED_VA is 0 and gcc complains.

Not sure if there's a clean way to deal with this since in this case it's gcc being alarmist.

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

Posted a fix for this to upstream:
http://patchwork.ozlabs.org/patch/82630/

but we'll see if anybody else comes up with a better approach before I commit it to qemu-linaro.

Changed in qemu-linaro:
status: New → In Progress
importance: Undecided → Low
milestone: none → 2011.03
Peter Maydell (pmaydell)
Changed in qemu-linaro:
status: In Progress → Fix Committed
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.