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

native-engine requires glibc 2.18, but Centos 7 only has 2.17 #5240

Closed
shanmugh opened this issue Dec 22, 2017 · 6 comments
Closed

native-engine requires glibc 2.18, but Centos 7 only has 2.17 #5240

shanmugh opened this issue Dec 22, 2017 · 6 comments
Labels

Comments

@shanmugh
Copy link

Similar to issue #4541 the release 1.4.0-dev23 also seems to have been built on a machine with GLIBC-2.18.

Exception message: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /tmp/tmpiUCwct/native_engine.so)
`
Can you update or release a version of pants.pantsbuild-.tar.gz with a GLIBC-2.17 native-engine.so?

Release containing the issue.

Thanks

@kwlzn
Copy link
Member

kwlzn commented Dec 22, 2017

have you tried 1.4.0.dev24? afaict, that contains #5202 switching to building the engine lib on centos6 which should resolve this.

@jordanly
Copy link

jordanly commented Jan 2, 2018

Piggy-backing on this issue.

Attempted to fix this issue by using 1.4.0.dev24 and ran into the following error:

13:16:19 Exception message: /tmp/tmp1qnaCO/native_engine.so: invalid ELF header
13:16:19 
13:16:19 Traceback (most recent call last):
13:16:19   File "/dev/fd/63", line 7, in <module>
13:16:19     
13:16:19   File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
13:16:19     **kw)
13:16:19   File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
13:16:19     return _default_decoder.decode(s)
13:16:19   File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
13:16:19     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
13:16:19   File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
13:16:19     raise ValueError("No JSON object could be decoded")
13:16:19 ValueError: No JSON object could be decoded

@stuhood stuhood added the bug label Jan 2, 2018
@stuhood
Copy link
Member

stuhood commented Jan 3, 2018

Discussed offline... it sounds like this is in reference to https://github.com/apache/aurora/blob/c85bffdd6f68312261697eee868d57069adda434/pants , which is a much older copy of the script recommended by https://www.pantsbuild.org/install.html ... possible that the source tarball of pants is being used rather than the whls.

If that's the case, then #4956 would come into play. Modern versions of pip would prefer the whls though, and not run into this.

@jordanly
Copy link

jordanly commented Jan 3, 2018

The issue was not with the pants install script but rather missing my wheels repository in some of my configs (I believe I had misconfigured pip find-links). This forced my project to use sdists. Switching from using the sdists to whls completely solved the problem. I was able to build successfully using both dev23 and dev24.

@stuhood
Copy link
Member

stuhood commented Jan 3, 2018

Ok, thanks!

@stuhood stuhood closed this as completed Jan 3, 2018
@shanmugh
Copy link
Author

shanmugh commented Jan 3, 2018

Thanks for the clarification @jordanly

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

4 participants