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

cross-i686 compiler: keep sysroot /lib symlink #14401

Closed
wants to merge 2 commits into from

Conversation

sgn
Copy link
Member

@sgn sgn commented Sep 11, 2019

When packaging Firefox ESR 68.1.0 #14229 , and cross compile i686 from x86_64,
I received this complains:

0:06.67 DEBUG: | /usr/lib/gcc/i686-pc-linux-gnu/9.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6 inside /usr/i686-pc-linux-gnu
0:06.67 DEBUG: | /usr/lib/gcc/i686-pc-linux-gnu/9.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2 inside /usr/i686-pc-linux-gnu

I didn't run into this complain when packaging aarch64 from x86_64,
I have a different problem when packaging ppc64le from x86_64

firefox-esr 68.1.0 complains:

> 0:06.67 DEBUG: | /usr/lib/gcc/i686-pc-linux-gnu/9.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6 inside /usr/i686-pc-linux-gnu
> 0:06.67 DEBUG: | /usr/lib/gcc/i686-pc-linux-gnu/9.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2 inside /usr/i686-pc-linux-gnu
firefox-esr 68.1.0 complains:

> 0:06.67 DEBUG: | /usr/lib/gcc/i686-pc-linux-gnu/9.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6 inside /usr/i686-pc-linux-gnu
> 0:06.67 DEBUG: | /usr/lib/gcc/i686-pc-linux-gnu/9.2.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2 inside /usr/i686-pc-linux-gnu

[skip ci]
@sgn sgn mentioned this pull request Sep 11, 2019
6 tasks
@Piraty
Copy link
Member

Piraty commented Sep 11, 2019

(Unrelated to you actual PR)
You don't need to cross-compile from x86_64* to i686 and are better off using a masterdir with the desired arch instead:

./xbps-src -m masterdir-i686 binary-bootstrap i686
./xbps-src -m masterdir-i686 pkg foo

That's probably why nobody noticed before

@sgn
Copy link
Member Author

sgn commented Sep 11, 2019 via email

@Piraty Piraty self-assigned this Sep 13, 2019
@sgn
Copy link
Member Author

sgn commented Oct 2, 2019

Ping

@Piraty
Copy link
Member

Piraty commented Oct 3, 2019

I looked into it, but cannot reproduce so far. Crosscompiling various packages from an x86_64 masterdir to i686 didn't show anything unusual. firefox build ongoing though crossbuildung firefox to i686 fails, but for other reasons you posted.
Here's how to check

./xbps-src -m masterdir.pr14401 binary-bootstrap
./xbps-src -m masterdir.pr14401 -a i686 pkg foo

Can you please provide a command to show off the issue? Please use a fresh masterdir (-m) and a fresh hostdir (-H)

@sgn
Copy link
Member Author

sgn commented Oct 13, 2019

Weird, I can't reproduce the issue anymore.

@Johnnynator
Copy link
Member

xbps-src regenerates this symlink if it is missing, we have a inconsistency in our cross compiler packages, some have it removed some not, So this issue only crops up outside of xbps-src, inside it is probably a result of #14476

@sgn sgn closed this Dec 18, 2019
@sgn sgn deleted the cross-lib branch December 18, 2019 16:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants