3.15.4: test_big_endian() is not -fPIE ready
Details are on https://gitlab.freedesktop.org/poppler/poppler/issues/830
The seemingly most relevant from the CMakeError.log attached to that issue is the following:
Determining size of unsigned short failed with the following output:
Change Dir: /home/tkloczko/rpmbuild/BUILD/poppler-0.81.0/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/gmake cmTC_48098/fast && /usr/bin/gmake -f CMakeFiles/cmTC_48098.dir/build.make CMakeFiles/cmTC_48098.dir/build
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/poppler-0.81.0/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_48098.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o
/usr/bin/gcc -std=c99 -D_DEFAULT_SOURCE -o CMakeFiles/cmTC_48098.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o -c /home/tkloczko/rpmbuild/BUILD/poppler-0.81.0/x86_64-redhat-linux-gnu/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.c
Linking C executable cmTC_48098
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_48098.dir/link.txt --verbose=1
/usr/bin/gcc -std=c99 -D_DEFAULT_SOURCE -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic CMakeFiles/cmTC_48098.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o -o cmTC_48098
/usr/bin/ld: CMakeFiles/cmTC_48098.dir/CMAKE_SIZEOF_UNSIGNED_SHORT.c.o: relocation R_X86_64_32S against `.data' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_48098.dir/build.make:87: cmTC_48098] Error 1
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/poppler-0.81.0/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_48098/fast] Error 2
Edited by Craig Scott