Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Keon build error! (Mac OS)

157 views
Skip to first unread message

Francisco Mosquera García

unread,
May 8, 2013, 9:50:40 AM5/8/13
to
Hi everyone. I'm getting an error when trying to build FFOS for the Keon:

make[3]: *** [../external/compat-wireless/net/wireless/core.o] Error 8
make[2]: *** [_module_../external/compat-wireless] Error 2
make[1]: *** [sub-make] Error 2
make: *** [external_compat_wireless] Error 2
make: *** Waiting for unfinished jobs....

I'm using a Mac and I know is something bad configured on my computer but can't find/figure out what it is. Thanks!!

Hubert Figuière

unread,
May 8, 2013, 10:26:35 AM5/8/13
to Francisco Mosquera García
You cut interesting part of the error message, but I'll take a guess
that it is because you are on a Mac. You need a case sensitive file
system do build the kernel.


Hub

Francisco Mosquera García

unread,
May 8, 2013, 10:34:19 AM5/8/13
to
Any tips of what do I have to do to make it run?
I'm not an expert with kernel and I'm going crazy with this error.

This is the whole code that throws the error:

CC [M] ../external/compat-wireless/net/wireless/core.o
/Users/Chisco/B2G/kernel/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -Wp,-MD,../external/compat-wireless/net/wireless/.core.o.d -nostdinc -isystem /Users/Chisco/B2G/kernel/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc -print-file-name=include [Errno 8] Exec format error -I/Users/Chisco/B2G/kernel/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/Users/Chisco/B2G/kernel/include -include include/generated/autoconf.h -I/Users/Chisco/B2G/kernel/../external/compat-wireless -I../external/compat-wireless -D__KERNEL__ -mlittle-endian -I/Users/Chisco/B2G/kernel/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -DCONFIG_ATH6KL_DEBUG -DCONFIG_NL80211_TESTMODE -DCONFIG_CFG80211_DEFAULT_PS -DCONFIG_CFG80211_WEXT -DCONFIG_CFG80211_INTERNAL_REGDB -D__CHECK_ENDIAN__ -I/Users/Chisco/B2G/kernel/../external/compat-wireless/include -I../external/compat-wireless/include -I/Users/Chisco/B2G/kernel/../external/compat-wireless/net/wireless -I../external/compat-wireless/net/wireless -include include/linux/ieee80211.h -include include/linux/nl80211.h -include include/net/cfg80211.h -include include/linux/compat-2.6.h -include ../..//KERNEL_OBJ/usr/include/linux/version.h -DMODULE -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(core) -DKBUILD_MODNAME=KBUILD_STR(cfg80211) -c -o ../external/compat-wireless/net/wireless/core.o /Users/Chisco/B2G/kernel/../external/compat-wireless/net/wireless/core.c [Errno 8] Exec format error

From this point, there is the text I showed before.

Thank you very much for your answer.

Francisco Mosquera García

unread,
May 10, 2013, 10:55:31 PM5/10/13
to
Please, any help!

I really want to upgrade my keon!

Fabrice Desre

unread,
May 11, 2013, 1:37:19 AM5/11/13
to Francisco Mosquera García, dev...@lists.mozilla.org
On 05/10/2013 07:55 PM, Francisco Mosquera Garc�a wrote:
> Please, any help!
>
> I really want to upgrade my keon!

You can't build the Keon's kernel on Mac, only on linux.

Fabrice
--
Fabrice Desr�
b2g team
Mozilla Corporation

"平田修樹 (Naoki Hirata)"

unread,
May 12, 2013, 4:47:59 AM5/12/13
to dev...@lists.mozilla.org
What error are you getting?

On 5/10/13 7:55 PM, Francisco Mosquera García wrote:
> Please, any help!
>
> I really want to upgrade my keon!
> _______________________________________________
> dev-b2g mailing list
> dev...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-b2g

d23...@gmail.com

unread,
May 18, 2013, 3:12:43 PM5/18/13
to

> /Users/Chisco/B2G/kernel/../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc

It's trying to run the linux version of arm-eabi-gcc, while it should be running the one from the prebuilt/darwin-x86 directory.
I run into the same issue for Peak. I'll try and fix that later, but i'm not sure if that's the only problem.

Cheers,
Dennis

Alexandre Lissy

unread,
May 18, 2013, 3:28:52 PM5/18/13
to dev...@lists.mozilla.org
As far as I can tell, you can't build for Peak/Keon on OSX, because they
build the Linux kernel and kernel modules, which are not buildable under
OSX as far as I know.

>
> Cheers,
> Dennis

herman...@gmail.com

unread,
May 20, 2013, 11:37:10 AM5/20/13
to
Hi Dennis, has this been repaired? Would I have to rsync to get the changes that you might have made or do I have to wait until a new commit/pull request is shown on https://github.com/mozilla-b2g/B2G/commits/master

thanks
manher

d23...@gmail.com

unread,
May 22, 2013, 3:01:57 PM5/22/13
to
Didn't get around to look into the build system and properly fix it, but symlinking the B2G/kernel/../prebuilt/linux-* directories to the B2G/kernel/../prebuilt/darwin-* directories allowed me to build a working image for the PEAK.

Cheers,
Dennis

d23...@gmail.com

unread,
May 22, 2013, 3:14:14 PM5/22/13
to
It builds just fine, if you follow the instructions on developer.mozilla.org (especially the case sensitive filesystem parts)

I had to do 3 extra things (For the record, i'm using OSX 10.8.3):
- elf.h was not on the build path. I symlinked external/elfutils/libelf/elf.h to /usr/local/include
- incorrect arm-eabi-gcc is selected. I symlinked B2G/prebuilt/linux-* to B2G/prebuilt/darwin-*
- gnu-sed is needed. brew install gnu-sed. Make sure /usr/local/bin is on your path before /usr/bin.

Cheers,
Dennis

herman...@gmail.com

unread,
May 22, 2013, 4:43:14 PM5/22/13
to
Thanks Dennis. It´s worked for my KEON on the first attempt. However, I didn´t set up a case-sensitive image as per the recommendation, but it still seemed to build fine. (I´m on OS X 10.7.5)
Being new to everything B2G, I thought that I had to symlink those directories myself, but I see that its something you had taken care of.

ta again
manher

Jed Davis

unread,
May 22, 2013, 4:51:59 PM5/22/13
to d23...@gmail.com, dev...@lists.mozilla.org
On Wed, May 22, 2013 at 12:14:14PM -0700, d23...@gmail.com wrote:
> It builds just fine, if you follow the instructions on developer.mozilla.org (especially the case sensitive filesystem parts)
>
> I had to do 3 extra things (For the record, i'm using OSX 10.8.3):
> - elf.h was not on the build path. I symlinked external/elfutils/libelf/elf.h to /usr/local/include
> - incorrect arm-eabi-gcc is selected. I symlinked B2G/prebuilt/linux-* to B2G/prebuilt/darwin-*
> - gnu-sed is needed. brew install gnu-sed. Make sure /usr/local/bin is on your path before /usr/bin.

Please file bug reports about at least the first two items there, if you
haven't already. People shouldn't need to symlink target headers into
the host's /usr/local/include, and it certainly shouldn't be the case
that `setpaths` in build/envsetup.sh sets $prebuiltdir (which I think is
where that part of $PATH should be coming from) to a linux-* tree when
run on a Mac.

--Jed

Luis Cuervo

unread,
May 23, 2013, 4:21:37 AM5/23/13
to
El miércoles, 22 de mayo de 2013 22:51:59 UTC+2, Jed Davis escribió:
The prebuild problem is fixed now in keon and peak:

https://github.com/gp-b2g/gp-keon-kernel/commit/2ca8e9deafa63b0f9a839860e9a3f835e6f5e3a6

https://github.com/gp-b2g/gp-peak-kernel/commit/e53ce64297565ce05cf665f5a320da241b3ba21a

pedr...@gmail.com

unread,
May 23, 2013, 4:26:10 AM5/23/13
to
I have no external/elfutils in my B2G tree :(

Francisco Mosquera García

unread,
May 25, 2013, 1:35:59 PM5/25/13
to
Hi everyone.
Thanks for the tips, but I also have problems finding the external/elfutils folders. Any help?

Thanks!
0 new messages