OpenWrt Forum Archive

Topic: Compile Kamikaze on OS X

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

Hi, I have some problem when i try to compile the project.
I have a arch mips.
1)I launch:
  > make prereq
respond with error on case-sensitive filesystem?? and it not found gnu-find??
I changed include/.prereq-build.mk this prereq becouse i don't know what i can do...

2) After I chose the package (only default) and I run make but it respond this:
1 out of 1 hunk ignored -- saving rejects to file net/ipv4/netfilter/ipt_SET.c.rej
patching file net/ipv4/netfilter/Kconfig
Hunk #1 succeeded at 408 (offset 6 lines).
patching file net/ipv4/netfilter/Makefile
Hunk #1 succeeded at 48 with fuzz 1.
Hunk #2 succeeded at 65 (offset 2 lines).
Patch failed!  Please fix /Users/manu/Desktop/opt/target/linux/generic-2.6/patches-2.6.23/130-netfilter_ipset.patch!
make[3]: *** [/Users/manu/Desktop/opt/build_dir/toolchain-mips_gcc4.1.2/linux-2.6.23.16/.prepared39ff6c9e7c56cb2dcf590c9c363a48fc] Error 1
make[2]: *** [toolchain/kernel-headers/prepare] Error 2
make[1]: *** [/Users/manu/Desktop/opt/staging_dir/mips/stamp/.toolchain_install] Error 2
make: *** [world] Error 2

first of all you need HFS+ with case sensitive file system. so.. a reformat mabye. second you need latest XCode installed.
i've successfully build openwrt this way though.. the same speed when using a virtual linux machine in vmware with the big advantage that you can take the VM with you @ work ...

(Last edited by dlbogdan on 16 Apr 2008, 22:49)

You can use a disk image formatted with case-sensitive HFS+ to avoid reformatting your drive. In addition to Xcode, you need to install gawk, sed, and xargs. The version of sed that ships with OS X won't work. If you're running Tiger or running Leopard on an Intel-based Mac, that should be enough to be able to build Kamikaze successfully. If you're running Leopard on a PPC-based system, you have to patch gcc to get it to compile successfully.

The discussion might have continued from here.