Bug #715
-funsigned-char breaks build with Sun Studio
100%
Description
exiv2 0.20 fails to build with
...
gmake1: Entering directory `/export/home/test/packages/BUILD/exiv2-0.20/i386/exiv2-0.20/xmpsdk/src'
/usr/bin/CC -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -library=no%Cstd -library=Crun -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -s -xdebugformat=dwarf -xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt -xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -xalias_level=compatible -KPIC -DPIC -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 -s -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -library=no%Cstd -xldscope=hidden -I. -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOPEN_SOURCE=500 -D_XPG5 -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include -DEXV_LOCALEDIR=\"/opt/kde4/share/locale\" -I../include -funsigned-char -DNDEBUG=1 -DEXV_HAVE_STDINT_H=1 -c XML_Node.cpp -KPIC -DPIC -o .libs/XML_Node.o
CC: Warning: Option -funsigned-char passed to ld, if ld is invoked, ignored otherwise
CC: Warning: Option -funsigned-char passed to ld, if ld is invoked, ignored otherwise
ld: fatal: auxiliary filter option (-f, --auxiliary) is only available when building a shared object
ld: fatal: file M: stat failed: No such file or directory
this is because sun studio uses -xchar=unsigned instead of -funsigned-char
xmpsdk/src/Makefile should be modified to use one of the flags based on compiler, but I wasn't able to come up with a proper patch
Related issues
History
Updated by Pavel Heimlich over 11 years ago
ld: fatal: file M: stat failed: No such file or directory
this one is because -MM (in config/config.mk.in) is not present on Sun Studio. The equivalent there is '-xM1'
Updated by Andreas Huggel over 11 years ago
A quick workaround for the problem with -MM is to disable dependency tracking: add a --disable-dependency-tracking
option to the ./configure
call.
Updated by Andreas Huggel over 11 years ago
For the issue with -funsigned-char I prefer to fix the (Adobe XMP-SDK) code: change all char
types to unsigned char
, if that's feasible.
Updated by Robin Mills about 6 years ago
- Category set to not-a-bug
- Status changed from New to Closed
- Assignee set to Robin Mills
- Target version set to 0.26
This is an unsupported compiler. Please see the comments in #710 concerning compiler and platform support.