iPXE discussion forum
Need help compiling - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Need help compiling (/showthread.php?tid=411)

Need help compiling - Crusnik01 - 2011-06-11 06:21


I'm having a hard time getting iPXE compiled for my Intel 82576EB (8086:10C9). I have managed to get a gPXE image working
through the "rom-o-matic", but I really want to use iPXE.

Since I'm normaly running on Windows, I downloaded VirtualBox together with a Ubuntu image. I assume I don't have to run the compilation on the same computer that it's meant for, to get the image/ROM?

I start by running this command, after getting the files from git:
ubuntu@ubuntu-VirtualBox:~/ipxe/src$ make bin/808610C9.rom

The compilation runs for a while, and then stops with the following error:
[LD] bin/808610C9.rom.tmp
arch/i386/scripts/i386.lds:1: undefined symbol `obj_808610C9' referenced in expression
make: *** [bin/808610C9.rom.tmp] Error 1

Any help is greatly appreciated! Smile

RE: Need help compiling - robinsmidsrod - 2011-06-11 08:53

Have you verified that you have all the tools for compilation installed on your VM? The list of required tools are here: http://ipxe.org/download

I believe you should be able to install them all on Ubuntu with this command: sudo apt-get install build-essential perl

If this is all good you should verify that the error you're seeing is actually the FIRST error in the compilation chain. To me it seems like an item compiled earlier didn't build correctly for some reason, and that it, as this point, can't be located.

You could also have met a bug, and if so, you might want to try and checkout a slightly older version, possibly one that was before the last time that file (i386.lds) was modified (check the git log, look for the [i386] keyword specifically).

If you find out that an old commit works, doing a git bisect (see http://ipxe.org/howto/bisect) would really help the developers figure out where it broke.

RE: Need help compiling - Crusnik01 - 2011-06-19 02:50


I'm again having trouble getting iPXE compiled. I had to destroy the old VM box, so I'm working with the latest clone from git, and it seems there is somethign wrong.

Get this error now:
ubuntu@ubuntu-VirtualBox:~/ipxe/src$ make bin/808610c9.rom
  [BUILD] bin/main.o
core/main.c:33:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’
core/main.c: In function ‘main’:
core/main.c:99:38: error: ‘scriptlet_setting’ undeclared (first use in this function)
core/main.c:99:38: note: each undeclared identifier is reported only once for each function it appears in
make: *** [bin/main.o] Error 1

PS:I got it to compile last time I asked, after installing a few more headers and such, so this is kind of unrelated to the first post.

RE: Need help compiling - robinsmidsrod - 2011-06-19 18:51

Sorry, I haven't seen that one before. I'd verify that everything in your gcc toolchain is correctly installed, maybe try to do a fresh clone and try again. If it still fails, a bug report to the mailinglist might be your best bet.

RE: Need help compiling - MultimediaMan - 2011-07-17 08:43

If you can't get it working with Ubuntu, try CentOS 6.0 i386 or Scientific Linux 6.1: during installation, select the Software Development Workstation (last selection), after completing the install go ahead and open a terminal:

su root
yum update -y

*Reboot after yum update completes.

Open a terminal again,

su root
yum install syslinux mtools

Then you can install the iPXE stuff:

git clone git://git.ipxe.org/ipxe.git

then finally

cd ipxe/src