Unable to build latest release

Messages in english

Modérateur : xcasadmin

GermanXG
Messages : 7
Inscription : mar. déc. 24, 2024 6:24 am

Unable to build latest release

Message par GermanXG » lun. juin 30, 2025 1:51 am

Hi. I'm trying to build the latest release. But after configure and make I get this error:

Code : Tout sélectionner

relocation R_X86_64_32S against '.rodata.combining.0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value 
How should be added the option -fPIC in configure?
Thanks.

parisse
Messages : 5890
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Unable to build latest release

Message par parisse » lun. juin 30, 2025 1:05 pm

Strange, maybe you can fix that if you modify the Makefile in the src directory and add -fPIC at the "CXXFLAGS = ..." line, then run make clean and make again.

GermanXG
Messages : 7
Inscription : mar. déc. 24, 2024 6:24 am

Re: Unable to build latest release

Message par GermanXG » mar. juil. 01, 2025 4:05 am

In fact that option is actually in Makefile. The problem seems to be with libfltk.a library:

Code : Tout sélectionner

/usr/bin/ld: /home/german/Instalados/giac-2.0.0/src/fltk-1.3.8/lib/libfltk.a(fl_utf.o): relocation R_X86_64_32S against `.rodata.combining.0' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
Regards

parisse
Messages : 5890
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Unable to build latest release

Message par parisse » mar. juil. 01, 2025 9:20 am

Then maybe it's libfltk.a which was not built with -fPIC. It was compiled from source here, because FLTK was not found in the system. I would try one of the following options: install FLTK (1.3), the version packaged from your distribution, or try to recompile from the source with -fPIC enabled.

GermanXG
Messages : 7
Inscription : mar. déc. 24, 2024 6:24 am

Re: Unable to build latest release

Message par GermanXG » mer. juil. 02, 2025 7:13 am

Ok, I installed FLTK 1.3 devel files (I had installed 2.0) and after this xcas compiles without problems. Thanks.

parisse
Messages : 5890
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Unable to build latest release

Message par parisse » mer. juil. 02, 2025 5:27 pm

Great!
I will also make an attempt to modify the source of FLTK that is included in giac so that -fPIC is added to the compilation flags. Maybe this will prevent someone else to have the same issue.

Répondre