Whilst the last compiler (one with fudged symlinks) built, soon transpired it was broken. Couldn't find much of anything.
@tttapa
That has progressed things although I couldn't find an "install_root=" setting, just a grep returning..For the moment all I've done is modify the glibc install prefix....which got me most of the way there. Does this look more reasonable? It's the last couple of lines of using the junk xgcc to compile 'sdv'. By this point it has already built all the prerequisites to get the maridb client built because 'sdv' needs it. I cobbled together a tool to massage the "gcc -v" output because my eyes were going funny trying to work out the effective paths all the time. It replaces "/usr/local/RPI" with "$PFX" and "arm-linux-gnueabihf" with "$TGT_ARCH" (to match variables in my script) and has performed "realpath -m" where it can. I'm finding it easier to read.There doesn't look to be anything wierd going on with the compiler/linker paths any more. I did have to patch the glibc libc.so with a 'sed' to this though....as it had "/wibble/" prefix in there. Is it normal to have to do this? I'm hoping your DESTDIR suggestion means I can omit that sed patch.
@tttapa
That has progressed things although I couldn't find an "install_root=" setting, just a grep returning..
Code:
glibc-2.40/config.make.in:install_root = $(DESTDIR)
Code:
foo@sdu:/wrk/TT$ cat config.log $ ../binutils-2.43/configure --prefix=/usr/local/RPI/arm-linux-gnueabihf/junk --disable-multilib --with-fpu=vfp --with-float=hard --target=arm-linux-gnueabihf --with-arch=armv6 --with-sysroot=/usr/local/RPI/arm-linux-gnueabihf/junk//wibbleLK INSTALL_HDR_PATH=/usr/local/RPI/arm-linux-gnueabihf/junk//wibble $ ../gcc-14.2.0/configure --prefix=/usr/local/RPI/arm-linux-gnueabihf/junk --enable-languages=c,c++ --disable-multilib --target=arm-linux-gnueabihf --with-pkgversion=2024/11/09-04:42 --with-arch=armv6 --with-fpu=vfp --with-float=hard --with-sysroot=/usr/local/RPI/arm-linux-gnueabihf/junk//wibble --with-native-system-header-dir=/include --with-build-sysroot=/usr/local/RPI/arm-linux-gnueabihf/junk//wibble $ ../glibc-2.40/configure --prefix=/usr/local/RPI/arm-linux-gnueabihf/junk//wibble --disable-multilib --with-fpu=vfp --with-float=hard --build=x86_64-pc-linux-gnu --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf libc_cv_forced_unwind=yes --disable-werror --with-arch=armv6 --with-headers=/usr/local/RPI/arm-linux-gnueabihf/junk//wibble/include
Code:
Target: $TGT_ARCHConfigured with: /home/foo/usr/src/QTP/gcc-14.2.0/configure --prefix=$PFX/$TGT_ARCH/junk --enable-languages=c,c++ --disable-multilib --target=$TGT_ARCH --with-pkgversion=2024/11/09-04:42 --with-arch=armv6 --with-fpu=vfp --with-float=hard --with-sysroot=$PFX/$TGT_ARCH/junk//wibble --with-native-system-header-dir=/include --with-build-sysroot=$PFX/$TGT_ARCH/junk//wibbleThread model: posixSupported LTO compression algorithms: zlibgcc version 14.2.0 (2024/11/09-04:42) COLLECT_GCC_OPTIONS='--sysroot=$PFX/$TGT_ARCH/junk/wibble' '-I' '/home/foo/usr/src/QTP/sdv/sdv/hpp' '-I' '/home/foo/usr/src/QTP/sdv/sd' '-I' '/home/foo/usr/src/QTP/sdv/sd/hpp' '-I' '/home/foo/usr/src/QTP/sdv/sd/cci' '-I' '$PFX/$TGT_ARCH/junk/wibble/include/mysql' '-v' '-O0' '-g' '-ansi' '-Wpedantic' '-Wno-long-long' '-Wextra' '-Wall' '-Werror' '-D' 'DEBUG' '-D' 'SD_LIB' '-std=gnu++14' '-MD' '-MT' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o' '-MF' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o.d' '-o' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o' '-c' '-shared-libgcc' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' '-marm' '-mlibarch=armv6+fp' '-march=armv6+fp' '-dumpdir' 'CMakeFiles/sdv.dir/sdv/cpp/' $PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/cc1plus -quiet -v -I /home/foo/usr/src/QTP/sdv/sdv/hpp -I /home/foo/usr/src/QTP/sdv/sd -I /home/foo/usr/src/QTP/sdv/sd/hpp -I /home/foo/usr/src/QTP/sdv/sd/cci -I $PFX/$TGT_ARCH/junk/wibble/include/mysql -isysroot $PFX/$TGT_ARCH/junk/wibble -MD CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.d -MF CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o.d -MT CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o -D_GNU_SOURCE -D DEBUG -D SD_LIB /home/foo/usr/src/QTP/sdv/sdv/cpp/upd.cpp -quiet -dumpdir CMakeFiles/sdv.dir/sdv/cpp/ -dumpbase upd.cpp.cpp -dumpbase-ext .cpp -mfloat-abi=hard -mfpu=vfp -mtls-dialect=gnu -marm -mlibarch=armv6+fp -march=armv6+fp -g -O0 -Wpedantic -Wno-long-long -Wextra -Wall -Werror -ansi -std=gnu++14 -version -o /tmp/ccBo9pQu.sGNU C++14 (2024/11/09-04:42) version 14.2.0 ($TGT_ARCH) compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMPGGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072ignoring non-existent directory "$PFX/$TGT_ARCH/junk/wibble/usr/local/include"#include "..." search starts here:#include <...> search starts here: /home/foo/usr/src/QTP/sdv/sdv/hpp /home/foo/usr/src/QTP/sdv/sd /home/foo/usr/src/QTP/sdv/sd/hpp /home/foo/usr/src/QTP/sdv/sd/cci $PFX/$TGT_ARCH/junk/wibble/include/mysql $PFX/$TGT_ARCH/junk/$TGT_ARCH/include/c++/14.2.0 $PFX/$TGT_ARCH/junk/$TGT_ARCH/include/c++/14.2.0/$TGT_ARCH $PFX/$TGT_ARCH/junk/$TGT_ARCH/include/c++/14.2.0/backward $PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/include $PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/include-fixed $PFX/$TGT_ARCH/junk/$TGT_ARCH/include $PFX/$TGT_ARCH/junk/wibble/includeEnd of search list.Compiler executable checksum: 74a706abc80e2c3a7c565813d0b24706COLLECT_GCC_OPTIONS='--sysroot=$PFX/$TGT_ARCH/junk/wibble' '-I' '/home/foo/usr/src/QTP/sdv/sdv/hpp' '-I' '/home/foo/usr/src/QTP/sdv/sd' '-I' '/home/foo/usr/src/QTP/sdv/sd/hpp' '-I' '/home/foo/usr/src/QTP/sdv/sd/cci' '-I' '$PFX/$TGT_ARCH/junk/wibble/include/mysql' '-v' '-O0' '-g' '-ansi' '-Wpedantic' '-Wno-long-long' '-Wextra' '-Wall' '-Werror' '-D' 'DEBUG' '-D' 'SD_LIB' '-std=gnu++14' '-MD' '-MT' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o' '-MF' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o.d' '-o' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o' '-c' '-shared-libgcc' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' '-marm' '-mlibarch=armv6+fp' '-march=armv6+fp' '-dumpdir' 'CMakeFiles/sdv.dir/sdv/cpp/' $PFX/$TGT_ARCH/junk/$TGT_ARCH/bin/as -v -I /home/foo/usr/src/QTP/sdv/sdv/hpp -I /home/foo/usr/src/QTP/sdv/sd -I /home/foo/usr/src/QTP/sdv/sd/hpp -I /home/foo/usr/src/QTP/sdv/sd/cci -I $PFX/$TGT_ARCH/junk/wibble/include/mysql -march=armv6+fp -mfloat-abi=hard -mfpu=vfp -meabi=5 -o CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o /tmp/ccBo9pQu.sGNU assembler version 2.43 ($TGT_ARCH) using BFD version (GNU Binutils) 2.43COMPILER_PATH=$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/:$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/:$PFX/$TGT_ARCH/junk/$TGT_ARCH/binLIBRARY_PATH=$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/$TGT_ARCH/lib:$PFX/$TGT_ARCH/junk/wibble/lib/COLLECT_GCC_OPTIONS='--sysroot=$PFX/$TGT_ARCH/junk/wibble' '-I' '/home/foo/usr/src/QTP/sdv/sdv/hpp' '-I' '/home/foo/usr/src/QTP/sdv/sd' '-I' '/home/foo/usr/src/QTP/sdv/sd/hpp' '-I' '/home/foo/usr/src/QTP/sdv/sd/cci' '-I' '$PFX/$TGT_ARCH/junk/wibble/include/mysql' '-v' '-O0' '-g' '-ansi' '-Wpedantic' '-Wno-long-long' '-Wextra' '-Wall' '-Werror' '-D' 'DEBUG' '-D' 'SD_LIB' '-std=gnu++14' '-MD' '-MT' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o' '-MF' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o.d' '-o' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o' '-c' '-shared-libgcc' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' '-marm' '-mlibarch=armv6+fp' '-march=armv6+fp' '-dumpdir' 'CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.'[100%] Linking CXX executable sdv/usr/bin/cmake -E cmake_link_script CMakeFiles/sdv.dir/link.txt --verbose=1$PFX/$TGT_ARCH/junk/bin/$TGT_ARCH-g++ --sysroot=$PFX/$TGT_ARCH/junk/wibble -v -O0 -g -ansi -pedantic -Wno-long-long -W -Wall -Werror -rdynamic CMakeFiles/sdv.dir/sdv/cpp/dns.cpp.o CMakeFiles/sdv.dir/sdv/cpp/gl.cpp.o CMakeFiles/sdv.dir/sdv/cpp/main.cpp.o CMakeFiles/sdv.dir/sdv/cpp/mnt.cpp.o CMakeFiles/sdv.dir/sdv/cpp/rsync.cpp.o CMakeFiles/sdv.dir/sdv/cpp/sdv.cpp.o CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o -o sdv libsd.a -Wl,-Bstatic -lmariadbclient -lgnutls -lhogweed -lnettle -lcrypto -lssl -lz -Wl,-Bdynamic -latomic -lpthread -ldl Using built-in specs.COLLECT_GCC=$PFX/$TGT_ARCH/junk/bin/$TGT_ARCH-g++COLLECT_LTO_WRAPPER=$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/lto-wrapperTarget: $TGT_ARCHConfigured with: /home/foo/usr/src/QTP/gcc-14.2.0/configure --prefix=$PFX/$TGT_ARCH/junk --enable-languages=c,c++ --disable-multilib --target=$TGT_ARCH --with-pkgversion=2024/11/09-04:42 --with-arch=armv6 --with-fpu=vfp --with-float=hard --with-sysroot=$PFX/$TGT_ARCH/junk//wibble --with-native-system-header-dir=/include --with-build-sysroot=$PFX/$TGT_ARCH/junk//wibbleThread model: posixSupported LTO compression algorithms: zlibgcc version 14.2.0 (2024/11/09-04:42) COMPILER_PATH=$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/:$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/:$PFX/$TGT_ARCH/junk/$TGT_ARCH/binLIBRARY_PATH=$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/:$PFX/$TGT_ARCH/junk/$TGT_ARCH/lib:$PFX/$TGT_ARCH/junk/wibble/lib/COLLECT_GCC_OPTIONS='--sysroot=$PFX/$TGT_ARCH/junk/wibble' '-v' '-O0' '-g' '-ansi' '-Wpedantic' '-Wno-long-long' '-Wextra' '-Wall' '-Werror' '-rdynamic' '-o' 'sdv' '-shared-libgcc' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' '-marm' '-mlibarch=armv6+fp' '-march=armv6+fp' '-dumpdir' 'sdv.' $PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/collect2 -plugin $PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/liblto_plugin.so -plugin-opt=$PFX/$TGT_ARCH/junk/libexec/gcc/$TGT_ARCH/14.2.0/lto-wrapper -plugin-opt=-fresolution=/tmp/cc8go5AO.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=$PFX/$TGT_ARCH/junk/wibble --eh-frame-hdr -export-dynamic -dynamic-linker /lib/ld-linux-armhf.so.3 -X -m armelf_linux_eabi -o sdv $PFX/$TGT_ARCH/junk/wibble/lib/crt1.o $PFX/$TGT_ARCH/junk/wibble/lib/crti.o $PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/crtbegin.o -L$PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0 -L$PFX/$TGT_ARCH/junk/$TGT_ARCH/lib -L$PFX/$TGT_ARCH/junk/wibble/lib CMakeFiles/sdv.dir/sdv/cpp/dns.cpp.o CMakeFiles/sdv.dir/sdv/cpp/gl.cpp.o CMakeFiles/sdv.dir/sdv/cpp/main.cpp.o CMakeFiles/sdv.dir/sdv/cpp/mnt.cpp.o CMakeFiles/sdv.dir/sdv/cpp/rsync.cpp.o CMakeFiles/sdv.dir/sdv/cpp/sdv.cpp.o CMakeFiles/sdv.dir/sdv/cpp/upd.cpp.o libsd.a -Bstatic -lmariadbclient -lgnutls -lhogweed -lnettle -lcrypto -lssl -lz -Bdynamic -latomic -lpthread -ldl -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc $PFX/$TGT_ARCH/junk/lib/gcc/$TGT_ARCH/14.2.0/crtend.o $PFX/$TGT_ARCH/junk/wibble/lib/crtn.oCOLLECT_GCC_OPTIONS='--sysroot=$PFX/$TGT_ARCH/junk/wibble' '-v' '-O0' '-g' '-ansi' '-Wpedantic' '-Wno-long-long' '-Wextra' '-Wall' '-Werror' '-rdynamic' '-o' 'sdv' '-shared-libgcc' '-mfloat-abi=hard' '-mfpu=vfp' '-mtls-dialect=gnu' '-marm' '-mlibarch=armv6+fp' '-march=armv6+fp' '-dumpdir' 'sdv.'gmake[2]: Leaving directory '/home/foo/usr/src/QTP/sdv/obj'[100%] Built target sdvgmake[1]: Leaving directory '/home/foo/usr/src/QTP/sdv/obj'/usr/bin/cmake -E cmake_progress_start /home/foo/usr/src/QTP/sdv/obj/CMakeFiles 0
Code:
$ cat junk/wibble/lib/libc.so/* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */OUTPUT_FORMAT(elf32-littlearm)GROUP ( /lib/libc.so.6 /lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux-armhf.so.3 ) )
Statistics: Posted by swampdog — Sat Nov 09, 2024 6:52 am