Thanks. Been experimenting. CMAKE_STAGING_PREFIX helped a lot. I had actually built with sysroot at the base. I'll show the generic xgcc as it has less options....then I installed cross compiled stuff into....and wasn't specifying "--sysroot" myself at all as I'd read the default would be "/usr/local/RPI/arm-linux-gnueabihf/generic" (aka --with-sysroot) in any case.
My confusion started with cross compiling maradb client. That was a pig. Might be a bit less so now I know CMAKE_STAGING_PREFIX though I'm not in a hurry to revisit that atm. I got enough prerequisites cross compiled....fighting mariadb cmake all the way.
I figured llvm would be a little more sane but no. Well, yes but there's a bug of this nature....where the build recursively creates NATIVE/ folders and spends the rest of its life descending down them. Hidden of course until I made it verbose trying to figure out why the build wasn't progressing and was running out of disk space whenever I turned my back on it. Still working on this atm.
Code:
foo@sdu:~/usr/src/QT$ /usr/local/RPI/arm-linux-gnueabihf/generic/bin/arm-linux-gnueabihf-gcc -vUsing built-in specs.COLLECT_GCC=/usr/local/RPI/arm-linux-gnueabihf/generic/bin/arm-linux-gnueabihf-gccCOLLECT_LTO_WRAPPER=/usr/local/RPI/arm-linux-gnueabihf/generic/libexec/gcc/arm-linux-gnueabihf/14.2.0/lto-wrapperTarget: arm-linux-gnueabihfConfigured with: ../gcc-14.2.0/configure --prefix=/usr/local/RPI/arm-linux-gnueabihf/generic --enable-languages=c,c++ --disable-multilib --target=arm-linux-gnueabihf --with-pkgversion=2024/11/05-06:42 --with-arch=armv6 --with-fpu=vfp --with-float=hard --with-sysroot=/usr/local/RPI/arm-linux-gnueabihf/generic --with-native-system-header-dir=/includeThread model: posixSupported LTO compression algorithms: zlibgcc version 14.2.0 (2024/11/05-06:42)
Code:
/usr/local/RPI/arm-linux-gnueabihf/generic/usr/
My confusion started with cross compiling maradb client. That was a pig. Might be a bit less so now I know CMAKE_STAGING_PREFIX though I'm not in a hurry to revisit that atm. I got enough prerequisites cross compiled..
Code:
aio gnutls ncurses openssl readline zlib gmp nettle pcre
I figured llvm would be a little more sane but no. Well, yes but there's a bug of this nature..
Code:
cd /home/foo/usr/src/QT/obj/NATIVE/NATIVE/NATIVE/NATIVE/NATIVE/utils/TableGen && /usr/local/RPI/arm-linux-gnueabihf/generic/bin/arm-linux-gnueabihf-g++
Statistics: Posted by swampdog — Tue Nov 05, 2024 10:06 am