Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
pullanlu
Posts: 25
Registered: ‎04-21-2012
0

Zynq Tool Installation and U-boot compilation errors: unrecognized command line option "-mno-unaligned-access"

I followed the http://wiki.xilinx.com/zynq-tools page to install ARM GNU Tools to a Linux host running Ubuntu 11.10 64-bit.

Saw the error/warning below while running the ./arm-2010.09-62-arm-xilinxa9-linux-gnueabi.bi:

   Configuring the installer for this system's environment...

   strings: '/lib/libc.so.6': No such file

The CodeSourcery installation finished nonetheless.

Two directories were created:

  - The Sourcery_G++_Lite has everything including a /bin dir that has all GNU tools. Prefix of those tools,however, is arm-xilinxa9-...; not the arm-xilinx-... as documented in wiki page.

  - The other created directory "Sourcery_G++_Lite_for_Xilinx_Cortex-A9_GNU_Linux" has a bunch of pdf and html files and no sub-dirs.

So I set CROSS_COMPILE and PATH to use executibles in the Sourcery_G++_Lite.

 

Ran "make" on u-boot source got from git.xilnx.com and got the following errors:

 

arm-xilinxa9-linux-gnueabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x04000000   -I/home/plu/proj/gcv/src/u-boot-xarm/include -fno-builtin -ffreestanding -nostdinc -isystem /home/plu/bin/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-xilinxa9-linux-gnueabi/4.5.1/include -pipe  -DCONFIG_ARM -D__ARM__         -march=armv5 -march=armv7-a -I/home/plu/proj/gcv/src/u-boot-xarm/board/xilinx/common -I/home/plu/proj/gcv/src/u-boot-xarm/board/xilinx/dfe -Wall -Wstrict-prototypes -mno-unaligned-access    \
        -o hello_world.o hello_world.c -c
cc1: error: unrecognized command line option "-mno-unaligned-access"
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/home/plu/proj/gcv/src/u-boot-xarm/examples/standalone'
make: *** [examples/standalone] Error 2


 

 

 

Expert Contributor
linnj
Posts: 1,038
Registered: ‎09-10-2008
0

Re: Zynq Tool Installation and U-boot compilation errors: unrecognized command line option "-mno-unaligned-access"

Hi,

 

I pasted in what the wiki page says below.  You are not using the version of the tools that it specifies such that you will see this error.  Note the CROSS_COMPILE variable you are using does not match either as it changed between tools versions.

 

It seems that there are 2 versions of the tools at the site and I will see if we can remove the older version so as to reduce this confusion.

 

Thanks,

John

 

Downloading the Tools

The GNU tools (for Linux hosts) are available for download from the following link (as an installer), ARM GNU Tools.

After download the GNU tools, just run the installer (xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin), to install the tools on your Linux host.

Setting Up the Tools

Many software items, such as Linux, use the environment variable CROSS_COMPILE, to invoke the GNU tools that are used to build it. The following command should be used to add the tools to the Linux host path and setup the environment variable in a Bash shell.

bash> export CROSS_COMPILE=arm-xilinx-linux-gnueabi- bash> export PATH=<path>/CodeSourcery/2011.09/lin/Sourcery_CodeBench_Lite/bin:$PATH
John Linn
Regular Visitor
pullanlu
Posts: 25
Registered: ‎04-21-2012
0

Re: Zynq Tool Installation and U-boot compilation errors: unrecognized command line option "-mno-unaligned-access"

John,

 

I was able to download the newer package "xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin" and recompile the u-boot without problem. Thanks.

 

I, however, still saw the message "strings: '/lib/libc.so.6': No such file" when running the bin file. See complete message below. Since I was able to recompile u-boot, I suppose the message is benign.

 

Pullan

 

 

plu@ubuntu:~/Downloads$ ./xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin
Checking for required programs: awk grep sed bzip2 gunzip
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
strings: '/lib/libc.so.6': No such file

Launching installer...


Expert Contributor
linnj
Posts: 1,038
Registered: ‎09-10-2008
0

Re: Zynq Tool Installation and U-boot compilation errors: unrecognized command line option "-mno-unaligned-access"

You may need to install a library on your host to get that message to go away.

 

I haven't noticed in on my box with ubuntu, but I might have installed the library.

 

Or you have installed some other library in the past that changed your OS.

 

Thanks

John

John Linn
Visitor
asheints
Posts: 1
Registered: ‎09-30-2012
0

Re: Zynq Tool Installation and U-boot compilation errors: unrecognized command line option "-mno-unaligned-access"

John,

I'm experiencing the same problem and I'm not able to download xilinx-2011.09-50-arm-xilinx-linux-gnueabi.bin

The "ARM GNU Tools" link that you pasted above offers to download arm-2010.09-62-arm-xilinka9-linux-gnueabi.bin,

which fails to build u-boot complaining about "no-unaligned-access" option.

Could it be that when you got rid of the extra version of the file you accidentally deleted the newer one ?

Thanks,

-Alex