[ipxe-devel] Any body help me to compile ipxe on FreeBSD?

Pccom Frank pccom.frank at gmail.com
Sat Jan 11 16:09:22 UTC 2014


I do not want to compile ipxe on LInux then copy to my FreeBSD every time.

The newest FreeBSD has no gcc as default. The default cc is clang.

I have installed gcc-4.6.4. But when I which gcc, it says command not
found. When I which cc, it found at /usr/bin/cc

which clang, it says /usr/bin/clang.

So I  changed gcc to cc or in the Makefile.

HOST_CC         := cc
CC              := $(CROSS_COMPILE)cc

Right now, the error is as following:

root at v220:/usr/local/ipxe/src # gmake bin/ipxe.usb
 [BUILD] bin/pcmcia.o
cc: error: argument unused during compilation: '-fstrength-reduce'
cc: error: argument unused during compilation: '-falign-jumps=1'
cc: error: argument unused during compilation: '-falign-loops=1'
cc: error: argument unused during compilation: '-falign-functions=1'
cc: error: argument unused during compilation:
'-mpreferred-stack-boundary=2'
cc: error: argument unused during compilation: '-freg-struct-return'
gmake: *** [bin/pcmcia.o] Error 1

root at v220:/usr/local/ipxe/src # pkg info |grep gcc
gcc-4.6.4                      GNU Compiler Collection 4.6
gcc-ecj-4.5                    Eclipse Java Compiler used to build GCC Java
root at v220:/usr/local/ipxe/src #

root at v220:/usr/local/ipxe/src # cc --version
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
root at v220:/usr/local/ipxe/src #

It has no error on the Ubuntu linux.

When I which gcc on ubuntu

it says /usr/bin/gcc
When I gcc --version
it says gcc (Ubuntu/Linar 4.7.2ubuntu1) 4.7.2

I believe that it is easy to fix. Please help me!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20140111/c9788cdb/attachment.htm>


More information about the ipxe-devel mailing list