[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem on porting existing c++ code to etrax



Hi everyone:

I've been trying to port some c++ libraries onto etrax, most files could be
compiled without any problems, but some failed when assembling, here is the
error message I got:

(g++-cris 2.96, as-cris 2.11.90 on Mandrake8.0 kernel 2.4.8-34)
g++-cris -mlinux -xc++ -isystem
/home/oa/etrax/axis/devboard_lx/eroot/include -Wall -g
-DVOCAL_USE_DEPRECATED -DUSE_PTHREADS -DUSE_CRYPTO_RANDOM -D_REENTRANT
-I../build -I../build/../util -I../build/../util/threads
-I../build/../util/logging -I../build/../util/crypto
-I../build/../util/statistics -I../build/../util/snmp
-I../build/../util/signals -I../build/../util/behavior -I../build/../util/io
-I../build/../util/services -I../build/../util/transport
-I../build/../util/config -I../build/../util/dnssrv
-I../build/../util/deprecated -I../build/../contrib/libxml-2.x -c Data.cpp
-o Data.o
In file included from CopyOnWriteData.hxx:370,
                 from Data.cpp:79:
CopyOnWriteData.cxx: In method `int CopyOnWriteData::match (const char
CopyOnWriteData.cxx: *, CopyOnWriteData *, bool, CopyOnWriteData)':
CopyOnWriteData.cxx:687: warning: int format, long int arg (arg 2)
CopyOnWriteData.cxx:687: warning: int format, long int arg (arg 4)
/tmp/ccssjd6h.s: Assembler messages:
/tmp/ccssjd6h.s:12678: Error: Unknown opcode: `lock'
/tmp/ccssjd6h.s:12716: Error: Unknown opcode: `lock'
/tmp/ccssjd6h.s:13181: Error: Unknown opcode: `lock'
make: *** [Data.o] Error 1

When I use '-S' option to compile there isn't any problem, but I believe
that is because default assembler 'as' is used, because 'nm-cris' doesn't
recognise the result binary file format.

Anyone knows why this happened, and how to fix it?

Best regards,

Shihai