Page 1 of 1

Compilation under MacOS

Posted: Tue Jul 05, 2016 8:18 am
by mespersen
Hi,

I'm trying to compile openwrt on MacOS (El Capitain) and get the following error:

make[5]: Entering directory `/Volumes/VoCore/openwrt/build_dir/target-mipsel_24kec+dsp_musl-1.1.14/linux-ramips_rt305x/linux-4.4.4'
Makefile:653: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
/Volumes/VoCore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-musl-gcc: /Volumes/VoCore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-musl-gcc: cannot execute binary file
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
/bin/sh: /Volumes/VoCore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-musl-gcc: cannot execute binary file
make[6]: *** [kernel/bounds.s] Error 126
make[5]: *** [prepare0] Error 2

Any suggestions of what may be missing?

The file binary seems fine:
ls -l /Volumes/VoCore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-musl-gcc
-rwxr-xr-x@ 1 mespersen staff 2515316 9 Mar 19:50 /Volumes/VoCore/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.3.0_musl-1.1.14/bin/mipsel-openwrt-linux-musl-gcc

Thanks

-Mikael

Re: Compilation under MacOS

Posted: Fri Jul 08, 2016 12:25 pm
by Vonger
better to use VM in linux :)