You are not logged in.
Where can I get help compiling ATLAS so that the fortran parts are built with -fPIC?
I have been following the rules in the AUR for building ATLAS, and even if I try
CFLAG="-fPIC"
FFLAGS="-fPIC"
alias gfortran="gfortran -fPIC"
the lapack libraries are ALWAYS built without it.
This is the last time I am going to try before I give up completely on ever building sage.
Thank you.
Offline
Is https://aur.archlinux.org/packages/atlas-lapack/ the package you are trying to build? Is this an X-Y problem? Why do the fortran parts require -fPIC?
Offline
That is the package.
The fortran parts require -fPIC so that the shared library can be linked. The linking is done with the makefile inside of https://aur.archlinux.org/cgit/aur.git/ … ack.tar.gz
Offline
Not an expert in aur packages but I have compiled LAPACK from source many times myself. I think that if you look at the PKGBUILD inside the aur package you will see that is calling the configure. You can try to set there CFLAGS o FFLAGS =''-fPIC". You can also try adding -fPIC to the F77FLAGS defined later in the PKGBUILD.
To check whether this is a possibility I have downloaded the actual source code for ATLAS-LAPACK and looked there. It is a bit weird because only BLAS routines are in F77. All Lapack routines are in C (as if i was CLAPACK). The configure lets you set CFLAGS, but no FFLAGS. So I am guessing you best bet is to set F77FLAGS="-fPIC" in the PKGBUILD
Offline
Mod note: Moving to AUR Issues.
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
This is the last time I am going to try before I give up completely on ever building sage.
loqs wrote:Is https://aur.archlinux.org/packages/atlas-lapack/ the package you are trying to build? Is this an X-Y problem? Why do the fortran parts require -fPIC?
The fortran parts require -fPIC so that the shared library can be linked
That answer makes me wonder which program requires -fPIC support to link with the shared library .
There's no sage package in aur, but there are three sagecal packages that list atlas-lapack as a possible make dependency .
Are you trying to build one of those sagecal packages ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
My intention is to ultimately build sage, yes.
I tried FFLAGS etc., but the libraries do no link, with the error that they need to be recompiled with -fPIC.
I even tried alias gfortran="gfortran -fPIC", but it too failed.
Offline
but the libraries do no link, with the error that they need to be recompiled with -fPIC.
I wanted to build atlas-lapack to check possibillities , but stopped when it (the sourcecode, not the PKGBUILD ) refused to build unless I change to a specfic governor.
If you want further help, you'll have to provide full build logs of atlas-lapack and the sage* package you want to build.
Without those logs no one can verify whether there are other options then trying to force -fPIC .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline