Closed Bug 1027682 Opened 7 years ago Closed 6 years ago

[Flame][Build] Failed to build on Mac OS X 10.9, elf.h file not found


(Firefox OS Graveyard :: General, defect)

Not set


(Not tracked)



(Reporter: tauzen, Assigned: jld)



(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36

Steps to reproduce:

Building flame on Mac OS X 10.9 fails with:
B2G/kernel/scripts/mod/mk_elfconfig.c:4:10: fatal error: 'elf.h' file not found

Workaround: copy elf.h from B2G source to /usr/local/include. I actually did:

> cp B2G/external/elfutils/libelf/elf.h /usr/local/include
Hi Jed, 
I use your patch[1] and it works well!
Would you mind checking in your patch to code base? 

Flags: needinfo?(jld)
Sorry for the delay.  This is just the patch linked in comment #1, applied with git-am to the flame-kk branch.  I confirmed that the build still works on Linux with this patch; comment #1 confirms that it works on Mac, so I didn't re-test that case.

In case the license on the header is a concern: it's used only for build tools run on the host, not as part of the kernel image, and it's effectively just a restatement of part of the ELF specification in any case.
Assignee: nobody → jld
Flags: needinfo?(jld)
Attachment #8534731 - Flags: review?(mwu)
Comment on attachment 8534731 [details] [review]
Link to GitHub pull request for codeaurora_kernel_msm

Good stuff.

I'm not too worried about putting LGPL code into a repo that is GPL.
Attachment #8534731 - Flags: review?(mwu) → review+
confirming that I can build b2g again on mac os!
You need to log in before you can comment on or make changes to this bug.