Segmentation fault when compiling kernel/modules

389 views
Skip to first unread message

PPCS

unread,
Aug 15, 2011, 7:20:08 AM8/15/11
to Android Building
Hi All,

I am trying to cross-compile kernel/modules of gingerbread for arm on
64-bit Ubuntu (11.04). I am getting segmentation fault.

Could you please point what mistake I am doing?

export ARCH=arm
export TOOLCHAIN=/data/Source/Android/gingerbread/prebuilt/linux-x86/
toolchain/arm-eabi-4.3.1/bin
export PATH=$TOOLCHAIN:$PATH

[/data/Source/Android/gingerbread/kernel] > make modules
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 2400 modules
Segmentation fault
make[1]: *** [__modpost] Error 139
make: *** [modules] Error 2

The same is the case when I am building the kernel.

+ ppcs

Nathaniel Husted

unread,
Aug 15, 2011, 12:06:44 PM8/15/11
to Android Building
It might be worth trying to use version 4.4.3 of the toolchain and see
if you are receiving the same error. The one nasty thing about GCC is
that different minor versions can have radically different behaviours.

Cheers,
Nathaniel
Reply all
Reply to author
Forward
0 new messages