[OpenIndiana-discuss] "Unexpected" error

Bob Friesenhahn graphicsmagick.project at gmail.com
Tue Dec 23 19:42:00 UTC 2025


I expect that all code needs to be built position independent. So -fpic or
-fPIC in CFLAGS.

Bob

On Tue, Dec 23, 2025, 1:33 PM Apostolos Syropoulos via openindiana-discuss <
openindiana-discuss at openindiana.org> wrote:

>
> Hello,
> I am trying to compile R on my system and compilationstops with the
> following error:
> make[4]: Entering directory
> '/container/source/lang/R-4.5.2/src/modules/lapack'
> gcc -std=gnu23 -shared -fopenmp -L/usr/local/lib -o libRlapack.so dlamch.o
> dlapack.o cmplx.o dlartg.o dlassq.o la_constants.o la_xisnan.o zlartg.o
> zlassq.o    -L"../../../lib" -lRblas -R/usr/gcc/14/lib/amd64 -lgfortran -lm
> -lquadmath
> ld: fatal: relocation error: R_AMD64_TPOFF32: file
> /usr/gcc/14/lib/amd64/libgfortran.a(async.o): symbol thread_unit:
> relocation illegal when building a shared object
> collect2: error: ld returned 1 exit status
> make[4]: *** [Makefile:117: libRlapack.so] Error 1
>
> It seems that something is 32bit while everything is 64bit But
> objdump -f libgfortran.a|grep ^architecture
> says that everything is 64bit and all the object files are 64bit files!So
> what is wrong? Does anyone have any idea?
> Regards,
> Apostolos
>
> ----------------------Apostolos Syropoulos
> Xanthi, Greece
>
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


More information about the openindiana-discuss mailing list