Getting CMake error on linking
collect2: error: ld returned 1 exit status
make[2]: *** [test/libapt/CMakeFiles/libapt_test.dir/build.make:554: test/libapt/libapt_test] Error 1
make[2]: Leaving directory '/home/terabyte/.cache/pacaur/apt/src/apt'
make[1]: *** [CMakeFiles/Makefile2:1576: test/libapt/CMakeFiles/libapt_test.dir/all] Error 2
make[1]: Leaving directory '/home/terabyte/.cache/pacaur/apt/src/apt'
make: *** [Makefile:158: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build apt package(s)
The very first error i am getting is
/usr/bin/ld: /usr/local/lib/libgtest.a(gtest-all.cc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
Pinned Comments
ProfessorKaos64 commented on 2016-12-13 18:46
Adopted. PKGBUILD now uses cmake. Please report any issues here.