[x264-devel] x264 compile fails on Solaris SPARC 10

Alexander Livitz Alexander.Livitz at on24.com
Thu Sep 22 22:46:29 CEST 2011


Hello,

I'm trying to compile x264 on Solaris SPARC (SunOS 5.10), but it consistently fails. Here is the output from the box:
root at qa-appgen01# export PATH=/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/sfw/bin:/usr/local/bin
root at qa-appgen01# export LDFLAGS="-R/usr/local/lib"
root at qa-appgen01# ./configure
Platform:   UltraSPARC
System:     SunOS
cli:        yes
libx264:    internal
shared:     no
static:     no
asm:        yes
interlaced: yes
avs:        no
lavf:       no
ffms:       no
gpac:       no
gpl:        yes
thread:     posix
filters:    resize crop select_every
debug:      no
gprof:      no
strip:      no
PIC:        no
visualize:  no
bit depth:  8

You can run 'make' or 'make fprofiled' now.
root at qa-appgen01# make
root at qa-appgen01# export PATH=/usr/local/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/sfw/bin
root at qa-appgen01# make
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o x264.o x264.c
In file included from common/common.h:90,
                 from x264.c:33:
common/osdep.h:31:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/signal.h:18,
                 from x264.c:30:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of the previous definition
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o input/input.o input/input.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o input/timecode.o input/timecode.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o input/raw.o input/raw.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o input/y4m.o input/y4m.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o output/raw.o output/raw.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o output/matroska.o output/matroska.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o output/matroska_ebml.o output/matroska_ebml.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o output/flv.o output/flv.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o output/flv_bytestream.o output/flv_bytestream.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/filters.o filters/filters.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/video.o filters/video/video.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/source.o filters/video/source.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/internal.o filters/video/internal.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/resize.o filters/video/resize.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/cache.o filters/video/cache.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/fix_vfr_pts.o filters/video/fix_vfr_pts.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/select_every.o filters/video/select_every.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/crop.o filters/video/crop.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o filters/video/depth.o filters/video/depth.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o input/thread.o input/thread.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o extras/getopt.o extras/getopt.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/mc.o common/mc.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/predict.o common/predict.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/pixel.o common/pixel.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/macroblock.o common/macroblock.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/frame.o common/frame.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/dct.o common/dct.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/cpu.o common/cpu.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/cabac.o common/cabac.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/common.o common/common.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/osdep.o common/osdep.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/rectangle.o common/rectangle.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/set.o common/set.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/quant.o common/quant.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/deblock.o common/deblock.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/vlc.o common/vlc.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/mvpred.o common/mvpred.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/bitstream.o common/bitstream.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/analyse.o encoder/analyse.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/me.o encoder/me.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/ratecontrol.o encoder/ratecontrol.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/set.o encoder/set.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/macroblock.o encoder/macroblock.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/cabac.o encoder/cabac.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/cavlc.o encoder/cavlc.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/encoder.o encoder/encoder.c
encoder/encoder.c: In function `x264_slice_write':
encoder/encoder.c:2319: warning: array subscript has type `char'
encoder/encoder.c:2322: warning: array subscript has type `char'
encoder/encoder.c: In function `x264_encoder_close':
encoder/encoder.c:3511: warning: array subscript has type `char'
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o encoder/lookahead.o encoder/lookahead.c
gcc -Wshadow -O3 -ffast-math  -Wall -I. -mcpu=ultrasparc -std=gnu99  -fomit-frame-pointer   -c -o common/threadpool.o common/threadpool.c
as -xarch=v8plusa -DBIT_DEPTH=8 -o common/sparc/pixel.o common/sparc/pixel.asm
as: illegal option -- BIT_DEPTH=8
make: *** [common/sparc/pixel.o] Error 1

I'm using gcc (GCC) 3.4.6 and GNU Make 3.82. Any advice on how to fix this problem to build x264 would be greatly appreciated.

Thanks,
Alexander

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110922/7c4c9490/attachment-0001.html>


More information about the x264-devel mailing list