Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Don't link libtinfo #539

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Don't link libtinfo #539

merged 1 commit into from
Jun 12, 2019

Conversation

kripken
Copy link
Member

@kripken kripken commented Jun 12, 2019

This may prevent nice colors in the output, but I didn't see that in my local testing (there's no error checking for those flags, though, so not sure I did it right).

Fixes emscripten-core/emsdk#252

@kripken kripken requested a review from dschuff June 12, 2019 20:02
@kripken kripken changed the title Don't link libtinfo; fixes #252 Don't link libtinfo; fixes https://github.com/emscripten-core/emsdk/issues/252 Jun 12, 2019
@kripken kripken changed the title Don't link libtinfo; fixes https://github.com/emscripten-core/emsdk/issues/252 Don't link libtinfo Jun 12, 2019
@kripken kripken merged commit 6ecbbca into master Jun 12, 2019
@kripken kripken deleted the notinfo branch June 12, 2019 22:56
kripken added a commit that referenced this pull request Jun 13, 2019
As not having it removes colors on some systems. Oddly on one machine I didn't see this, but testing on another, I do - all the colors are gone.

The eventual solution may be to statically link libtinfo. Meanwhile with it we get errors on some linuxes but proper colors, and without it we avoid linux errors but have no colors. With this PR at least the loss of colors is just on linux.

See

emscripten-core/emsdk#252

#539

#540
@sbc100
Copy link
Member

sbc100 commented Jun 20, 2019

This seems like fixing one symtom, but the real problem is that we building against out system libraries on our build machine, which means we can end up requiring any libraries from that particular linux release.

At a minimum we should track the minimum requirements of the SDK binaries. Ideally we'd build against a specific sysroot from a fixes linux version, but that might be overkill.

@dschuff
Copy link
Member

dschuff commented Jun 20, 2019

I do think building in a sysroot (e.g. the Chrome sysroot) does make sense, but it doesn't necessarily solve all the problems. For example at least one of the users' issues was that their version of libtinfo was too new (i.e. it didn't have backwards compatibility like libc does). So statically linking some of the libraries could still help independently of building in a sysroot.

sbc100 added a commit to emscripten-core/emscripten that referenced this pull request May 18, 2020
We don't depend on tinfo as of:
 WebAssembly/waterfall#539
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request May 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants