You are not logged in.

#1 2017-07-18 11:33:09

sinanmut
Member
Registered: 2016-12-24
Posts: 10

gcc: error: unrecognized command line option ‘-fno-plt’

When I install a package with yaourt I get this error most of the time.
Does anybody know the solution?

For instance:
yaourt -S sundials

Offline

#2 2017-07-18 11:48:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: gcc: error: unrecognized command line option ‘-fno-plt’

what version of gcc do you have installed?

Offline

#3 2017-07-18 12:08:03

sinanmut
Member
Registered: 2016-12-24
Posts: 10

Re: gcc: error: unrecognized command line option ‘-fno-plt’

I had two version first one is gcc-7.1.1, but for cuda I also installed gcc-4.9.4.
And the default gcc version was pointing to the second one because of the environment variables.
After changing it back to first one, aur packages are not the same error anymore.

Thanks

Offline

#4 2017-07-18 13:41:25

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: gcc: error: unrecognized command line option ‘-fno-plt’

Please remember to mark your thread as solved.


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

#5 2017-09-16 14:33:47

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

Re: gcc: error: unrecognized command line option ‘-fno-plt’

I have the same problem. I have next packages installed:
community/gcc5 5.4.0-1 [installed]
multilib/gcc-libs-multilib 7.2.0-1 [installed]
multilib/gcc-multilib 7.2.0-1 (multilib-devel) [installed]
multilib/lib32-gcc-libs 7.2.0-1 [installed]

gcc5 got installed when I tried to install xmr-stak-nvidia-git (which gives the same error as OP). But isn't that the cause of the problem?

Last edited by TheChosenOne (2017-09-16 14:35:53)

Offline

#6 2017-09-16 14:54:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: gcc: error: unrecognized command line option ‘-fno-plt’

The problem is that xmr-stak-nvidia-git uses gcc5, but doesn't modify the CFLAGS to work with gcc5. Complain to the maintainer.

Offline

Board footer

Powered by FluxBB