Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make on raspberry
2013-04-18, 09:08
Post: #1
make on raspberry
Hello!

I tried setting up ipxe on a raspberry PI. The way I use ipxe requires me to build the boot images on the raspberry but I get several errors (all the same, but for different objects) when running make. I do not want to boot the raspberry using ipxe, I just want to generate the files to boot a standard PC.

Code:
[BUILD] bin/__divdi3.o
cc1: error: bad value (i386) for -march switch
cc1: error: unrecognized command line option ‘-mpreferred-stack-boundary=2’
cc1: error: unrecognized command line option ‘-mregparm=3’
cc1: error: unrecognized command line option ‘-mrtd’
cc1: error: unrecognized command line option ‘-m32’
make: *** [bin/__divdi3.o] Error 1

Can anyone of the cracks help me please?

Thank you,
Thorsten
Find all posts by this user
Quote this message in a reply
2013-04-18, 10:40
Post: #2
RE: make on raspberry
(2013-04-18 09:08)Viator Wrote:  I tried setting up ipxe on a raspberry PI. The way I use ipxe requires me to build the boot images on the raspberry but I get several errors (all the same, but for different objects) when running make. I do not want to boot the raspberry using ipxe, I just want to generate the files to boot a standard PC.
Code:
[BUILD] bin/__divdi3.o
cc1: error: bad value (i386) for -march switch
cc1: error: unrecognized command line option ‘-mpreferred-stack-boundary=2’
cc1: error: unrecognized command line option ‘-mregparm=3’
cc1: error: unrecognized command line option ‘-mrtd’
cc1: error: unrecognized command line option ‘-m32’
make: *** [bin/__divdi3.o] Error 1

You'll need to install a cross-compiling build of gcc which is capable of building x86 binaries. Once you've done this, you can then build iPXE by adding something like "CROSS_COMPILE=i386-linux-gnu-" to the make command line.

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
2013-04-18, 14:00
Post: #3
RE: make on raspberry
(2013-04-18 10:40)mcb30 Wrote:  You'll need to install a cross-compiling build of gcc which is capable of building x86 binaries. Once you've done this, you can then build iPXE by adding something like "CROSS_COMPILE=i386-linux-gnu-" to the make command line.

Michael

Hi Michael!

Thank you for the answer. I assume the hard part starts now: getting a crosscompiler. Building ARM Code on a PC seems to be more common than the other way around.

Best whishes, Thorsten
Find all posts by this user
Quote this message in a reply
2013-04-25, 18:30
Post: #4
RE: make on raspberry
(2013-04-18 14:00)Viator Wrote:  
(2013-04-18 10:40)mcb30 Wrote:  You'll need to install a cross-compiling build of gcc which is capable of building x86 binaries. Once you've done this, you can then build iPXE by adding something like "CROSS_COMPILE=i386-linux-gnu-" to the make command line.

Michael

Hi Michael!

Thank you for the answer. I assume the hard part starts now: getting a crosscompiler. Building ARM Code on a PC seems to be more common than the other way around.

Best whishes, Thorsten
Try too look on crosstools, you can get many usefully information on gentoo site embedded part of it, i'v been able to build a complete gentoo distro on my gentoo 64 machine, you can use native rasp distro, but due to poor performance, compiling take long time to end, so, you can use distcc to setup a bunch of machine like "compiler cluster" in gentoo web you will find ALL the info you need, i'm not a gentoo dev or other, simply i used.
Find all posts by this user
Quote this message in a reply
2013-04-26, 07:48
Post: #5
RE: make on raspberry
(2013-04-25 18:30)Aigor Wrote:  Try too look on crosstools, you can get many usefully information on gentoo site embedded part of it, i'v been able to build a complete gentoo distro on my gentoo 64 machine, you can use native rasp distro, but due to poor performance, compiling take long time to end, so, you can use distcc to setup a bunch of machine like "compiler cluster" in gentoo web you will find ALL the info you need, i'm not a gentoo dev or other, simply i used.

Hello Aigor!

Thank you very much for this information. This will help me a lot.

Thorsten
Find all posts by this user
Quote this message in a reply
2013-04-26, 10:06
Post: #6
RE: make on raspberry
(2013-04-26 07:48)Viator Wrote:  
(2013-04-25 18:30)Aigor Wrote:  Try too look on crosstools, you can get many usefully information on gentoo site embedded part of it, i'v been able to build a complete gentoo distro on my gentoo 64 machine, you can use native rasp distro, but due to poor performance, compiling take long time to end, so, you can use distcc to setup a bunch of machine like "compiler cluster" in gentoo web you will find ALL the info you need, i'm not a gentoo dev or other, simply i used.

Hello Aigor!

Thank you very much for this information. This will help me a lot.

Thorsten

You are Welcome Thorsten :-) i hope you can setup your environement
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)