relocation R_X86_64_PC32

Rex Dieter rdieter at math.unl.edu
Wed Jul 19 16:18:20 UTC 2006


Rex Dieter wrote:

> Hans de Goede wrote:
>> 
>> Rex Dieter wrote:
>>> I ran into an issue on x86_64 and fc6/devel trying to build qt4,
>>>
http://buildsys.fedoraproject.org/logs/fedora-development-extras/12668-qt4-4.1.4-6.fc6/
>>> In short, I received the error:
>>> /usr/bin/ld: .obj/release-shared/qthread_unix.o: relocation
>>> R_X86_64_PC32 against `pthread_cond_timedwait@@GLIBC_2.3.2' can not be
>>> used when making a shared object; recompile with -fPIC
>>> /usr/bin/ld: final link failed: Bad value
>>>
>>> Funny thing is (afaict)... qthread_unix.o *was* built with -fPIC.
>>>
>> 
>> Are you sure? Maybe it contains inline asm which is not PIC? I've seen
>> similar messages before and there always is a real good reason for them
> 
> I'll go (re)check for asm, but I can say this same pkg built fine on Jul
> 03, so something changed in the meantime... (:

I've confirmed there is no asm, and the file in question *was* built
with -fPIC:

g++ -c -m64 -pipe -I/usr/include/mysql -fno-exceptions -O2 -g -pipe -Wall \
-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 \
-mtune=generic -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W \
-D_REENTRANT -fPIC  -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII \
-DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_NO_DEBUG -D_LARGEFILE64_SOURCE \
-D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include \
-I../../include/QtCore -Iglobal -I.moc/release-shared -I. \
-o .obj/release-shared/qthread_unix.o thread/qthread_unix.cpp

-- Rex




More information about the fedora-devel-list mailing list