crosstool-ng / crosstool-ng

A versatile (cross-)toolchain generator.
Other
2.14k stars 665 forks source link

Error 2 Error happened in: CT_DoExecLog[scripts/functions@378] multilib _dl_stat #2186

Open MahdiyarEmad opened 3 months ago

MahdiyarEmad commented 3 months ago

In crosstool-ng-1.26.0-97-g839bfbec With Ubuntu 24.04 WSL2 Version

Please help me to fix that problem, My brain is crashed.

CT_PREFIX_DIR="${CT_TOP_DIR}/toolchain"
CT_DOWNLOAD_AGENT_WGET=y
# CT_DOWNLOAD_AGENT_CURL is not set
# CT_DOWNLOAD_AGENT_NONE is not set
# CT_FORBID_DOWNLOAD is not set
# CT_FORCE_DOWNLOAD is not set
CT_CONNECT_TIMEOUT=10
CT_DOWNLOAD_WGET_OPTIONS="--passive-ftp --tries=3 -nc --progress=dot:binary"
# CT_ONLY_DOWNLOAD is not set
# CT_USE_MIRROR is not set
CT_VERIFY_DOWNLOAD_DIGEST=y
CT_VERIFY_DOWNLOAD_DIGEST_SHA512=y
# CT_VERIFY_DOWNLOAD_DIGEST_SHA256 is not set
# CT_VERIFY_DOWNLOAD_DIGEST_SHA1 is not set
# CT_VERIFY_DOWNLOAD_DIGEST_MD5 is not set
CT_VERIFY_DOWNLOAD_DIGEST_ALG="sha512"
# CT_VERIFY_DOWNLOAD_SIGNATURE is not set

#
# Target options
#
# CT_ARCH_ALPHA is not set
# CT_ARCH_ARC is not set
CT_ARCH_ARM=y
# CT_ARCH_AVR is not set
# CT_ARCH_BPF is not set
# CT_ARCH_M68K is not set
# CT_ARCH_MIPS is not set
# CT_ARCH_NIOS2 is not set
# CT_ARCH_POWERPC is not set
# CT_ARCH_PRU is not set
# CT_ARCH_S390 is not set
# CT_ARCH_SH is not set
# CT_ARCH_SPARC is not set
# CT_ARCH_X86 is not set
# CT_ARCH_XTENSA is not set
CT_ARCH="arm"
CT_ARCH_CHOICE_KSYM="ARM"
CT_ARCH_CPU=""
CT_ARCH_TUNE=""
CT_ARCH_ARM_SHOW=y

#
# Options for arm
#
CT_ARCH_ARM_PKG_KSYM=""
CT_ARCH_ARM_MODE="arm"
CT_ARCH_ARM_MODE_ARM=y
# CT_ARCH_ARM_MODE_THUMB is not set
# CT_ARCH_ARM_INTERWORKING is not set
CT_ARCH_ARM_EABI_FORCE=y
CT_ARCH_ARM_EABI=y
CT_ALL_ARCH_CHOICES="ALPHA ARC ARM AVR BPF C6X LOONGARCH M68K MICROBLAZE MIPS MOXIE MSP430 NIOS2 PARISC POWERPC PRU RISCV S390 SH SPARC X86 XTENSA"
CT_ARCH_SUFFIX=""
# CT_OMIT_TARGET_VENDOR is not set

#
# Tuple completion and aliasing
#
CT_TARGET_VENDOR="richdad"
CT_TARGET_ALIAS_SED_EXPR=""
CT_TARGET_ALIAS=""

#
QBos07 commented 3 months ago

you are using the newest gcc 14 wich has some new default werrors. You may want to add -fpermissive to the target CFLAGS or set the gcc version to something below 14.

MahdiyarEmad commented 3 months ago

you are using the newest gcc 14 wich has some new default werrors. You may want to add -fpermissive to the target CFLAGS or set the gcc version to something below 14.

I changed your recommendation in my menuconfig file but nothing changes and again I receive the error please help me about changing gcc version or new solution yet

QBos07 commented 3 months ago

You didn't attatch the complete .config. I can't do the change for you without it.

MahdiyarEmad commented 3 months ago

You didn't attatch the complete .config. I can't do the change for you without it.

config.txt

QBos07 commented 3 months ago

config.txt here you go (you need to rename it to .config)

MahdiyarEmad commented 3 months ago

Again I receive the error, so tired 😪

QBos07 commented 3 months ago

I hate to be that guy but it works for me.

QBos07 commented 3 months ago

config.txt This is my EXACT config. Don't do any other ct-ng commands than ct-ng build and it should work.