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

[build system]: Fix USE_SYSTEM_LIBM=1 build #37832

Merged
merged 2 commits into from Oct 14, 2020
Merged

Conversation

staticfloat
Copy link
Sponsor Member

@staticfloat staticfloat commented Oct 1, 2020

When we started preloading libm.so, we neglected to take into account
the name and location of libm.so when USE_SYSTEM_LIBM=1 is used.
This should fix it on all systems except for Ubuntu, which has an ld
linker script instead of an actual library for libm.so, which has
never worked.

@yuyichao this should fix the libm.so issues you were seeing on your build. I imagine we will need to do something for libgcc_s as well, as you said that you don't get a libgcc_so.so.1 copied into your $(JULIAHOME)/usr. That surprises me a little, as it means that there may be no compiler support libraries bundled with Julia, which means that contrib/fixup-libgfortran.sh probably isn't doing its job at all. This in turn means that the Julia build is entirely unportable; so not fatal, but certainly not the kind of build we like to create.

When we started preloading `libm.so`, we neglected to take into account
the name and location of `libm.so` when `USE_SYSTEM_LIBM=1` is used.
This should fix it on all systems except for Ubuntu, which has an `ld`
linker script instead of an actual library for `libm.so`, which has
never worked.
@staticfloat staticfloat merged commit a8d0968 into master Oct 14, 2020
@staticfloat staticfloat deleted the sf/use_system_libm branch October 14, 2020 22:10
@yuyichao
Copy link
Contributor

I imagine we will need to do something for libgcc_s as well

Note that this is still broken.

This in turn means that the Julia build is entirely unportable

That's the entire point of using system library.

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

Successfully merging this pull request may close these issues.

None yet

2 participants