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

pkgsStatic.gcc fails to compile #111882

Closed
Atemu opened this issue Feb 4, 2021 · 10 comments
Closed

pkgsStatic.gcc fails to compile #111882

Atemu opened this issue Feb 4, 2021 · 10 comments
Labels

Comments

@Atemu
Copy link
Member

Atemu commented Feb 4, 2021

Describe the bug
A clear and concise description of what the bug is.

nix build -L nixpkgs.pkgsStatic.gcc

https://gist.github.com/Atemu/dbc748ef0cdee57e9ca0dafe74665784

Additional context
Add any other context about the problem here.

Also broken on 20.09, 20.03 and even 19.09.

I was trying to build pkgsStatic.borgbackup and gcc seems to be a dependency via gdb.

Related but probably separate issue: #88956

Notify maintainers

@NixOS/exotic-platform-maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@Atemu Atemu added the 0.kind: bug Something is broken label Feb 4, 2021
@hmenke
Copy link
Member

hmenke commented Feb 6, 2021

Just for reference, this is the error message:

/nix/store/bxx7jx267kcglgf33gdmljp63w9bi5w9-x86_64-unknown-linux-musl-binutils-2.35.1/bin/x86_64-unknown-linux-musl-ld: /nix/store/6smsyg3nwd8wvpdn778dkvx3k45vsjss-x86_64-unknown-linux-musl-stage-final-gcc-10.2.0/lib/gcc/x86_64-unknown-linux-musl/10.2.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
/nix/store/bxx7jx267kcglgf33gdmljp63w9bi5w9-x86_64-unknown-linux-musl-binutils-2.35.1/bin/x86_64-unknown-linux-musl-ld: /nix/store/6smsyg3nwd8wvpdn778dkvx3k45vsjss-x86_64-unknown-linux-musl-stage-final-gcc-10.2.0/lib/gcc/x86_64-unknown-linux-musl/10.2.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC

@aaronjanse
Copy link
Member

aaronjanse commented Feb 12, 2021

Oh man, it's at the end of the build. Thank you for the logs and reproducible command. Since this affects Redox, I might take a look this weekend, although I don't expect to figure anything out EDIT: Clearly I didn't get to doing this :-/

@ehmry
Copy link
Contributor

ehmry commented Feb 14, 2021

#112939 - related?

@Mic92
Copy link
Member

Mic92 commented Mar 7, 2021

Still an issue?

@Atemu
Copy link
Member Author

Atemu commented Mar 7, 2021

I'm not aware of anything that would've fixed this but I'l build it again to make sure.

This has been broken for as long as I have used Nix I think.

@Atemu
Copy link
Member Author

Atemu commented Mar 7, 2021

Yup, still broken :/

@Pamplemousse
Copy link
Member

Pamplemousse commented Aug 11, 2021

This is still an issue; Encountered when trying to build pkgsStatic.capstone on 21.05.

@Ericson2314
Copy link
Member

Ericson2314 commented Aug 17, 2021

#132343 should help, I hope.

@nioncode
Copy link
Member

I'm facing the same error messages in #160756, which might be caused by the same problem. Did you find any solution to this?

@Artturin
Copy link
Member

pkgsStatic.gcc builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants