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

Chrome OS 72 has glibc 2.27 #2890

Closed
bsiegert opened this issue Nov 23, 2018 · 15 comments
Closed

Chrome OS 72 has glibc 2.27 #2890

bsiegert opened this issue Nov 23, 2018 · 15 comments
Labels
aarch64 Issues having to do with Chromebrew on 64 bit ARM computers armv7l Issues having to do with Chromebrew on 32 bit ARM computers bug 🐛 Bugs with Chromebrew itself x86_64 Issues having to do with Chromebrew on 64 bit x86 computers

Comments

@bsiegert
Copy link

Description

I am on dev channel. The glibc package (installed from binary, as part of the default install) contains dangling symlinks to system libs, because Chrome OS itself is now on glibc 2.27. Compiling anything thus fails with

$ gcc -o foo foo.c
/usr/local/bin/ld: cannot find /usr/local/lib64/libc.so.6
/usr/local/bin/ld: cannot find /usr/local/lib64/ld-linux-x86-64.so.2
collect2: error: ld returned 1 exit status
$ ls -l /usr/local/lib64/libc.so.6
lrwxrwxrwx. 1 chronos chronos 12 Jun 25 02:32 /usr/local/lib64/libc.so.6 -> libc-2.23.so
$ ls -l /usr/local/lib64/libc-2.23.so
lrwxrwxrwx. 1 chronos chronos 19 Jun 25 02:32 /usr/local/lib64/libc-2.23.so -> /lib64/libc-2.23.so
$ ls /lib64/libc-*.so
/lib64/libc-2.27.so

Maybe it is in fat time to use glibc 2.27, as suggested in #2885?

Versions and system information

glibc version 2.23

chromebrew: 1.0.4

ChromeOS:

CHROMEOS_RELEASE_BUILDER_PATH=caroline-release/R72-11264.0.0          
CHROMEOS_RELEASE_BUILD_NUMBER=11264                                   
CHROMEOS_RELEASE_BUILD_TYPE=Official Build                            
CHROMEOS_RELEASE_CHROME_MILESTONE=72                                  
CHROMEOS_RELEASE_DESCRIPTION=11264.0.0 (Official Build) dev-channel caroline

Model: Samsung Chromebook Pro

Architecture: x86_64

@uberhacker
Copy link
Collaborator

Thank you for the heads up @bsiegert. We will cross this bridge once 72 becomes the stable release.

@uberhacker uberhacker added bug 🐛 Bugs with Chromebrew itself aarch64 Issues having to do with Chromebrew on 64 bit ARM computers x86_64 Issues having to do with Chromebrew on 64 bit x86 computers armv7l Issues having to do with Chromebrew on 32 bit ARM computers labels Nov 23, 2018
@JL2210
Copy link
Contributor

JL2210 commented Nov 26, 2018

This is great! After we make this update, the cross script can finally be perfected and will work!

@JL2210
Copy link
Contributor

JL2210 commented Nov 27, 2018

I tried this before, back when glibc 2.23 gave segfaults. It didn't work. However, if this is the new system
C library, it most likely will.

@bsiegert
Copy link
Author

bsiegert commented Dec 5, 2018

In the meantime: Is there a way I could rebuild glibc-2.23 from source (thus, without the symlinks) but not remove the installed glibc package before?

@JL2210
Copy link
Contributor

JL2210 commented Dec 6, 2018

@sajjaadf Doesn't work yet. @bsiegert wget https://ftp.gnu.org/gnu/libc/glibc-2.27.tar.xz
NOT SUPPORTED!

@JL2210
Copy link
Contributor

JL2210 commented Dec 7, 2018

@sajjaadf @bsiegert If you intend to do anything with Chromebrew, you need to revert to the stable channel. The stable channel is the only supported channel.

@blu
Copy link

blu commented Jan 12, 2019

Just a heads-up: r72 has landed on the beta channel, bringing along the same problem.

In the meantime, a workaround allowing the use of crew's current gcc7 and clang packages on r72:

  1. fix all links under /usr/local/lib that originally point to /lib/*-2.23 versions to point to /lib/*-2.27 versions
  2. when building via gcc or clang, pass /lib/ld-2.27.so as a link dependency

@uberhacker
Copy link
Collaborator

uberhacker commented Jan 12, 2019

@blu: Thanks for the heads-up. We have that issue addressed. @skiman6010 has confirmed the problem is resolved after a glibc 2.27 update.

@JL2210
Copy link
Contributor

JL2210 commented Jan 12, 2019

Sorry about that. I was on my email, and didn't see the edit you made.

@JL2210
Copy link
Contributor

JL2210 commented Jan 12, 2019

@blu Check the update-glibc-2.23-2.27 branch on @uberhacker's fork of Chromebrew.
How's Wayland development going?

@blu
Copy link

blu commented Jan 12, 2019

@JL2210 Thanks, will do! Wayland's on the backburner ATM, hopefully I'll kick back into it full swing in a couple of weeks.

@nealey
Copy link

nealey commented Feb 18, 2019

Chrome 72 is now stable: I'm on the stable channel and just hit a bunch of dangling symlinks.

@blu
Copy link

blu commented Feb 20, 2019

Chrome 72 is now stable: I'm on the stable channel and just hit a bunch of dangling symlinks.

This is normal for r72 and current crew. It can be addressed as described here: #2890 (comment)

@nealey
Copy link

nealey commented Feb 20, 2019

Thank you. This comment prompted me to update the issue:

We will cross this bridge once 72 becomes the stable release.

It is now time to cross the bridge.

@nealey
Copy link

nealey commented Feb 28, 2019

This issue appears to have been resolved recently. I can't close the issue but that may be appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aarch64 Issues having to do with Chromebrew on 64 bit ARM computers armv7l Issues having to do with Chromebrew on 32 bit ARM computers bug 🐛 Bugs with Chromebrew itself x86_64 Issues having to do with Chromebrew on 64 bit x86 computers
Projects
None yet
Development

No branches or pull requests

5 participants