[Ffmpeg-devel] Compiling problem on ia64

Pablo Toharia pablo.toharia
Wed Jul 27 09:54:21 CEST 2005


Thanks you for the advice ... this is the compiler I am using:

#~ gcc -v
Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=ia64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)

And these are the compiling errors (very similar to 2.96)

gcc -shared -o libavcodec.so bitstream.o utils.o mem.o allcodecs.o mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o dsputil.o motion_est.o imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o simple_idct.o ratecontrol.o adpcm.o eval.o error_resilience.o fft.o mdct.o raw.o golomb.o cabac.o dpcm.o adx.o rational.o faandct.o parser.o g726.o vp3dsp.o integer.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o dvdsub.o dvbsub.o dvbsubdec.o aasc.o alac.o asv1.o cinepak.o cljr.o cyuv.o dv.o 8bps.o ffv1.o flac.o flicvideo.o 4xm.o fraps.o h261.o h264.o huffyuv.o idcinvideo.o indeo2.o indeo3.o interplayvideo.o lcl.o loco.o mace.o msrle.o msvideo1.o png.o qdrw.o qpeg.o qtrle.o ra144.o ra288.o roqvideo.o rpza.o rv10.o shorten.o smc.o snow.o sonic.o svq1.o truemotion1.o tscc.o ulti.o vc9.o vcr1.o vmdav.o vorbis.o vp3.o vqavideo.o wmadec.o wnv1.o ws-snd1.o xan.o xl.o   -lm -lz -ldl  -Wl,--warn-common -rdynamic
ranlib libavcodec.a
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
/usr/bin/ld: utils.o: @gprel relocation against dynamic symbol first_avcodec
collect2: ld returned 1 exit status
make[1]: *** [libavcodec.so] Error 1
make[1]: Leaving directory `/home/ptoharia/ffmpeg/libavcodec'
make: *** [lib] Error 2


And this is config.mak:

# Automatically generated by configure - do not modify
prefix=/usr/local
libdir=/usr/local/lib
bindir=/usr/local/bin
mandir=/usr/local/man
MAKE=make
CC=gcc
AR=ar
RANLIB=ranlib
STRIP=strip
INSTALLSTRIP=-s
OPTFLAGS=-O3 -g -Wall -Wno-switch 
SHCFLAGS=-O3 -g -Wall -Wno-switch 
LDFLAGS=-Wl,--warn-common -rdynamic
LDCONFIG=ldconfig
FFSLDFLAGS=-Wl,-E
SHFLAGS=-shared
LIBOBJFLAGS=
BUILDSUF=
LIBPREF=lib
LIBSUF=${BUILDSUF}.a
SLIBPREF=lib
SLIBSUF=${BUILDSUF}.so
EXESUF=${BUILDSUF}
TARGET_OS=Linux
HAVE_FREETYPE2=yes
CONFIG_SDL=yes
SDL_LIBS=-L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
SDL_CFLAGS=-I/usr/include/SDL -D_REENTRANT
BUILD_DOC=yes
BUILD_VHOOK=yes
BUILD_SHARED=yes
PIC=-fPIC -DPIC
EXTRALIBS=-lm -lz -ldl
VERSION=CVS
CONFIG_ENCODERS=yes
CONFIG_DECODERS=yes
CONFIG_VIDEO4LINUX=yes
CONFIG_DV1394=yes
CONFIG_AUDIO_OSS=yes
CONFIG_NETWORK=yes
CONFIG_ZLIB=yes
CONFIG_FFSERVER=yes
CONFIG_FFPLAY=yes
SRC_PATH='/home/ptoharia/ffmpeg'
CONFIG_AC3_ENCODER=yes
CONFIG_MP2_ENCODER=yes
CONFIG_MP3LAME_ENCODER=yes
CONFIG_OGGVORBIS_ENCODER=yes
CONFIG_OGGVORBIS_DECODER=yes
CONFIG_OGGTHEORA_ENCODER=yes
CONFIG_OGGTHEORA_DECODER=yes
CONFIG_FAAC_ENCODER=yes
CONFIG_XVID_ENCODER=yes
CONFIG_MPEG1VIDEO_ENCODER=yes
CONFIG_H264_ENCODER=yes
CONFIG_MPEG2VIDEO_ENCODER=yes
CONFIG_H261_ENCODER=yes
CONFIG_H263_ENCODER=yes
CONFIG_H263P_ENCODER=yes
CONFIG_FLV_ENCODER=yes
CONFIG_RV10_ENCODER=yes
CONFIG_RV20_ENCODER=yes
CONFIG_MPEG4_ENCODER=yes
CONFIG_MSMPEG4V1_ENCODER=yes
CONFIG_MSMPEG4V2_ENCODER=yes
CONFIG_MSMPEG4V3_ENCODER=yes
CONFIG_WMV1_ENCODER=yes
CONFIG_WMV2_ENCODER=yes
CONFIG_SVQ1_ENCODER=yes
CONFIG_MJPEG_ENCODER=yes
CONFIG_LJPEG_ENCODER=yes
CONFIG_PNG_ENCODER=yes
CONFIG_PPM_ENCODER=yes
CONFIG_PGM_ENCODER=yes
CONFIG_PGMYUV_ENCODER=yes
CONFIG_PBM_ENCODER=yes
CONFIG_PAM_ENCODER=yes
CONFIG_HUFFYUV_ENCODER=yes
CONFIG_FFVHUFF_ENCODER=yes
CONFIG_ASV1_ENCODER=yes
CONFIG_ASV2_ENCODER=yes
CONFIG_FFV1_ENCODER=yes
CONFIG_SNOW_ENCODER=yes
CONFIG_ZLIB_ENCODER=yes
CONFIG_DVVIDEO_ENCODER=yes
CONFIG_SONIC_ENCODER=yes
CONFIG_SONIC_LS_ENCODER=yes
CONFIG_X264_ENCODER=yes
CONFIG_LIBGSM_ENCODER=yes
CONFIG_RAWVIDEO_ENCODER=yes
CONFIG_RAWVIDEO_DECODER=yes
CONFIG_H263_DECODER=yes
CONFIG_H261_DECODER=yes
CONFIG_MPEG4_DECODER=yes
CONFIG_MSMPEG4V1_DECODER=yes
CONFIG_MSMPEG4V2_DECODER=yes
CONFIG_MSMPEG4V3_DECODER=yes
CONFIG_WMV1_DECODER=yes
CONFIG_WMV2_DECODER=yes
CONFIG_VC9_DECODER=yes
CONFIG_WMV3_DECODER=yes
CONFIG_H263I_DECODER=yes
CONFIG_FLV_DECODER=yes
CONFIG_RV10_DECODER=yes
CONFIG_RV20_DECODER=yes
CONFIG_SVQ1_DECODER=yes
CONFIG_SVQ3_DECODER=yes
CONFIG_WMAV1_DECODER=yes
CONFIG_WMAV2_DECODER=yes
CONFIG_INDEO2_DECODER=yes
CONFIG_INDEO3_DECODER=yes
CONFIG_TSCC_DECODER=yes
CONFIG_ULTI_DECODER=yes
CONFIG_QDRAW_DECODER=yes
CONFIG_XL_DECODER=yes
CONFIG_QPEG_DECODER=yes
CONFIG_LOCO_DECODER=yes
CONFIG_WNV1_DECODER=yes
CONFIG_AASC_DECODER=yes
CONFIG_FRAPS_DECODER=yes
CONFIG_AAC_DECODER=yes
CONFIG_MPEG4AAC_DECODER=yes
CONFIG_MPEG1VIDEO_DECODER=yes
CONFIG_MPEG2VIDEO_DECODER=yes
CONFIG_MPEGVIDEO_DECODER=yes
CONFIG_MPEG_XVMC_DECODER=yes
CONFIG_DVVIDEO_DECODER=yes
CONFIG_MJPEG_DECODER=yes
CONFIG_MJPEGB_DECODER=yes
CONFIG_SP5X_DECODER=yes
CONFIG_PNG_DECODER=yes
CONFIG_MP2_DECODER=yes
CONFIG_MP3_DECODER=yes
CONFIG_MP3ADU_DECODER=yes
CONFIG_MP3ON4_DECODER=yes
CONFIG_MACE3_DECODER=yes
CONFIG_MACE6_DECODER=yes
CONFIG_HUFFYUV_DECODER=yes
CONFIG_FFVHUFF_DECODER=yes
CONFIG_FFV1_DECODER=yes
CONFIG_SNOW_DECODER=yes
CONFIG_CYUV_DECODER=yes
CONFIG_H264_DECODER=yes
CONFIG_VP3_DECODER=yes
CONFIG_THEORA_DECODER=yes
CONFIG_ASV1_DECODER=yes
CONFIG_ASV2_DECODER=yes
CONFIG_VCR1_DECODER=yes
CONFIG_CLJR_DECODER=yes
CONFIG_FOURXM_DECODER=yes
CONFIG_MDEC_DECODER=yes
CONFIG_ROQ_DECODER=yes
CONFIG_INTERPLAY_VIDEO_DECODER=yes
CONFIG_XAN_WC3_DECODER=yes
CONFIG_RPZA_DECODER=yes
CONFIG_CINEPAK_DECODER=yes
CONFIG_MSRLE_DECODER=yes
CONFIG_MSVIDEO1_DECODER=yes
CONFIG_VQA_DECODER=yes
CONFIG_IDCIN_DECODER=yes
CONFIG_EIGHTBPS_DECODER=yes
CONFIG_SMC_DECODER=yes
CONFIG_FLIC_DECODER=yes
CONFIG_TRUEMOTION1_DECODER=yes
CONFIG_VMDVIDEO_DECODER=yes
CONFIG_VMDAUDIO_DECODER=yes
CONFIG_MSZH_DECODER=yes
CONFIG_ZLIB_DECODER=yes
CONFIG_SONIC_DECODER=yes
CONFIG_AC3_DECODER=yes
CONFIG_DTS_DECODER=yes
CONFIG_RA_144_DECODER=yes
CONFIG_RA_288_DECODER=yes
CONFIG_ROQ_DPCM_DECODER=yes
CONFIG_INTERPLAY_DPCM_DECODER=yes
CONFIG_XAN_DPCM_DECODER=yes
CONFIG_SOL_DPCM_DECODER=yes
CONFIG_QTRLE_DECODER=yes
CONFIG_FLAC_DECODER=yes
CONFIG_SHORTEN_DECODER=yes
CONFIG_ALAC_DECODER=yes
CONFIG_WS_SND1_DECODER=yes
CONFIG_VORBIS_DECODER=yes
CONFIG_LIBGSM_DECODER=yes
CONFIG_AMR_NB_DECODER=yes
CONFIG_AMR_NB_ENCODER=yes
CONFIG_AMR_WB_DECODER=yes
CONFIG_AMR_WB_ENCODER=yes
CONFIG_DVDSUB_DECODER=yes
CONFIG_DVBSUB_ENCODER=yes
CONFIG_DVBSUB_DECODER=yes


And this is config.h

/* Automatically generated by configure - do not modify */
#define FFMPEG_CONFIGURATION " --cpu=ia64 --enable-shared "
#define TUNECPU generic
#define HAVE_LOCALTIME_R 1
#define HAVE_LRINTF 1
#define HAVE_VHOOK 1
#define CONFIG_ENCODERS 1
#define CONFIG_DECODERS 1
#define CONFIG_MPEGAUDIO_HP 1
#define CONFIG_VIDEO4LINUX 1
#define CONFIG_DV1394 1
#define CONFIG_HAVE_DLOPEN 1
#define CONFIG_HAVE_DLFCN 1
#define CONFIG_AUDIO_OSS 1
#define CONFIG_NETWORK 1
#define CONFIG_IPV6 1
#define CONFIG_ZLIB 1
#define HAVE_MALLOC_H 1
#define HAVE_MEMALIGN 1
#define SIMPLE_IDCT 1
#define CONFIG_FFSERVER 1
#define restrict __restrict__
#define CONFIG_AC3_ENCODER 1
#define CONFIG_MP2_ENCODER 1
#define CONFIG_MP3LAME_ENCODER 1
#define CONFIG_OGGVORBIS_ENCODER 1
#define CONFIG_OGGVORBIS_DECODER 1
#define CONFIG_OGGTHEORA_ENCODER 1
#define CONFIG_OGGTHEORA_DECODER 1
#define CONFIG_FAAC_ENCODER 1
#define CONFIG_XVID_ENCODER 1
#define CONFIG_MPEG1VIDEO_ENCODER 1
#define CONFIG_H264_ENCODER 1
#define CONFIG_MPEG2VIDEO_ENCODER 1
#define CONFIG_H261_ENCODER 1
#define CONFIG_H263_ENCODER 1
#define CONFIG_H263P_ENCODER 1
#define CONFIG_FLV_ENCODER 1
#define CONFIG_RV10_ENCODER 1
#define CONFIG_RV20_ENCODER 1
#define CONFIG_MPEG4_ENCODER 1
#define CONFIG_MSMPEG4V1_ENCODER 1
#define CONFIG_MSMPEG4V2_ENCODER 1
#define CONFIG_MSMPEG4V3_ENCODER 1
#define CONFIG_WMV1_ENCODER 1
#define CONFIG_WMV2_ENCODER 1
#define CONFIG_SVQ1_ENCODER 1
#define CONFIG_MJPEG_ENCODER 1
#define CONFIG_LJPEG_ENCODER 1
#define CONFIG_PNG_ENCODER 1
#define CONFIG_PPM_ENCODER 1
#define CONFIG_PGM_ENCODER 1
#define CONFIG_PGMYUV_ENCODER 1
#define CONFIG_PBM_ENCODER 1
#define CONFIG_PAM_ENCODER 1
#define CONFIG_HUFFYUV_ENCODER 1
#define CONFIG_FFVHUFF_ENCODER 1
#define CONFIG_ASV1_ENCODER 1
#define CONFIG_ASV2_ENCODER 1
#define CONFIG_FFV1_ENCODER 1
#define CONFIG_SNOW_ENCODER 1
#define CONFIG_ZLIB_ENCODER 1
#define CONFIG_DVVIDEO_ENCODER 1
#define CONFIG_SONIC_ENCODER 1
#define CONFIG_SONIC_LS_ENCODER 1
#define CONFIG_X264_ENCODER 1
#define CONFIG_LIBGSM_ENCODER 1
#define CONFIG_RAWVIDEO_ENCODER 1
#define CONFIG_RAWVIDEO_DECODER 1
#define CONFIG_H263_DECODER 1
#define CONFIG_H261_DECODER 1
#define CONFIG_MPEG4_DECODER 1
#define CONFIG_MSMPEG4V1_DECODER 1
#define CONFIG_MSMPEG4V2_DECODER 1
#define CONFIG_MSMPEG4V3_DECODER 1
#define CONFIG_WMV1_DECODER 1
#define CONFIG_WMV2_DECODER 1
#define CONFIG_VC9_DECODER 1
#define CONFIG_WMV3_DECODER 1
#define CONFIG_H263I_DECODER 1
#define CONFIG_FLV_DECODER 1
#define CONFIG_RV10_DECODER 1
#define CONFIG_RV20_DECODER 1
#define CONFIG_SVQ1_DECODER 1
#define CONFIG_SVQ3_DECODER 1
#define CONFIG_WMAV1_DECODER 1
#define CONFIG_WMAV2_DECODER 1
#define CONFIG_INDEO2_DECODER 1
#define CONFIG_INDEO3_DECODER 1
#define CONFIG_TSCC_DECODER 1
#define CONFIG_ULTI_DECODER 1
#define CONFIG_QDRAW_DECODER 1
#define CONFIG_XL_DECODER 1
#define CONFIG_QPEG_DECODER 1
#define CONFIG_LOCO_DECODER 1
#define CONFIG_WNV1_DECODER 1
#define CONFIG_AASC_DECODER 1
#define CONFIG_FRAPS_DECODER 1
#define CONFIG_AAC_DECODER 1
#define CONFIG_MPEG4AAC_DECODER 1
#define CONFIG_MPEG1VIDEO_DECODER 1
#define CONFIG_MPEG2VIDEO_DECODER 1
#define CONFIG_MPEGVIDEO_DECODER 1
#define CONFIG_MPEG_XVMC_DECODER 1
#define CONFIG_DVVIDEO_DECODER 1
#define CONFIG_MJPEG_DECODER 1
#define CONFIG_MJPEGB_DECODER 1
#define CONFIG_SP5X_DECODER 1
#define CONFIG_PNG_DECODER 1
#define CONFIG_MP2_DECODER 1
#define CONFIG_MP3_DECODER 1
#define CONFIG_MP3ADU_DECODER 1
#define CONFIG_MP3ON4_DECODER 1
#define CONFIG_MACE3_DECODER 1
#define CONFIG_MACE6_DECODER 1
#define CONFIG_HUFFYUV_DECODER 1
#define CONFIG_FFVHUFF_DECODER 1
#define CONFIG_FFV1_DECODER 1
#define CONFIG_SNOW_DECODER 1
#define CONFIG_CYUV_DECODER 1
#define CONFIG_H264_DECODER 1
#define CONFIG_VP3_DECODER 1
#define CONFIG_THEORA_DECODER 1
#define CONFIG_ASV1_DECODER 1
#define CONFIG_ASV2_DECODER 1
#define CONFIG_VCR1_DECODER 1
#define CONFIG_CLJR_DECODER 1
#define CONFIG_FOURXM_DECODER 1
#define CONFIG_MDEC_DECODER 1
#define CONFIG_ROQ_DECODER 1
#define CONFIG_INTERPLAY_VIDEO_DECODER 1
#define CONFIG_XAN_WC3_DECODER 1
#define CONFIG_RPZA_DECODER 1
#define CONFIG_CINEPAK_DECODER 1
#define CONFIG_MSRLE_DECODER 1
#define CONFIG_MSVIDEO1_DECODER 1
#define CONFIG_VQA_DECODER 1
#define CONFIG_IDCIN_DECODER 1
#define CONFIG_EIGHTBPS_DECODER 1
#define CONFIG_SMC_DECODER 1
#define CONFIG_FLIC_DECODER 1
#define CONFIG_TRUEMOTION1_DECODER 1
#define CONFIG_VMDVIDEO_DECODER 1
#define CONFIG_VMDAUDIO_DECODER 1
#define CONFIG_MSZH_DECODER 1
#define CONFIG_ZLIB_DECODER 1
#define CONFIG_SONIC_DECODER 1
#define CONFIG_AC3_DECODER 1
#define CONFIG_DTS_DECODER 1
#define CONFIG_RA_144_DECODER 1
#define CONFIG_RA_288_DECODER 1
#define CONFIG_ROQ_DPCM_DECODER 1
#define CONFIG_INTERPLAY_DPCM_DECODER 1
#define CONFIG_XAN_DPCM_DECODER 1
#define CONFIG_SOL_DPCM_DECODER 1
#define CONFIG_QTRLE_DECODER 1
#define CONFIG_FLAC_DECODER 1
#define CONFIG_SHORTEN_DECODER 1
#define CONFIG_ALAC_DECODER 1
#define CONFIG_WS_SND1_DECODER 1
#define CONFIG_VORBIS_DECODER 1
#define CONFIG_LIBGSM_DECODER 1
#define CONFIG_AMR_NB_DECODER 1
#define CONFIG_AMR_NB_ENCODER 1
#define CONFIG_AMR_WB_DECODER 1
#define CONFIG_AMR_WB_ENCODER 1
#define CONFIG_DVDSUB_DECODER 1
#define CONFIG_DVBSUB_ENCODER 1
#define CONFIG_DVBSUB_DECODER 1


Thanks for help.
	Pablo



-------------------------------------------

Hi

On Tuesday 26 July 2005 20:39, Pablo Toharia wrote:
>/ Hi! I have been using ffmpeg devel libraries for a while on x86 based
/>/ computers. Lately I had the chance of using an ia64 SGI Altix and tried
/>/ to compile ffmpeg with the shared option enabled. The compiling process
/>/ was fine until this:
/>/
/>/     make[1]: Entering directory `/home/ptoharia/ffmpeg/libavcodec'
/>/     /usr/bin/gcc296 -shared -o libavcodec.so bitstream.o utils.o mem.o
/>/ allcodecs.o mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o mpegaudio.o
/>/ ac3enc.o mjpeg.o     resample.o resample2.o dsputil.o motion_est.o
/>/ imgconvert.o imgresample.o mpeg12.o mpegaudiodec.o pcm.o simple_idct.o
/>/ ratecontrol.o adpcm.o eval.o     error_resilience.o fft.o mdct.o raw.o
/>/ golomb.o cabac.o dpcm.o adx.o rational.o faandct.o parser.o g726.o
/>/ vp3dsp.o integer.o h264idct.o rangecoder.o         pnm.o h263.o
/>/ msmpeg4.o h263dec.o dvdsub.o dvbsub.o dvbsubdec.o aasc.o alac.o asv1.o
/>/ cinepak.o cljr.o cyuv.o dv.o 8bps.o ffv1.o flac.o flicvideo.o
/>/     4xm.o fraps.o h261.o h264.o huffyuv.o idcinvideo.o indeo2.o indeo3.o
/>/ interplayvideo.o lcl.o loco.o mace.o msrle.o msvideo1.o png.o qdrw.o
/>/ qpeg.o qtrle.o     ra144.o ra288.o roqvideo.o rpza.o rv10.o shorten.o
/>/ smc.o snow.o sonic.o svq1.o truemotion1.o tscc.o ulti.o vc9.o vcr1.o
/>/ vmdav.o vorbis.o vp3.o                     vqavideo.o wmadec.o wnv1.o
/>/ ws-snd1.o xan.o xl.o   -lm -lz -ldl  -Wl,--warn-common -rdynamic
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     /usr/bin/ld: utils.o: @gprel relocation against dynamic symbol
/>/ first_avcodec
/>/     collect2: ld returned 1 exit status
/>/     make[1]: *** [libavcodec.so] Error 1
/>/     make[1]: Leaving directory `/home/ptoharia/ffmpeg/libavcodec'
/>/     make: *** [lib] Error 2
/>/     Exit 2
/>/
/>/ Does anybody knows how to fix that??
/>/
/>/ The configuration command I used was (but I have tried few others ;-)):
/>/     ./configure --cpu=ia64 --enable-shared
/>/
/>/ I have also tried with two versions of gcc (3.2.3 and 2.96) that are
/>/ installed on the Red Hat Enterprise. 
/
2.96 is crap dont use it and NEVER send a bugreport here that something didnt 
work if you use that compiler! 
and 3.2 is old

now to the actual issue, could you post your config.mak/h files and the errors 
from gcc 3.? in case they differ from 2.96
and dont forget to run make distclean when switching compilers







More information about the ffmpeg-devel mailing list