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

Linking liblibc with musl target fails with the new nightlies #529

Closed
golddranks opened this issue Feb 19, 2017 · 6 comments
Closed

Linking liblibc with musl target fails with the new nightlies #529

golddranks opened this issue Feb 19, 2017 · 6 comments

Comments

@golddranks
Copy link

golddranks commented Feb 19, 2017

Not sure if this belongs in the Rust repo issues or here, but anyway.
When building with nightly-2017-02-19 (on a Linux host) and with target x86_64-unknown-linux-musl, the error message is as following:

  = note: /usr/bin/ld: /root/.rustup/toolchains/nightly-2017-02-19-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-95af4192ed69a1c8.rlib(exit.lo): unrecognized relocation (0x2a) in section `.text.libc_exit_fini'
          /usr/bin/ld: final link failed: Bad value
          collect2: error: ld returned 1 exit status

With nightly-2017-02-13 it builds without problems.

@BurntSushi
Copy link
Member

I've also recently been seeing weird things, although it's not the same error message, so I'm not sure if it's related:

  = note: /usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.22 internal error, aborting at ../../bfd/reloc.c line 443 in bfd_get_reloc_size
          
          /usr/bin/ld: Please report this bug.
          
          collect2: ld returned 1 exit status

See: https://travis-ci.org/BurntSushi/ripgrep/jobs/203183624

@golddranks
Copy link
Author

Trying to pinpoint which nightly breaks it. 2016-02-17 has this error too. Trying 2016-02-16 ATM.

@golddranks
Copy link
Author

So, nightly-2017-02-16 installed - rustc 1.17.0-nightly (62eb6056d 2017-02-15) breaks too. 2017-02-15 and 2017-02-14 don't have releases, so that makes nightly-2017-02-13 installed - rustc 1.17.0-nightly (956e2bcba 2017-02-12) the last working release.

@golddranks
Copy link
Author

golddranks commented Feb 20, 2017

Here's a minified, dockerized regression test that doesn't compile. (Try with docker build .) https://github.com/golddranks/libc_regression_test/ The README claims that libc is tested against x86_64-unknown-linux-musl but maybe that's not the nightlies? Because I'm unable to find such a test, checked the Travis suite. Edit: Yeah, apparently the musl is tested only on stable.

@alexcrichton
Copy link
Member

I believe this is not the fault of libc itself, but rather the way we distribute binaries, so closing in favor of rust-lang/rust#39979

(I'll investigate soon)

@BurntSushi
Copy link
Member

Thanks @alexcrichton :-)

danielverkamp pushed a commit to danielverkamp/libc that referenced this issue Apr 28, 2020
* Add few ARM DSP Intrinsics

- Signed saturating add/sub
- Saturating four 8-bit integer add/sub
- Saturating two 8-bit integer add/sub

The intent is mainly to setup the module and to add all
the rest in the future.

Listed intrinsics are available on Cortex-M too (+dsp is required
on some model except for M4).

* Arm DSP: rebase and remove portable vector types

Rebase everything on top of master since the portable vector types
have been removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants