All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] error in the make: bad value in the asm-offsets.c  file
@ 2018-11-07 16:19 Sarah Wicker
  2018-11-07 17:08 ` Ian Kane
  0 siblings, 1 reply; 6+ messages in thread
From: Sarah Wicker @ 2018-11-07 16:19 UTC (permalink / raw)
  To: u-boot

Good Morning,
i am trying to compile u-boot on my pc  to use it for a ZedBoard from Xilinx.
I cloned the repository u-boot-xlnx using this link: https://github.com/Xilinx/u-boot-xlnx.git
Made the first make to build the U-boot for a ZedBoard, it works well. Asked for the second make and i received the message that in the file asm-offsets.c:1:0: error: bad value (armv5) for -march=switch
I opened the file but couldn't see were was this value

[cid:image001.jpg at 01D476BE.1BC339F0]

For information i am trying to compile on a virtual machine using Debian9.5.0

I thank you in advance for your help

Sarah Wicker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 14377 bytes
Desc: image001.jpg
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181107/e777d18a/attachment.jpg>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] error in the make: bad value in the asm-offsets.c file
  2018-11-07 16:19 [U-Boot] error in the make: bad value in the asm-offsets.c file Sarah Wicker
@ 2018-11-07 17:08 ` Ian Kane
  2018-11-07 22:00   ` Chris Packham
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Kane @ 2018-11-07 17:08 UTC (permalink / raw)
  To: u-boot

Sarah,

It looks to me from the attached image that the error is related to an expected, but missing value for the -march flag.  
To me, I'd expect to see "-march=ARMv5 switch" instead of "-march= switch".  Make note of the empty space in the second.

However I defer to anyone else more knowledgeable on the subject, I'm very new user of the project myself.

Best regards,
- Ian
________________________________________
From: U-Boot <u-boot-bounces@lists.denx.de> on behalf of Sarah Wicker <S.Wicker@PRIMES.de>
Sent: Wednesday, November 7, 2018 11:19 AM
To: u-boot at lists.denx.de
Subject: [U-Boot] error in the make: bad value in the asm-offsets.c  file

Good Morning,
i am trying to compile u-boot on my pc  to use it for a ZedBoard from Xilinx.
I cloned the repository u-boot-xlnx using this link: https://github.com/Xilinx/u-boot-xlnx.git
Made the first make to build the U-boot for a ZedBoard, it works well. Asked for the second make and i received the message that in the file asm-offsets.c:1:0: error: bad value (armv5) for -march=switch
I opened the file but couldn't see were was this value

[cid:image001.jpg at 01D476BE.1BC339F0]

For information i am trying to compile on a virtual machine using Debian9.5.0

I thank you in advance for your help

Sarah Wicker

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] error in the make: bad value in the asm-offsets.c file
  2018-11-07 17:08 ` Ian Kane
@ 2018-11-07 22:00   ` Chris Packham
  2018-11-08 13:07     ` Sarah Wicker
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Packham @ 2018-11-07 22:00 UTC (permalink / raw)
  To: u-boot

Hi Ian, Sarah,

On Thu, 8 Nov 2018, 6:09 AM Ian Kane <ikane@codeblue.com wrote:

> Sarah,
>
> It looks to me from the attached image that the error is related to an
> expected, but missing value for the -march flag.
> To me, I'd expect to see "-march=ARMv5 switch" instead of "-march=
> switch".  Make note of the empty space in the second.
>
> However I defer to anyone else more knowledgeable on the subject, I'm very
> new user of the project myself.
>

Yes you are on the right track.

>
> Best regards,
> - Ian
> ________________________________________
> From: U-Boot <u-boot-bounces@lists.denx.de> on behalf of Sarah Wicker
> <S.Wicker@PRIMES.de>
> Sent: Wednesday, November 7, 2018 11:19 AM
> To: u-boot at lists.denx.de
> Subject: [U-Boot] error in the make: bad value in the asm-offsets.c  file
>
> Good Morning,
> i am trying to compile u-boot on my pc  to use it for a ZedBoard from
> Xilinx.
> I cloned the repository u-boot-xlnx using this link:
> https://github.com/Xilinx/u-boot-xlnx.git
> Made the first make to build the U-boot for a ZedBoard, it works well.
> Asked for the second make and i received the message that in the file
> asm-offsets.c:1:0: error: bad value (armv5) for -march=switch
> I opened the file but couldn't see were was this value
>
> [cid:image001.jpg at 01D476BE.1BC339F0]
>
> For information i am trying to compile on a virtual machine using
> Debian9.5.0
>
> I thank you in advance for your help
>

The problem is more than likely that you are using the host compiler, which
is probably x86 and doesn know how to generate output for arm. To compile
for an embedded target you need a suitable cross compiler. For debian i
believe there is a packaged arm compiler so it should just be a matter of

sudo apt install gcc-arm-linux-gnueabi
export CROSS_COMPILE=gcc-arm-linux-gnueabi
make ZedBoard_defconfig
make

The lastest u-boot does require a fairly up to date gcc for arm. I'm not
sure what debian ship. But if you get errors about the cross compiler being
too old you might need to grab a more recent compiler from
https://www.kernel.org/pub/tools/crosstool/ or the excellent
https://toolchains.bootlin.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] error in the make: bad value in the asm-offsets.c file
  2018-11-07 22:00   ` Chris Packham
@ 2018-11-08 13:07     ` Sarah Wicker
  2018-11-09  0:16       ` Chris Packham
  0 siblings, 1 reply; 6+ messages in thread
From: Sarah Wicker @ 2018-11-08 13:07 UTC (permalink / raw)
  To: u-boot

Hi Chris, Ian,
i tested with downloading and installing the package through the terminal, changing the CROSS_COMPILE value and redoing the make, it didn#t work.
So i tried using the first link https://www.kernel.org/pub/tools/crosstool/ and later  https://toolchains.bootlin.com/ but still the same result.

Each time have added the path tot he binary files to my main path (export PATH=‘pwd‘$PATH) and changing the CROSS_COMPILER value according the package i wanted to use but the error stayed the same.

In the end I used the package: armv5-eabi--glibc--stable-2018.02-2.tar.gz2 since the error messages is referring to armv5. Unpacked it into another folder, linked the path tot he binary files and export CROSS_COMPILE=arm-buildroot-linux-gnueabi-
But i still got the same error… Do you have another idea?
Thank yuo a lot for your help,
Sarah


Von: Chris Packham [mailto:judge.packham at gmail.com]
Gesendet: Mittwoch, 7. November 2018 23:00
An: Ian Kane <ikane@codeblue.com>
Cc: Sarah Wicker <S.Wicker@PRIMES.de>; u-boot <u-boot@lists.denx.de>
Betreff: Re: [U-Boot] error in the make: bad value in the asm-offsets.c file

Hi Ian, Sarah,
On Thu, 8 Nov 2018, 6:09 AM Ian Kane <ikane at codeblue.com<mailto:ikane@codeblue.com> wrote:
Sarah,

It looks to me from the attached image that the error is related to an expected, but missing value for the -march flag.
To me, I'd expect to see "-march=ARMv5 switch" instead of "-march= switch".  Make note of the empty space in the second.

However I defer to anyone else more knowledgeable on the subject, I'm very new user of the project myself.

Yes you are on the right track.

Best regards,
- Ian
________________________________________
From: U-Boot <u-boot-bounces at lists.denx.de<mailto:u-boot-bounces@lists.denx.de>> on behalf of Sarah Wicker <S.Wicker at PRIMES.de<mailto:S.Wicker@PRIMES.de>>
Sent: Wednesday, November 7, 2018 11:19 AM
To: u-boot at lists.denx.de<mailto:u-boot@lists.denx.de>
Subject: [U-Boot] error in the make: bad value in the asm-offsets.c  file

Good Morning,
i am trying to compile u-boot on my pc  to use it for a ZedBoard from Xilinx.
I cloned the repository u-boot-xlnx using this link: https://github.com/Xilinx/u-boot-xlnx.git
Made the first make to build the U-boot for a ZedBoard, it works well. Asked for the second make and i received the message that in the file asm-offsets.c:1:0: error: bad value (armv5) for -march=switch
I opened the file but couldn't see were was this value

[cid:image001.jpg at 01D476BE.1BC339F0]

For information i am trying to compile on a virtual machine using Debian9.5.0

I thank you in advance for your help

The problem is more than likely that you are using the host compiler, which is probably x86 and doesn know how to generate output for arm. To compile for an embedded target you need a suitable cross compiler. For debian i believe there is a packaged arm compiler so it should just be a matter of

sudo apt install gcc-arm-linux-gnueabi
export CROSS_COMPILE=gcc-arm-linux-gnueabi
make ZedBoard_defconfig
make

The lastest u-boot does require a fairly up to date gcc for arm. I'm not sure what debian ship. But if you get errors about the cross compiler being too old you might need to grab a more recent compiler from https://www.kernel.org/pub/tools/crosstool/ or the excellent https://toolchains.bootlin.com/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] error in the make: bad value in the asm-offsets.c file
  2018-11-08 13:07     ` Sarah Wicker
@ 2018-11-09  0:16       ` Chris Packham
  2018-11-09  7:41         ` Chris Packham
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Packham @ 2018-11-09  0:16 UTC (permalink / raw)
  To: u-boot

On Fri, 9 Nov 2018, 2:08 AM Sarah Wicker <S.Wicker@primes.de wrote:

> Hi Chris, Ian,
>
> i tested with downloading and installing the package through the terminal,
> changing the CROSS_COMPILE value and redoing the make, it didn#t work.
>
> So i tried using the first link
> https://www.kernel.org/pub/tools/crosstool/ and later
> https://toolchains.bootlin.com/ but still the same result.
>
>
>
> Each time have added the path tot he binary files to my main path (export
> PATH=‘pwd‘$PATH) and changing the CROSS_COMPILER value according the
> package i wanted to use but the error stayed the same.
>
>
>
> In the end I used the package: armv5-eabi--glibc--stable-2018.02-2.tar.gz2
> since the error messages is referring to armv5. Unpacked it into another
> folder, linked the path tot he binary files and export
> CROSS_COMPILE=arm-buildroot-linux-gnueabi-
>
> But i still got the same error… Do you have another idea?
>
> Thank yuo a lot for your help,
>

I think to get a better idea of what's going on you should post a complete
console log starting from a new shell setting PATH & CROSS_COMPILE up to
the build error.

Also just as a test to check your compiler run ${CROSS_COMPILE}cc --version

> Sarah
>
>
>
>
>
> *Von:* Chris Packham [mailto:judge.packham at gmail.com]
> *Gesendet:* Mittwoch, 7. November 2018 23:00
> *An:* Ian Kane <ikane@codeblue.com>
> *Cc:* Sarah Wicker <S.Wicker@PRIMES.de>; u-boot <u-boot@lists.denx.de>
> *Betreff:* Re: [U-Boot] error in the make: bad value in the asm-offsets.c
> file
>
>
>
> Hi Ian, Sarah,
>
> On Thu, 8 Nov 2018, 6:09 AM Ian Kane <ikane@codeblue.com wrote:
>
> Sarah,
>
> It looks to me from the attached image that the error is related to an
> expected, but missing value for the -march flag.
> To me, I'd expect to see "-march=ARMv5 switch" instead of "-march=
> switch".  Make note of the empty space in the second.
>
> However I defer to anyone else more knowledgeable on the subject, I'm very
> new user of the project myself.
>
>
>
> Yes you are on the right track.
>
>
> Best regards,
> - Ian
> ________________________________________
> From: U-Boot <u-boot-bounces@lists.denx.de> on behalf of Sarah Wicker <
> S.Wicker at PRIMES.de>
> Sent: Wednesday, November 7, 2018 11:19 AM
> To: u-boot at lists.denx.de
> Subject: [U-Boot] error in the make: bad value in the asm-offsets.c  file
>
> Good Morning,
> i am trying to compile u-boot on my pc  to use it for a ZedBoard from
> Xilinx.
> I cloned the repository u-boot-xlnx using this link:
> https://github.com/Xilinx/u-boot-xlnx.git
> Made the first make to build the U-boot for a ZedBoard, it works well.
> Asked for the second make and i received the message that in the file
> asm-offsets.c:1:0: error: bad value (armv5) for -march=switch
> I opened the file but couldn't see were was this value
>
> [cid:image001.jpg at 01D476BE.1BC339F0]
>
> For information i am trying to compile on a virtual machine using
> Debian9.5.0
>
> I thank you in advance for your help
>
>
>
> The problem is more than likely that you are using the host compiler,
> which is probably x86 and doesn know how to generate output for arm. To
> compile for an embedded target you need a suitable cross compiler. For
> debian i believe there is a packaged arm compiler so it should just be a
> matter of
>
>
>
> sudo apt install gcc-arm-linux-gnueabi
>
> export CROSS_COMPILE=gcc-arm-linux-gnueabi
>
> make ZedBoard_defconfig
>
> make
>
>
>
> The lastest u-boot does require a fairly up to date gcc for arm. I'm not
> sure what debian ship. But if you get errors about the cross compiler being
> too old you might need to grab a more recent compiler from
> https://www.kernel.org/pub/tools/crosstool/ or the excellent
> https://toolchains.bootlin.com/
>
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] error in the make: bad value in the asm-offsets.c file
  2018-11-09  0:16       ` Chris Packham
@ 2018-11-09  7:41         ` Chris Packham
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Packham @ 2018-11-09  7:41 UTC (permalink / raw)
  To: u-boot

On Fri, Nov 9, 2018 at 1:16 PM Chris Packham <judge.packham@gmail.com> wrote:
>
>
>
> On Fri, 9 Nov 2018, 2:08 AM Sarah Wicker <S.Wicker@primes.de wrote:
>>
>> Hi Chris, Ian,
>>
>> i tested with downloading and installing the package through the terminal, changing the CROSS_COMPILE value and redoing the make, it didn#t work.
>>
>> So i tried using the first link https://www.kernel.org/pub/tools/crosstool/ and later  https://toolchains.bootlin.com/ but still the same result.
>>
>>
>>
>> Each time have added the path tot he binary files to my main path (export PATH=‘pwd‘$PATH) and changing the CROSS_COMPILER value according the package i wanted to use but the error stayed the same.
>>
>>
>>
>> In the end I used the package: armv5-eabi--glibc--stable-2018.02-2.tar.gz2 since the error messages is referring to armv5. Unpacked it into another folder, linked the path tot he binary files and export CROSS_COMPILE=arm-buildroot-linux-gnueabi-
>>
>> But i still got the same error… Do you have another idea?
>>
>> Thank yuo a lot for your help,
>
>
> I think to get a better idea of what's going on you should post a complete console log starting from a new shell setting PATH & CROSS_COMPILE up to the build error.
>
> Also just as a test to check your compiler run ${CROSS_COMPILE}cc --version

If it helps here's a recipe that worked for me

wget https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/7.3.0/x86_64-gcc-7.3.0-nolibc_arm-linux-gnueabi.tar.xz
tar -xf ~/Downloads/x86_64-gcc-7.3.0-nolibc_arm-linux-gnueabi.tar.xz
git clone https://github.com/Xilinx/u-boot-xlnx.git
cd u-boot-xlnx
export PATH="$HOME/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin:$PATH"
export CROSS_COMPILE=arm-linux-gnueabi-
make zynq_zed_defconfig
make

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-09  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-07 16:19 [U-Boot] error in the make: bad value in the asm-offsets.c file Sarah Wicker
2018-11-07 17:08 ` Ian Kane
2018-11-07 22:00   ` Chris Packham
2018-11-08 13:07     ` Sarah Wicker
2018-11-09  0:16       ` Chris Packham
2018-11-09  7:41         ` Chris Packham

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.