pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: math/R recently broken on Alma Linux



On Wed, Mar 23, 2022 at 03:50:56PM -0500, Jason Bacon wrote:
> 
> make[3]: Entering directory
> '/home/bacon/Pkgsrc/pkgsrc/math/R/work/R-4.1.3/src/main'
> cc -Wl,--export-dynamic -fopenmp
> -Wl,-Wl,-R/home/bacon/Pkgsrc/pkg/lib/R/lib -L"../../lib" -Wl,-zrelro
> -L/home/bacon/Pkgsrc/pkg/lib -Wl,-R/home/bacon/Pkgsrc/pkg/lib
> -L/usr/lib64 -Wl,-R/usr/lib64 -pthread -o R.bin Rmain.o  -lR
> /usr/bin/ld: unrecognized option '-Wl'
> /usr/bin/ld: use the --help option for usage information
> collect2: error: ld returned 1 exit status
> make[3]: *** [Makefile:148: R.bin] Error 1
> make[3]: Leaving directory
> '/home/bacon/Pkgsrc/pkgsrc/math/R/work/R-4.1.3/src/main'
> 
> Was working probably up to a few weeks ago.
> 
> Looks like someone patched a redundant hard-coded -Wl into configure.ac.
> 
> I think this should fix it:
> 
> -+  LIBR0="-Wl,@COMPILER_RPATH_FLAG@${prefix}/lib/R/lib\$(R_ARCH)
> -L\"\$(R_HOME)/lib\$(R_ARCH)\""
> ++  LIBR0="@COMPILER_RPATH_FLAG@${prefix}/lib/R/lib\$(R_ARCH)
> -L\"\$(R_HOME)/lib\$(R_ARCH)\""
> 

I've just committed this change - is it fine now?
 Thomas


Home | Main Index | Thread Index | Old Index