[coldfire-gnu-discuss] Problem with -m5307
LE VAILLANT Guillaume
levailla at enseirb.fr
Fri Mar 2 14:08:44 UTC 2007
Hi,
I'm trying to add linphone to uClinux for coldfire (without video and
without the gnome interface).
I'm using the m68k-uclinux-gcc (Sourcery G++ Lite 4.1-32) 4.1.1 toolchain.
Everything seems to go well (compilation of kernel, uClibc, ncurses,
readline, osip2, ortp...) until I try to compile exosip (which is
included in the linphone sources).
Here is the error I get :
ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DHAVE_PTHREAD
-DOSIP_MT -DENABLE_TRACE -DNEW_TIMER -DSM -DMSN_SUPPORT
-DUSE_TMP_BUFFER -Os -g -fomit-frame-pointer -pipe -fno-common
-fno-builtin -Wall -DEMBED -msep-data -Dlinux -D__linux__ -Dunix
-D__uClinux__ -fno-strict-aliasing -MT eXosip.lo -MD -MP -MF
.deps/eXosip.Tpo -c eXosip.c -o eXosip.o
{standard input}: Assembler messages:
{standard input}:10330: Error: invalid instruction for this
architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001,
68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k,
68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32
[68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349,
68360]) -- statement `rorw $8,%d0' ignored
{standard input}:10388: Error: invalid instruction for this
architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001,
68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k,
68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32
[68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349,
68360]) -- statement `rorw $8,%d0' ignored
make[6]: *** [eXosip.lo] Erreur 1
make[6]: Leaving directory
`/home/glv/Coldfire/uClinux-dist/user/linphone/linphone-1.6.0/exosip'
So it seems the assembler doesn't recognize the architecture (5307).
Then I tried to add "-Wa,-m5307" to the compilation line, and this
time I got another error :
if /bin/sh ../libtool --tag=CC --mode=compile ucfront-gcc
m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE -DHAVE_CONFIG_H -I. -I. -I..
-I.. -I/usr/include -DHAVE_PTHREAD -DOSIP_MT -DENABLE_TRACE
-DNEW_TIMER -DSM -DMSN_SUPPORT -DUSE_TMP_BUFFER -Wa,-m5307
-fno-strict-aliasing -MT udp.lo -MD -MP -MF ".deps/udp.Tpo" -c -o
udp.lo udp.c; \
then mv -f ".deps/udp.Tpo" ".deps/udp.Plo"; else rm -f
".deps/udp.Tpo"; exit 1; fi
ucfront-gcc m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE
-DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DHAVE_PTHREAD
-DOSIP_MT -DENABLE_TRACE -DNEW_TIMER -DSM -DMSN_SUPPORT
-DUSE_TMP_BUFFER -Wa,-m5307 -fno-strict-aliasing -MT udp.lo -MD -MP
-MF .deps/udp.Tpo -c udp.c -o udp.o
udp.c: In function 'eXosip_read_message':
udp.c:2153: error: impossible constraint in 'asm'
udp.c:2175: error: impossible constraint in 'asm'
udp.c:2189: error: impossible constraint in 'asm'
make[6]: *** [udp.lo] Erreur 1
make[6]: Leaving directory
`/home/glv/Coldfire/uClinux-dist/user/linphone/linphone-1.6.0/exosip'
So I tried to see if something looked wrong with these lines (2153,
2175, 2189), but there are only calls to FD_SET() or FD_ISSET(). There
are many of these calls in the code and they don't seem to generate
errors...
Therefore, if someone knows where the problem may come from, please help me...
Guillaume LE VAILLANT
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the coldfire-gnu-discuss
mailing list