Hi,

these atomicstuff is not that much tested. And indeed you found a bug. Can you 
try this patch:

Index: atomicity.gcc.arm.cpp
===================================================================
--- atomicity.gcc.arm.cpp       (revision 1131)
+++ atomicity.gcc.arm.cpp       (working copy)
@@ -125,7 +125,7 @@
                    : "=&r" (a), "=&r" (b)
                    : "r" (&dest), "r" (exch), "r" (comp)
                    : "cc", "memory");
-    return a;
+    return (void*)a;
 }


You will run into another problem with tntnet when cross-compiling. Tntnet 
will compile the ecpp compiler ecppc and use it to compile the demos. This 
won't work when cross-compiling since the ecpp compiler won't work on the host 
system. Luckily tntnet is already prepared for that. You can disable compiling 
the demos with the configure switch --without-demos. Actually you don't even 
need to compile ecppc for the target system so you may want to use --without-
sdk, which disables the ecpp tools and the demos.

Tntnet was cross compiled for FreeWRT and OpenWRT and other embedded systems. 
So you may want to look at the ports for help.

Tommi

Am Donnerstag, August 19, 2010, 11:11:19 schrieb Michael Eichhorn:
> Dear all,
> 
> i want to crosscompile the tntserver and for this i have to crosscompile at
> first cxxtools. and there i have a problem. the configure runs, but the
> make givs me an error. this is the configure call:
> 
> ./configure --prefix=/home/devil/Projekte/tntnet/env/
> --host=arm-linux
> CC=/home/devil/Tools/slug/openslug_5.3/SlugOS-5.3-beta-source/slugos-nslu2
> le.tmp/cross/armv5te/bin/arm-linux-gnueabi-gcc --disable-shared
> AR=/home/devil/Tools/slug/openslug_5.3/SlugOS-5.3-beta-source/slugos-nslu2
> le.tmp/cross/armv5te/bin/arm-linux-gnueabi-ar
> CXX=/home/devil/Tools/slug/openslug_5.3/SlugOS-5.3-beta-source/slugos-nslu
> 2le.tmp/cross/armv5te/bin/arm-linux-gnueabi-g++
> 
> and the make error comes here:
> 
> ...
> libtool: compile: 
> /home/devil/Tools/slug/openslug_5.3/SlugOS-5.3-beta-source/slugos-nslu2le.
> tmp/cross/armv5te/bin/arm-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -I../src
> -I../include -I../include -g -O2 -MT libcxxtools_la-atomicity.gcc.arm.lo
> -MD -MP -MF .deps/libcxxtools_la-atomicity.gcc.arm.Tpo -c
> atomicity.gcc.arm.cpp -o libcxxtools_la-atomicity.gcc.arm.o
> atomicity.gcc.arm.cpp: In function 'void*
> cxxtools::atomicCompareExchange(void* volatile&, void*, void*)':
> atomicity.gcc.arm.cpp:128: error: invalid conversion from 'volatile void*'
> to 'void*' make[2]: *** [libcxxtools_la-atomicity.gcc.arm.lo] Fehler 1
> make[2]: *** Warte auf noch nicht beendete Prozesse...
> mv -f .deps/libcxxtools_la-tcpsocketimpl.Tpo
> .deps/libcxxtools_la-tcpsocketimpl.Plo mv -f .deps/libcxxtools_la-udp.Tpo
> .deps/libcxxtools_la-udp.Plo
> mv -f .deps/libcxxtools_la-time.Tpo .deps/libcxxtools_la-time.Plo
> mv -f .deps/libcxxtools_la-utf8codec.Tpo .deps/libcxxtools_la-utf8codec.Plo
> make[2]: Leaving directory
> `/home/devil/Tools/slug/openslug_5.3/tntnet/cxxtools-2.0/src' make[1]: ***
> [all] Fehler 2
> ...
> 
> could me please somebody help?
> is the configure right?
> 
> best regards,
> michael


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to