On 2016-10-06 22:27, Steve Langasek wrote:
>> /usr/bin/ld: pfmlib_common.lo: relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: final link failed: Bad value
>> collect2: error: ld returned 1 exit status
>
> Self-explanatory error message. Where's the compiler commandline for this
> pfmlib_common.lo, and why is it missing -fPIE?
On 2016-10-06 22:27, Steve Langasek wrote: @GLIBC_ 2.2.5' can not be used when making a shared object; recompile with -fPIC
>> /usr/bin/ld: pfmlib_common.lo: relocation R_X86_64_PC32 against symbol `stderr@
>> /usr/bin/ld: final link failed: Bad value
>> collect2: error: ld returned 1 exit status
>
> Self-explanatory error message. Where's the compiler commandline for this
> pfmlib_common.lo, and why is it missing -fPIE?
It has both -fPIC and -fPIE (in that order):
cc -fPIC -DPIC -g -O2 -fdebug- prefix- map=/build/ libpfm4- 4.7.0+git30- gd422ba2= . -fPIE -fstack- protector- strong -Wformat -Werror= format- security -Wdate-time -D_FORTIFY_SOURCE=2 -g -Wall -Werror -Wextra -Wno-unused- parameter -I. -I/build/ libpfm4- 4.7.0+git30- gd422ba2/ include -DCONFIG_ PFMLIB_ DEBUG -DCONFIG_ PFMLIB_ OS_LINUX -g -Wall -Werror -Wextra -Wno-unused- parameter -I. -I/build/ libpfm4- 4.7.0+git30- gd422ba2/ lib/../ include -DCONFIG_ PFMLIB_ DEBUG -DCONFIG_ PFMLIB_ OS_LINUX -D_REENTRANT -I. -fvisibility=hidden -DCONFIG_ PFMLIB_ ARCH_X86 -DCONFIG_ PFMLIB_ ARCH_X86_ 64 -I. -c pfmlib_common.c -o pfmlib_common.lo
Andreas