Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 544424

Summary: media-libs/x265-1.5 - ld: CMakeFiles/TestBench.dir/checkasm-a.asm.o: relocation R_X86_64_PC32 against undefined symbol `puts@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
Product: Gentoo Linux Reporter: Nikoli <nikoli>
Component: [OLD] LibraryAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Nikoli 2015-03-25 07:33:33 UTC
Created attachment 399710 [details]
build.log

Linking CXX executable TestBench
cd /var/tmp/portage/media-libs/x265-1.5/work/multicoreware-x265-9f0324125f53/source-abi_x86_64.amd64/test && /usr/bin/cmake -E cmake_link_script CMakeFiles/TestBench.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++   -march=corei7-avx -O2 -pipe -fPIC    -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed CMakeFiles/TestBench.dir/checkasm-a.asm.o CMakeFiles/TestBench.dir/testbench.cpp.o CMakeFiles/TestBench.dir/pixelharness.cpp.o CMakeFiles/TestBench.dir/mbdstharness.cpp.o CMakeFiles/TestBench.dir/ipfilterharness.cpp.o CMakeFiles/TestBench.dir/intrapredharness.cpp.o  -o TestBench -rdynamic ../libx265.a -lpthread -lrt 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/TestBench.dir/checkasm-a.asm.o: warning: relocation against `puts@@GLIBC_2.2.5' in readonly section `.text'.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/TestBench.dir/checkasm-a.asm.o: relocation R_X86_64_PC32 against undefined symbol `puts@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
test/CMakeFiles/TestBench.dir/build.make:206: recipe for target 'test/TestBench' failed
make[2]: *** [test/TestBench] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/x265-1.5/work/multicoreware-x265-9f0324125f53/source-abi_x86_64.amd64'
CMakeFiles/Makefile2:347: recipe for target 'test/CMakeFiles/TestBench.dir/all' failed
make[1]: *** [test/CMakeFiles/TestBench.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/x265-1.5/work/multicoreware-x265-9f0324125f53/source-abi_x86_64.amd64'
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-libs/x265-1.5::gentoo failed (compile phase):
 *   emake failed
Comment 1 Alexis Ballier gentoo-dev 2015-10-15 14:16:14 UTC
I *think* this is fixed in recent versions, please reopen if i'm wrong