[OpenIndiana-discuss] "Unexpected" error
Andreas Wacknitz
a.wacknitz at gmx.de
Wed Dec 24 11:34:28 UTC 2025
As Marcel already replied we have scientific/R packaged. So there is no need to build it by yourself. If you still want to do that you can use the oi-userland repository where the build recipe is below the scientific folder.
If you really want to build it on your machine you should start from there.
> Am 24.12.2025 um 19:10 schrieb Apostolos Syropoulos via openindiana-discuss <openindiana-discuss at openindiana.org>:
>
> Hi again,
> According to the 5th answer of a similar question posted to Stack Overflow
> https://stackoverflow.com/questions/19768267/relocation-r-x86-64-32s-against-linking-error
> if the third command produces no output, the static library is not position-independent and cannot be used to generate a shared object.
>
> apostolo at adalind:/tmp$ ar -x libgfortran.a
> apostolo at adalind:/tmp$ file async.o
> async.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
> apostolo at adalind:/tmp$ readelf --relocs async.o | egrep '(GOT|PLT|JU?MP_SLOT)'
> apostolo at adalind:/tmp$
>
> Provided the above is correct, the static library was not build the proper way.
> Best regards,A.S.
> ----------------------Apostolos Syropoulos
> Xanthi, Greece
>
>
>
>
> On Tuesday, December 23, 2025 at 09:42:10 PM GMT+2, Bob Friesenhahn <graphicsmagick.project at gmail.com> wrote:
>
> 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
>
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
More information about the openindiana-discuss
mailing list