Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

external symbolic relocation against non-allocatable section .debug_info

800622Mar 9 2010 — edited Mar 17 2010
Hi,
when trying to build exiv2 with debug information, it fails with the below messages.
The same build passes just fine without the -g -xdebugformat=dwarf flags. Also it passes just fine with the -g -xdebugformat=stabs flags.

Is this a bug in Studio? I've seen this kind of messages around the web but with no real solutions (perhaps except http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15626)

Here are the elfdumps and dwarfdumps of the canonmn.o file
http://tropikhajma.sweb.cz/osol/elfdump.bz2
http://tropikhajma.sweb.cz/osol/dwarfdump.bz2

This is on opensolaris b132 using CC: Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21
...
pkgbuild: /opt/sunstudio12.1/bin/CC   -G  -nolib -hlibexiv2.so.5 -o .libs/libexiv2.so.5.3.1   .libs/basicio.o .libs/bmpimage.o .libs/canonmn.o .libs/convert.o .libs/cr2image.o .libs/crwimage.o .libs/datasets.o .libs/easyaccess.o .libs/error.o .libs/exif.o .libs/futils.o .libs/fujimn.o .libs/gifimage.o .libs/image.o .libs/iptc.o .libs/jp2image.o .libs/jpgimage.o .libs/makernote.o .libs/metadatum.o .libs/minoltamn.o .libs/mrwimage.o .libs/nikonmn.o .libs/olympusmn.o .libs/orfimage.o .libs/panasonicmn.o .libs/pngimage.o .libs/pngchunk.o .libs/preview.o .libs/properties.o .libs/psdimage.o .libs/rafimage.o .libs/rw2image.o .libs/sigmamn.o .libs/pentaxmn.o .libs/sonymn.o .libs/tags.o .libs/tgaimage.o .libs/tiffcomposite.o .libs/tiffimage.o .libs/tiffvisitor.o .libs/types.o .libs/value.o .libs/version.o .libs/xmp.o .libs/xmpsidecar.o .libs/localtime.o  -R/opt/foss/lib -R/usr/lib -library=Crun -L/opt/foss/lib -L/usr/lib -library=no%Cstd -lc -ldl -lpthread -lposix4 -lrt -lstdcxx4 -lCrun -L/export/home/test/packages/BUILD/exiv2-0.18.2/i386/exiv2-0.18.2/xmpsdk/src -lz -lm -lexpat /export/home/test/packages/BUILD/exiv2-0.18.2/i386/exiv2-0.18.2/xmpsdk/src/.libs/libxmpsdk.a   -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -xdebugformat=dwarf -xlang=c99 -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe -mt -xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -xipo=0 -xO3 -xregs=no%frameptr -xjobs=2 -xrestrict=%all -xthreadvar=%all -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -mt -i -xannotate=no -m32 -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -mt
pkgbuild: ld: warning: relocation error: R_386_32: file .libs/canonmn.o: symbol Exiv2::array: external symbolic relocation against non-allocatable section .debug_info; cannot be processed at runtime: relocation ignored
pkgbuild: ld: warning: relocation error: R_386_32: file .libs/canonmn.o: symbol Exiv2::array: external symbolic relocation against non-allocatable section .debug_info; cannot be processed at runtime: relocation ignored
...
(more at http://opensolaris.pastebin.ca/1831181)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2010
Added on Mar 9 2010
14 comments
578 views