I've been trying to cross compile the source code to build GCC 12.2.0 for my RaspberryPi 4 B running Ubuntu 22.04. SO far I've tried doing this while configuring the project:
../gcc-12.2.0/configure --build=x86_64-pc-linux-gnu --host=aarch64-linux-gnu --enable-languages=c,c++ --prefix-path=/opt/cross/gcc-12.2.0/build_aarch64 --disable-multilib But this does not work, as when I'm building the project using make, the bootstrapping phase gives me a bunch of errors related to zstd.
undefined reference to `ZSTD_getErrorName' undefined reference to `ZSTD_isError' undefined reference to `ZSTD_compress' undefined reference to `ZSTD_getErrorName' ... (you get it) How do I go about solving this? Am I doing something wrong configuring my project? I've been looking at this from just straight up searching my error: https://github.com/crosstool-ng/crosstool-ng/issues/1613, but it seems like scuffing it a bit, right?
Would appreciate your help, guys.
g++-12-aarch64-linux-gnucross-compiler package?--buildand--host, which in Musl-LFS are equal, and the lack of--target. The original LFS has only--targetin the first step, and--hostequal to--targetin the second stepaarch64-linux-gnuis the correct triplet? LFS contains a section on "system triplets", which should actually consist of four parts.