Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when make,how to resolve ? error massage :final link failed: symbol needs debug section which does not exist #13607

Closed
musexiaoluo opened this issue May 12, 2024 · 2 comments
Labels
build not-a-curl-bug This is not a bug in curl TLS

Comments

@musexiaoluo
Copy link

I did this

./configure --host=arm-linux CC=/opt/gcc-r3/gcc-sigmastar-9.1.0-2019.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-9.1.0-gcc --with-mbedtls=/usr/local/ --enable-optimize --disable-debug --disable-curldebug --disable-symbol-hiding --disable-dict --disable-gopher --disable-imap --disable-pop3 --disable-rtsp --disable-smtp --disable-telnet --disable-sspi --disable-smb --disable-ntlm-wb --disable-tls-srp --disable-soname-bump --disable-manual --disable-file --disable-ldap --disable-tftp --enable-http --disable-ftp --disable-ipv6 --without-debug

error when make,how to resolve ?

error massage :

/opt/gcc-r3/gcc-sigmastar-9.1.0-2019.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/9.1.0/../../../../arm-linux-gnueabihf/bin/ld: /usr/local//lib/libmbedtls.a(debug.o)(.text+0x21a): unresolvable R_ARM_THM_CALL relocation against symbol `vsnprintf@@GLIBC_2.4'
/opt/gcc-r3/gcc-sigmastar-9.1.0-2019.11-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/9.1.0/../../../../arm-linux-gnueabihf/bin/ld: final link failed: symbol needs debug section which does not exist
collect2: error: ld returned 1 exit status
Makefile:1696: recipe for target 'libcurl.la' failed

image

I expected the following

No response

curl/libcurl version

curl8.5

operating system

linux

@musexiaoluo
Copy link
Author

image

@bagder
Copy link
Member

bagder commented May 12, 2024

libmbedtls.a(debug.o)(.text+0x21a): unresolvable R_ARM_THM_CALL relocation against symbol `vsnprintf@@GLIBC_2.4'

libmbedtls.a is a key there. That's your mbedTLS library that the linker does not like.

@bagder bagder added the not-a-curl-bug This is not a bug in curl label May 12, 2024
@bagder bagder closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build not-a-curl-bug This is not a bug in curl TLS
Development

No branches or pull requests

2 participants