OpenWrt Forum Archive

Topic: building kamikaze x86 packages

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

Hi,
I'm actualy trying to run kamikaze on a x86 soekris net 5501 network appliance.
I successfully builded kamikaze with via drivers for eth and othre useful packages , but now I need to try to port some not aviable packages to kamikaze on my appliance.
When trying to build a package I get the following error :

checking for gcc... /home/kiaz/kamikaze_sdk/OpenWrt-SDK-x86-for-Linux-i686/staging_dir/toolchain-i386_gcc4.1.2/bin/i386-linux-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables

I had a similar error when trying to build packages for whiterussian on mips (wrt54gl) ... however i solved it adding --host to configure.
Now, I have to compile on x86, but linking to uclib.
If I run the ($STAGING_DIR)/toolchain-i386_gcc4.1.2/bin/i386-linux-gcc standalone and try to compile an hello world and copy it to my appliance everything works fine.
I don't know how to edit Makefile/Configure to avoid checking executabes .
Can you help me ?

Thanks.

Checkout the packages feeds with (./scripts/feeds update) and use an existing OpenWrt package Makefile and adapt it for your own package. Use the build-system and not the SDK.

What do you mean ?
That I can't build a single package but have to rebuild everything for a single package ?

The discussion might have continued from here.