Thanks for the answer :D
huan: loadlocale.c... this file is internal from glibc, not in any way related to lgogdl. This probably means that the toolchain is broken in some way (not compatible with your version of glibc - maybe different arch, or requires newer/older), or just plain bug in the toolchain. Can you try running just "/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-g++" -v, to see if crashes with the same error? And then repeat after export LC_ALL="C" (could skip locale stuff, in theory).
ok:
"/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-g++" -v
x86_64-pc-linux-gnu-g++: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
Abgebrochen (Speicherabzug geschrieben)
ok you're right, same error here. with export LC_ALL="C":
Using built-in specs.
COLLECT_GCC=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-g++
COLLECT_LTO_WRAPPER=/usr/local/x86_64-pc-linux-gnu/libexec/gcc/x86_64-pc-linux-gnu/4.7.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/yikai/Public/crosstool-ng-1.18.0/.build/src/gcc-linaro-4.7-2013.01/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=x86_64-pc-linux-gnu --prefix=/usr/local/x86_64-pc-linux-gnu --with-sysroot=/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root --enable-languages=c,c++ --with-pkgversion='crosstool-NG 1.18.0' --enable-__cxa_atexit --enable-libmudflap --enable-libgomp --enable-libssp --enable-libquadmath --enable-libquadmath-support --with-gmp=/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools --with-mpfr=/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools --with-mpc=/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools --with-ppl=/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools --with-cloog=/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools --with-libelf=/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++ -lm -L/home/yikai/Public/crosstool-ng-1.18.0/.build/x86_64-pc-linux-gnu/buildtools/lib -lpwl' --enable-threads=posix --enable-target-optspace --disable-multilib --with-local-prefix=/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.7.3 20130102 (prerelease) (crosstool-NG 1.18.0)
it seems to work...
yet when I try to crosscompile now it just stops at another error (I still think the config in the makefile might not be correct):
/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-g++ -std=c++11 -Wall -fexceptions -D_FILE_OFFSET_BITS=64 -O2 -DVERSION_STRING="\"LGOGDownloader 2.26\"" -I/usr/local/x86_64-pc-linux-gnu/libc/include -I/usr/include/rhash -I/usr/include/jsoncpp -c main.cpp -o obj/Release/main.o
main.cpp:7:24: fatal error: downloader.h: No such file or directory
compilation terminated.
Makefile:131: recipe for target 'obj/Release/main.o' failed
make: *** [obj/Release/main.o] Error 1
huan: What system are you running on your notebook? Because if it is 64-bit, you may be able to simply copy lgogdownloader + all the libraries it uses into /usr/local/{bin,lib} on your NAS - you can find what libraries you need with ldd <filename>. If not, you could try to grab 64-bit packages for ubuntu with roughly same version of gcc. I would be much easier than what you are trying, crosscompiling stuff could take days even if you have rough idea what you are doing, and it doesn't make much sense trying to crosscompile from x86_64 to x86_64...
huh, never thought about that. Yes it's a 64bit arch and the processor is an intel i5 ... So you're saying the intel atom just has the same instruction set as the i5? that would be grand giving it a try...
oh ok ldd lgogdownloader gives about 22 libraries it depends on ... don't know if it's wise to put all of those onto the nas (I'd rather have them contained somewhere so they don't run the risk of somehow breaking the system on the NAS... guess I'll try that as a last resort. making sure they're all in /usr/local/
huan: One more thing, if you want static build (good idea in this case, and could be more compatible than trying to copy lots of .so libraries), add -static to LDFLAGS_RELEASE, and hope you have static versions of needed libraries installed (my Gentoo box doesn't, I'd have to compile a lot of stuff with USE=static-libs).
Yes that one :) I want that one...
this is the error it gives when trying with -static in LDFLAGS_RELEASE
/usr/bin/ld: cannot find -lcurl
/usr/bin/ld: cannot find -loauth
/usr/bin/ld: cannot find -ljsoncpp
/usr/bin/ld: cannot find -lhtmlcxx
/usr/bin/ld: cannot find -ltinyxml
/usr/bin/ld: cannot find -lrhash
guess that's the problem don't really know how to install all of those libraries as static ...
but a static build is the way to go I think because then it's easier to upgrade when a newer version of lgogdownloader needs newer libraries...
So do you think I'll need to compile those libraries myself as static? I just got them via pacman and haven't compiled any of it myself...