Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522072 - =media-libs/libjpeg-turbo-1.3.1: ld: .libs /libturbojpeg_la-jcdctmgr.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
Summary: =media-libs/libjpeg-turbo-1.3.1: ld: .libs /libturbojpeg_la-jcdctmgr.o: reloc...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Jory A. Pratt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-03 17:36 UTC by Dale Lukas Peterson
Modified: 2018-06-15 20:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge -pqv output (pqv.txt,76 bytes, text/plain)
2014-09-03 17:36 UTC, Dale Lukas Peterson
Details
emerge --info output (info.txt,4.57 KB, text/plain)
2014-09-03 17:37 UTC, Dale Lukas Peterson
Details
build.log (build.log,139.40 KB, text/x-log)
2014-09-03 17:37 UTC, Dale Lukas Peterson
Details
environment (environment,178.18 KB, text/plain)
2014-09-03 17:38 UTC, Dale Lukas Peterson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Lukas Peterson 2014-09-03 17:36:41 UTC
Created attachment 384166 [details]
emerge -pqv output

emerge fails when linking libturbojpeg.so.0.0.0 with:

armv7a-hardfloat-linux-gnueabi-gcc -shared  .libs/libturbojpeg_la-jcapimin.o .libs/libturbojpeg_la-jcapist
d.o .libs/libturbojpeg_la-jccoefct.o .libs/libturbojpeg_la-jccolor.o .libs/libturbojpeg_la-jcdctmgr.o .lib
s/libturbojpeg_la-jchuff.o .libs/libturbojpeg_la-jcinit.o .libs/libturbojpeg_la-jcmainct.o .libs/libturboj
peg_la-jcmarker.o .libs/libturbojpeg_la-jcmaster.o .libs/libturbojpeg_la-jcomapi.o .libs/libturbojpeg_la-j
cparam.o .libs/libturbojpeg_la-jcphuff.o .libs/libturbojpeg_la-jcprepct.o .libs/libturbojpeg_la-jcsample.o
 .libs/libturbojpeg_la-jctrans.o .libs/libturbojpeg_la-jdapimin.o .libs/libturbojpeg_la-jdapistd.o .libs/l
ibturbojpeg_la-jdatadst.o .libs/libturbojpeg_la-jdatasrc.o .libs/libturbojpeg_la-jdcoefct.o .libs/libturbo
jpeg_la-jdcolor.o .libs/libturbojpeg_la-jddctmgr.o .libs/libturbojpeg_la-jdhuff.o .libs/libturbojpeg_la-jd
input.o .libs/libturbojpeg_la-jdmainct.o .libs/libturbojpeg_la-jdmarker.o .libs/libturbojpeg_la-jdmaster.o
 .libs/libturbojpeg_la-jdmerge.o .libs/libturbojpeg_la-jdphuff.o .libs/libturbojpeg_la-jdpostct.o .libs/li
bturbojpeg_la-jdsample.o .libs/libturbojpeg_la-jdtrans.o .libs/libturbojpeg_la-jerror.o .libs/libturbojpeg
_la-jfdctflt.o .libs/libturbojpeg_la-jfdctfst.o .libs/libturbojpeg_la-jfdctint.o .libs/libturbojpeg_la-jid
ctflt.o .libs/libturbojpeg_la-jidctfst.o .libs/libturbojpeg_la-jidctint.o .libs/libturbojpeg_la-jidctred.o
 .libs/libturbojpeg_la-jquant1.o .libs/libturbojpeg_la-jquant2.o .libs/libturbojpeg_la-jutils.o .libs/libt
urbojpeg_la-jmemmgr.o .libs/libturbojpeg_la-jmemnobs.o .libs/libturbojpeg_la-jaricom.o .libs/libturbojpeg_
la-jcarith.o .libs/libturbojpeg_la-jdarith.o .libs/libturbojpeg_la-turbojpeg.o .libs/libturbojpeg_la-trans
upp.o .libs/libturbojpeg_la-jdatadst-tj.o .libs/libturbojpeg_la-jdatasrc-tj.o -Wl,--whole-archive simd/.li
bs/libsimd.a -Wl,--no-whole-archive  -Wl,--as-needed  -march=armv7-a -mcpu=cortex-a15 -mtune=cortex-a15 -m
fpu=neon -mfloat-abi=hard -Wl,-O1 -Wl,--version-script -Wl,/var/tmp/portage/media-libs/libjpeg-turbo-1.3.1
/work/libjpeg-turbo-1.3.1/turbojpeg-mapfile -Wl,-soname -Wl,libturbojpeg.so.0 -o .libs/libturbojpeg.so.0.0
.0
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.3/../../../../armv7a-hardfloat-linux-gnueabi/bin/ld: .libs
/libturbojpeg_la-jcdctmgr.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when ma
king a shared object; recompile with -fPIC
.libs/libturbojpeg_la-jcdctmgr.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libturbojpeg.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/libjpeg-turbo-1.3.1/work/libjpeg-turbo-1.3.1-.arm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/libjpeg-turbo-1.3.1/work/libjpeg-turbo-1.3.1-.arm'
make: *** [all] Error 2
Comment 1 Dale Lukas Peterson 2014-09-03 17:37:15 UTC
Created attachment 384168 [details]
emerge --info output
Comment 2 Dale Lukas Peterson 2014-09-03 17:37:34 UTC
Created attachment 384170 [details]
build.log
Comment 3 Dale Lukas Peterson 2014-09-03 17:38:05 UTC
Created attachment 384172 [details]
environment
Comment 4 Dale Lukas Peterson 2014-09-04 07:20:14 UTC
Just for reference, adding a package.env entry to add -fPIC to CFLAGS and CXXFLAGS allowed this to successfully compile and install.
Comment 5 Jory A. Pratt gentoo-dev 2018-06-15 20:10:35 UTC
If you feel you can still duplicate the problem feel free to reopen and update with present info.