[ipxe-devel] Build fail on FreeBSD

Jedrzej Kalinowski kalinoj1 at iem.pw.edu.pl
Thu Oct 28 07:32:36 UTC 2010


 On Wed, 27 Oct 2010 22:06:47 +0100, Michael Brown 
 <mbrown at fensystems.co.uk> wrote:
> On Wednesday 27 Oct 2010 20:27:52 Jedrzej Kalinowski wrote:
>
> Interesting.  I don't have a gcc 4.2.1 available to test with; if you 
> (or
> anyone else) would like to try playing around with
> fc_els_prli_detect() to find
> out exactly what triggers this gcc bug, that would be helpful.
>

 I'll try to find it out somehow in spare time.

>>  I switched to gcc 4.4.5, and now I've got this:
>>
>>    [BUILD] bin/tap.o
>>  In file included from drivers/linux/tap.c:22:
>>  include/linux_api.h:37:25: error: linux/types.h: No such file or
>>  directory
>>  include/linux_api.h:38:31: error: linux/posix_types.h: No such file 
>> or
>>  directory
>>  In file included from drivers/linux/tap.c:22:
>>  include/linux_api.h:39: error: expected '=', ',', ';', 'asm' or
>>  '__attribute__' before 'pid_t'
>>  ....
>>
>>  Looks like looking for header files not present in FreeBSD.
>
> As Shao says, this is due to iPXE attempting to build the
> Linux-specific code
> on a platform that doesn't have Linux-specific headers.  Could you 
> try the
> attached patch and see if this fixes your problem?
>
> Thanks,
>
> Michael

 It helped a bit, then gmake stoppped with the same issue on 
 interface/linux/linux_console.c, so I also removed 'interface/linux' 
 from the src/Makefile:173. The next stop is:
 ...
   [BUILD] bin/libprefix.o
   [BUILD] bin/linuxprefix.o
 arch/i386/prefix/linuxprefix.S:1:26: error: linux/unistd.h: No such 
 file or directory
   [BUILD] bin/lkrnprefix.o
   [BUILD] bin/mbr.o
   [BUILD] bin/mromprefix.o
 arch/i386/prefix/romprefix.S: Assembler messages:
 arch/i386/prefix/romprefix.S:492: Error: `%es:build_id(%esi)' is not a 
 valid 16 bit base/index expression


 Br,
 Jedrzej Kalinowski



More information about the ipxe-devel mailing list