Dear Germano,

I'm an Arch Linux, so my environment is at least as bleeding-edge as
Fedora 28 (e.g. I'm already on GCC 8.1.1). I don't get any of the buildd
errors you are getting when building the tools, so I took the time to
look at this.

The short version of the build errors you are getting is:


/usr/bin/c++  -g -Wall -fopenmp  -Wl,-z,relro  -Wl,-z,now
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic
CMakeFiles/dt-curve-tool.dir/dt-curve-tool.c.o
CMakeFiles/dt-curve-tool.dir/exif-wrapper.cpp.o  -o dt-curve-tool
-lexiv2 -lm
BUILDSTDERR: /usr/bin/ld:
CMakeFiles/dt-curve-tool.dir/dt-curve-tool.c.o: relocation R_X86_64_32S
against symbol `spline_set' can not be used when making a shared object;
recompile with -fPIC
BUILDSTDERR: /usr/bin/ld:
CMakeFiles/dt-curve-tool.dir/exif-wrapper.cpp.o: relocation R_X86_64_32
against `.rodata' can not be used when making a shared object; recompile
with -fPIC
BUILDSTDERR: /usr/bin/ld: final link failed: Nonrepresentable section on
output
BUILDSTDERR: collect2: error: ld returned 1 exit status


It looks like this is caused by the use of a "hardened" build chain, one
of the bug reports [1] I found might point to the solution:

"If you are using -specs=/usr/lib/rpm/redhat/redhat-hardened-ld at link
time, you also need to use
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 at compile time, and as
you are compiling and linking at the same time, you need either both, or
drop the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld."


Cheers,
Simon


[1] https://bugzilla.redhat.com/show_bug.cgi?id=1304277




On 20.07.2018 09:16, Germano Massullo wrote:
> Hi, I am looking for help in fixing some CMakeLists problems I am
> experiencing while compiling darktable subpackages in Fedora.
> 
> I posted all infos on:
> https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/thread/MAALXQOLRTKJVLMKDCDLFBJZFMCJLB5Z/
> 
> Thank you
> 
> ___________________________________________________________________________
> darktable developer mailing list
> to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org
> 
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to