OpenWrt Forum Archive

Topic: package build error - gcc command not found

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm building luajit 2.1 using a minimal Makefile on Ubuntu 64-bit 14.04. The Makefile, error output, and .config files are at https://gist.github.com/wrabbit-revisit … 234c322018 . The Makefile uses the default behavior for most of the functionality but i'm getting a complaint:

make[5]: i486-openwrt-linux-uclibc-i486-openwrt-linux-uclibc-gcc: Command not found

There seems to be something wrong with the SDK environment that causes it to double-up the "i486-openwrt-linux-uclibc". There is a "i486-openwrt-linux-uclibc-gcc" under the staging_dir. I have not found any instances of "i486-openwrt-linux-uclibc-i486-openwrt-linux-uclibc-gcc" in the text of the SDK files so it seems a variable is being concatenated twice.

The SDK is generated from a build of openwrt 14.07 Barrier Breaker retrieved via
git clone git://git.openwrt.org/14.07/openwrt.git

It's probably simple. Does anyone have any suggestions wrt tracking it down?

It is possible that the luajit Makefile concatenates the cross compile prefix with the value of $(CC) which already contains the prefix. Try MAKE_VARS+= CC=gcc

The discussion might have continued from here.