[x264-devel] configure contains incompatible flags, build fails with Sun Studio
hajma
tropikhajma at gmail.com
Wed May 20 11:14:10 CEST 2009
Hi again,
building x264 witn Sun Studio 12U1 on opensolaris, it fails saying
...
/usr/bin/cc -O4 -ffast-math -D_REENTRANT -D__EXTENSIONS__
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS
-DSOLARIS -DSOLARIS10 -DNDEBUG -DNO_DEBUG -D_UNICODE -DUNICODE
-D_XOPEN_SOURCE=600 -D_XPG6 -D_POSIX_C_SOURCE=200112L
-D__XOPEN_OR_POSIX -D_STRICT_STDC -D_STRICT_STDC__ -D_STDC_C99
-D_ISOC99_SOURCE -I/opt/foss/include -DHAVE_MMX=1 -DUSE_SOLARIS
-DVISUALIZE=1 -DHAVE_MALLOC_H -DHAVE_PTHREAD -DSYS_SunOS -Xc
-xc99=%all -errshort=full -errfmt=error -errwarn=%none -s -xcsi
-xustr=ascii_utf16_ushort -features=extinl -xalias_level=std -mt
-xF=%none -xbuiltin=%all -xinline=%auto -xprefetch=auto
-xprefetch_auto_type=indirect_array_access -xprefetch_level=3
-xthreadvar=%all -xipo=0 -xO3 -xregs=no%frameptr -xjobs=2 -KPIC
-xrestrict=%all -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4
-xcache=8/64/4:256/128/8 -I. -DVISUALIZE=1 -DHAVE_MALLOC_H -DHAVE_MMX
-DARCH_X86 -DSYS_SunOS -DHAVE_PTHREAD -fPIC -s -fomit-frame-pointer -o
x264 x264.o matroska.o muxers.o libx264.a -m32 -s -L/opt/foss/lib
-R/opt/foss/lib -L/usr/lib -R/usr/lib -z combreloc -z redlocsym -z
nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic
-xlibmil -s -lc -lm -ldl -lpthread -lposix4 -lrt -mt -L/usr/X11/lib
-R/usr/X11/lib -lX11 -lsunmath -L/usr/X11R6/lib -lX11 -lm -lpthread -s
pkgbuild: cc: Warning: Option -ffast-math passed to ld, if ld is
invoked, ignored otherwise
pkgbuild: cc: Warning: Option -fomit-frame-pointer passed to ld, if ld
is invoked, ignored otherwise
pkgbuild: ld: fatal: auxiliary filter option (-f, --auxiliary) is
incompatible with building a dynamic executable
I had to remove the setting of
-ffast-math and -fomit-frame-pointer flags from the configure file
to make it proceed. I guess this is something gcc just ignores, but
Sun Studio does not.
regards
hajma
More information about the x264-devel
mailing list