On Sat, Jul 3, 2010 at 2:32 AM, Dave Hylands <dhylands@gmail.com> wrote:
Hi,

2010/7/2 Felipe Brandão Cavalcanti <cavalkaf@gmail.com>:
> Hello all,
>
> I am trying to cross-compile a program for use with my Gumstix Overo,
> however, I am having a serius problem with the GNU Linker (LD). I am getting
> the following messages:
>
> arm-angstrom-linux-gnueabi-ld: unrecognized option
> '-Wl,-rpath-link,/media/Data-Linux/overo/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib'
> arm-angstrom-linux-gnueabi-ld: use the --help option for usage information
>
> It seems that the installed ld doesn't understand the -Wl option, which is
> very common these days. So, anybody found a workarround? Maybe another
> version of LD is available?

Try using arm-angstrom-linux-gnueabi-gcc (or arm-angstrom-linux-gnueabi-g++)

99% of the time, using ld directly is the wrong thing to do. Linking
should alsmost always be performed using gcc or g++.

-rpath is an ld option, and -Wl is a gcc option (not an ld option) to
pass the following arguments through to ld.

I am actually trying to compile a patched version of the Linux kernel, and I didn't want to dig in a change the Makefiles...

Here is the full error:

|   CC      init/main.o
| arm-angstrom-linux-gnueabi-ld: unrecognized option '-Wl,-rpath-link,/media/Data-Linux/overo/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib'
| arm-angstrom-linux-gnueabi-ld: use the --help option for usage information
| make[2]: *** [init/main.o] Error 1
| make[1]: *** [init] Error 2
| make[1]: Leaving directory `/media/Data-Linux/overo/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/xenomai-2.5.3-r0/xenomai-2.5.3/linux'
| make: *** [linux/all] Error 2
| FATAL: oe_runmake failed

 

--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
      -Felipe Brandão Cavalcanti
      LARA - Automation and Robotics Laboratory
      Department of Electrical Engineering
      UnB - University of Brasília, Brazil
      http://www.lara.unb.br/~fbcavalcanti/