PDA

Bekijk de volledige versie : Strange compiler errors ... help



ezhikov
14-02-2005, 21:02
Have anyone ever seen such compiler errors ????? help ? how to avoid them ??


mipsel-uclibc-gcc -DHAVE_CONFIG_H -I/home/ezhikov/wl/gift-0.11.8.1/z/include/ -I. -I. -I.. -I../src -I/usr/include -g -O2 -Wall -MT ft_packet.lo -MD -MP -MF .deps/ft_packet.Tpo -c ft_packet.c -fPIC -DPIC -o .libs/ft_packet.o
/tmp/ccQJTy29.s: Assembler messages:
/tmp/ccQJTy29.s:584: Error: unrecognized opcode `rorw $8,$3'
/tmp/ccQJTy29.s:590: Error: unrecognized opcode `rorw $8,$2'
make[3]: *** [ft_packet.lo] Error 1
make[3]: Leaving directory `/usr/home/ezhikov/wl/gift-openft-0.2.1.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/home/ezhikov/wl/gift-openft-0.2.1.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/home/ezhikov/wl/gift-openft-0.2.1.5'
make: *** [all] Error 2
ezhikov@logovo:~/wl/gift-openft-0.2.1.5$ mipsel-linux-gcc --version
mipsel-linux-gcc (GCC) 3.2.3 with Broadcom modifications
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ezhikov
15-02-2005, 07:07
i found what it causes due to macros "htons" .....
Anyway why to unfold it without errors ?

Oleg
15-02-2005, 09:42
i found what it causes due to macros "htons" .....
Anyway why to unfold it without errors ?
The include path should use /usr/include - that's the problem. You should use cross includes.