On Sat, 2010-01-16 at 17:34 +0100, Danny Backx wrote:
> On Fri, 2010-01-15 at 13:35 +0100, David Sveningsson wrote:
> > Hi, sorry for crossposting this message, I don't know which list is most 
> > suitable.
> > 
> > I am trying to compile the ffmpeg libraries for use on Windows Mobile 
> > 6.1 using minggw32ce that comes with cegcc. I've had some success but 
> > the linker always fail with libavcodec and libswscale, even when using 
> > minimalistic build-settings (disabling everything). The other dll's 
> > works and is even loadable on the phone.
> 
> I tried your configure command and get errno problems. Did you get those
> too ?

I'd still like the answer to that first question, but after bypassing
these issues, I did see evidence of a problem I need to look into. See
the ld crash below.

Note I also stumbled on an assembler I cannot solve immediately. Can
you ?

arm-mingw32ce-gcc -DHAVE_AV_CONFIG_H -I.
-I"/home/danny/src/ffmpeg/ffmpeg" -D_ISOC99_SOURCE
-D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-march=armv4 -g -MMD -MF libavcodec/arm/dsputil_arm.d -MT
libavcodec/arm/dsputil_arm.o -c -o libavcodec/arm/dsputil_arm.o
libavcodec/arm/dsputil_arm.S
libavcodec/arm/dsputil_arm.S: Assembler messages:
libavcodec/arm/dsputil_arm.S:711: Error: selected processor does not
support `bx lr'
gmake: *** [libavcodec/arm/dsputil_arm.o] Error 1


        Danny

arm-mingw32ce-gcc -shared -Wl,--output-def,libswscale/swscale-0.def
-Wl,--out-implib,libswscale/libswscale.dll.a
-Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base
-Wl,--version-script,libswscale/libswscale.ver
-L"/home/danny/src/ffmpeg/ffmpeg"/libavcodec
-L"/home/danny/src/ffmpeg/ffmpeg"/libavdevice
-L"/home/danny/src/ffmpeg/ffmpeg"/libavfilter
-L"/home/danny/src/ffmpeg/ffmpeg"/libavformat
-L"/home/danny/src/ffmpeg/ffmpeg"/libavutil
-L"/home/danny/src/ffmpeg/ffmpeg"/libpostproc
-L"/home/danny/src/ffmpeg/ffmpeg"/libswscale -Wl,--enable-auto-import
-Wl,--warn-common -Wl,--as-needed
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libpostproc
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libswscale
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavfilter
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavdevice
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavformat
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavcodec
-Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavutil -Wl,-Bsymbolic
-o libswscale/swscale-0.dll libswscale/options.o libswscale/rgb2rgb.o
libswscale/swscale.o libswscale/yuv2rgb.o -lavutil -lm 
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/ld: 
nmimp000000.o: reloc against a non-existant symbol index: 456
gmake: *** [libswscale/swscale-0.dll] Error 1
gmake: Target `all' not remade because of errors.

pavilion: {2999} gdb arm-mingw32ce-ld core.3365 
GNU gdb 6.8-6mdv2009.1 (Mandriva Linux release 2009.1)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i586-mandriva-linux-gnu"...

warning: core file may not match specified executable file.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Core was generated by
`/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/ld 
--s'.
Program terminated with signal 11, Segmentation fault.
[New process 3365]
#0  0x400baa6a in strcmp () from /lib/i686/libc.so.6
Missing debug package(s), you should install:
glibc-debug-2.9-0.20081113.5mnb2.i586 zlib-debug-1.2.3-13mdv2009.1.i586
(gdb) where
#0  0x400baa6a in strcmp () from /lib/i686/libc.so.6
#1  0x080676e9 in pe_walk_relocs_of_symbol (info=0x80db5a0, 
    name=0x815ec2b "av_pix_fmt_descriptors", cb=0x8064c60
<make_import_fixup>)

at 
/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/pe-dll.c:1261
#2  0x08064147 in pe_find_data_imports () at earm_wince_pe.c:1027
#3  0x080642d7 in gld_arm_wince_pe_after_open () at earm_wince_pe.c:1124
#4  0x08058b68 in lang_process ()

at 
/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldlang.c:6293
#5  0x0805cbf8 in main (argc=Cannot access memory at address 0x0
)

at 
/home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldmain.c:455


-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to