Build fails on optionrom

Bug #1629483 reported by Benjamin Kamath
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

Git pseudo-bisected (focused on optionrom commits) it to this commit.

commit cdbd727c20ad7aac7797dc8c95e485e1a4c6901b
Author: Richard Henderson <email address hidden>
Date: Thu Jul 7 21:49:36 2016 -0700

    build: Use $(AS) for optionrom explicitly

Build output (non-verbose):

  AS optionrom/linuxboot.o
cpp: fatal error: '-c' is not a valid option to the preprocessor
compilation terminated.
cpp: fatal error: '-c' is not a valid option to the preprocessor
compilation terminated.
  CC optionrom/linuxboot_dma.o
  CC /home/bkamath/dev/workspace/block-2/mothra/output/sp0/targetqga/main.o
  AS optionrom/kvmvapic.o
cpp: fatal error: '-c' is not a valid option to the preprocessor
compilation terminated.

Steps to reproduce:
Using buildroot and overriding qemu version to 2.7.0
Fedora 24, cpp (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)

I tried first just building without the -c option but it hangs indefinitely. Reverting the above listed commit fixes the problem on my platform. I didn't dive much further into this, because this seems like a regression.

Revision history for this message
David (dkerr64) wrote :

I am seeing the same problem. Cross compiling QEMU 2.7 using buildroot get fatal error -c is not a valid option. As Benjamin states removing the -c flag from Makefile gets through the compile, but when booting a virtual image of Ubuntu 16.04 the network does not come up (console is live and you can login through the console, but the only network interface is loopback) I have not diagnosed further.

I was not able to simply back out the optionrom commit Benjamin cites... caused problems elsewhere, perhaps because I was not doing it right. Reverting to QEMU 2.6.2 does work.

David

Revision history for this message
Thomas Huth (th-huth) wrote :

Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?

Changed in qemu:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for QEMU because there has been no activity for 60 days.]

Changed in qemu:
status: Incomplete → Expired
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.