You are not logged in.

#1 2012-09-25 15:28:02

stibi
Member
Registered: 2006-10-10
Posts: 34

Compiling failed with "unrecognized command line option ‘-Wl’" error

Helllo,

I have here a fresh installation of Archlinux and I fall into troubles with compiling a few of applications from AUR.
The problem is this:

gcc: error: unrecognized command line option ‘-Wl’

It happens for example with bubblefishymod package from AUR. I've never seen this error.
Any suggestion, what is wrong, please?

I have 64bit Archlinux installation, intel core i5, base-devel package group is installed.

Offline

#2 2012-09-25 16:05:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Compiling failed with "unrecognized command line option ‘-Wl’" error

Seems like a straightforward error message. Read about -Wl in "man gcc" if you want to know more.

In the meantime, removing "-Wl" from the LDFLAGS in the Makefile (I used a sed line in the PKGBUILD) should allow you to compile it successfully. Whether or not it works as expected though, is another matter entirely. Contact the author and get him to fix his Makefile.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-09-28 19:02:29

stibi
Member
Registered: 2006-10-10
Posts: 34

Re: Compiling failed with "unrecognized command line option ‘-Wl’" error

Hi. Thanks, I get it…but, why is this option not recognized by gcc? The "sed" fix is ok for all cases?

Offline

Board footer

Powered by FluxBB