ld unrecognized option using stock makepkg.conf

Ask questions about Arch Linux ARM. Please search before making a new topic.

ld unrecognized option using stock makepkg.conf

Postby kleptophobiac » Sun Jun 10, 2012 9:40 am

I'm trying to build linux-omap from the archlinuxarm github. Using a stock pacman install and the current version of the package, I'm getting linking errors:

Code: Select all
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
  CC      init/main.o
ld: unrecognized option '-Wl,-O1,--sort-common,--as-needed,-z,relro'
ld: use the --help option for usage information
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
==> ERROR: A failure occurred in build().
    Aborting...


All of those options are documented in the ld manpage and all of those flags work in my x86-based Arch system. I feel like I'm missing something obvious. Does anybody have any insight? If it matters, I'm running an up-to-date system on a Gumstix IronStorm with a homemade carrier board.
kleptophobiac
 
Posts: 10
Joined: Sun Jun 10, 2012 7:03 am

Re: ld unrecognized option using stock makepkg.conf

Postby pepedog » Sun Jun 10, 2012 10:03 am

remove -Wl from /etc/makepkg.conf should fix it
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ld unrecognized option using stock makepkg.conf

Postby kleptophobiac » Sun Jun 10, 2012 4:00 pm

Thanks, that seems to have worked!

Why does having -Wl work in x86 Arch, but fail in arm Arch? It seems like that option is used when chaining from gcc. Does the arm version not chain from gcc?
kleptophobiac
 
Posts: 10
Joined: Sun Jun 10, 2012 7:03 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 5 guests