You are not logged in.

#1 2018-05-07 19:48:47

dfk
Member
Registered: 2018-05-07
Posts: 5

gcc7 (libs) package?

Upgrading to gcc8 broke a number of things that look for libgfortran.so.4 (mostly R packages in my case).  gcc8 has libgfortran.so.5.  I noticed there are packages in community/AUR for version of gcc older than 7, but nothing for 7, and nothing comes up when I "pacman -Fs libgfortran.so.4" (even after "pacman -Fy"). I'm assuming this is because gcc8 was only released recently in core, but I'm not equipped to make my own gcc7 package.

Not sure if this is the right place to post this (maybe the AUR channel is more appropriate?) but I figured others may have run into the same problem as me so I'd appreciate any suggestions.

Offline

#2 2018-05-07 19:56:42

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: gcc7 (libs) package?

Most of the old gcc versioned packages basically just use the old version of the gcc PKGBUILD, with /usr/bin commands renamed to the right versioned binary name, and the pkgname modified.

The gcc PKGBUILD is pretty easy to respin that way.

...

That answers your question "how to get old gcc version".

But that really isn't your issue. If R packages are looking for old libgfortran.so, that's because you didn't rebuild them when gcc was updated.

If repo packages link to the old soname, they get rebuilt. If AUR packages link to the old soname, we tell users to rebuild themselves.

Is the fact that these are installed to your profile, somehow a reason to not follow the excellent advice from other cases?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2018-05-07 22:01:28

mcardillo55
Member
Registered: 2018-05-07
Posts: 12

Re: gcc7 (libs) package?

I'm also running into this issue. The gcc8 upgrade caused my extra/python-numpy installation to break, for the same reasons as dfk (missing libgfortran.so.4).

Offline

#4 2018-05-07 22:06:51

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: gcc7 (libs) package?

mcardillo55 wrote:

I'm also running into this issue. The gcc8 upgrade caused my extra/python-numpy installation to break, for the same reasons as dfk (missing libgfortran.so.4).

You are responsible for rebuilding your unsupported packages

Offline

#5 2018-05-07 22:12:45

mcardillo55
Member
Registered: 2018-05-07
Posts: 12

Re: gcc7 (libs) package?

arojas wrote:
mcardillo55 wrote:

I'm also running into this issue. The gcc8 upgrade caused my extra/python-numpy installation to break, for the same reasons as dfk (missing libgfortran.so.4).

You are responsible for rebuilding your unsupported packages

Is the extra repository unsupported?

Offline

#6 2018-05-07 22:16:49

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

Re: gcc7 (libs) package?

No, but everything in extra has been rebuilt against the new libs.

Check your foreign package list (pacman -Qm), I'm guessing you have an unsupported cblas or lapack package kicking about that you neglected to rebuild.


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.

Online

#7 2018-05-07 22:22:02

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: gcc7 (libs) package?

mcardillo55 wrote:

I'm also running into this issue. The gcc8 upgrade caused my extra/python-numpy installation to break, for the same reasons as dfk (missing libgfortran.so.4).

$ pkg-list-linked-libraries python-numpy libgfortran.so.4
==> checking linked libraries for python-numpy-1.14.3-1-x86_64.pkg.tar.xz ...
==> ERROR: No file in python-numpy-1.14.3-1-x86_64.pkg.tar.xz is linked to libgfortran.so.4

You're wrong.

You're probably also doing like many users and, as WorMzy suggested, are using an AUR replacement for a package that numpy depends on.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2018-05-07 22:27:54

mcardillo55
Member
Registered: 2018-05-07
Posts: 12

Re: gcc7 (libs) package?

WorMzy wrote:

I'm guessing you have an unsupported cblas or lapack package kicking about that you neglected to rebuild.

This was it. Thank you!

Offline

#9 2018-05-08 21:32:46

r00tr4t
Member
Registered: 2013-01-16
Posts: 100

Re: gcc7 (libs) package?

Thank you, I had the exact same problem my self and wasted 2 hours chasing down this problem.

sudo pacman -S cblas lapack blas

Removed the 'openblas-lapack-0.2.20-1' package.
Why did i install openblas in the first place???

Offline

#10 2018-05-09 17:20:10

dfk
Member
Registered: 2018-05-07
Posts: 5

Re: gcc7 (libs) package?

Thanks for all the suggestions.  My problem was indeed caused by an unsupported package (anaconda, which was shadowing a system library).

Offline

#11 2018-05-09 17:29:37

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

Re: gcc7 (libs) package?

Great, please remember to mark your thread as solved by editing the first post and amending the topic title.

Last edited by WorMzy (2018-05-09 17:29:59)


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.

Online

Board footer

Powered by FluxBB