- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Zynq Tool Installati on and U-boot compilatio n errors: unrecogniz ed command line option "-mno-unal igned-acce ss"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-21-2012 09:32 AM
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/.
-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/stand
make: *** [examples/standalone] Error 2
Re: Zynq Tool Installati on and U-boot compilatio n errors: unrecogniz ed command line option "-mno-unal igned-acce ss"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-23-2012 08:27 AM
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_Code Bench_Lite/bin:$PATH
Re: Zynq Tool Installati on and U-boot compilatio n errors: unrecogniz ed command line option "-mno-unal igned-acce ss"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-23-2012 12:52 PM
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...
Re: Zynq Tool Installati on and U-boot compilatio n errors: unrecogniz ed command line option "-mno-unal igned-acce ss"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-23-2012 01:02 PM
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
Re: Zynq Tool Installati on and U-boot compilatio n errors: unrecogniz ed command line option "-mno-unal igned-acce ss"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-30-2012 12:23 PM
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











