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

rareqs: linux needs a new bottle (glibc broken) #18

Closed
wants to merge 4 commits into from

Conversation

maelvls
Copy link
Member

@maelvls maelvls commented Aug 1, 2018

The errors on qute and rareqs looked like:

/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute)

After some digging, I found out that this issue is related to the change of C++ ABI (from gcc 4.8.x to >=5.1 which has dual-ABI stuff, the problem with this is documented on SO).

The Travis CI Ubuntu trusty image says it has glibc 2.19. It is the minimum requirement for installing bottles using linuxbrew as of July 2018. Here is the glibc version on the travis image:

travis@12c27ad0d2d7:/$ ldd --version
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.13) 2.19
Copyright (C) 2014 Free Software Foundation, Inc.

Recently, all the libraries in Linuxbrew have been rebuilt using the newer C++ ABI (using gcc >= 5.1). In my case, system gcc has version 4.8.4. Which means whenever I want to build anything linking to glibcxx.so, I will have to do it using gcc5...

And the workaround for now is to use the needs :cxx11 which will force the use of gcc >= 5 and that will also install glibc.

So I enabled building using cxx11 standard.

@maelvls maelvls force-pushed the fix-rareqs-glibc-linux branch 2 times, most recently from 19e0008 to d226ccd Compare August 27, 2018 11:59
Error in https://travis-ci.org/touist/homebrew-touist/jobs/407677741:

Testing rareqs
==> /home/linuxbrew/.linuxbrew/Cellar/rareqs/1.1_1/bin/rareqs /tmp/rareqs-test-20180724-10453-iz6f8r/test.dimacs
/home/linuxbrew/.linuxbrew/Cellar/rareqs/1.1_1/bin/rareqs: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/linuxbrew/.linuxbrew/Cellar/rareqs/1.1_1/bin/rareqs)
/home/linuxbrew/.linuxbrew/Cellar/rareqs/1.1_1/bin/rareqs: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/Cellar/rareqs/1.1_1/bin/rareqs)
Error: rareqs: failed
<10> expected but was
<1>.
In TravisCI build https://travis-ci.org/touist/homebrew-touist/jobs/407677741:

Testing qute
==> /home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute /tmp/qute-test-20180724-10419-1kta43j/test.dimacs
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_program_options-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_program_options-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_thread-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_log-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_log-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_system-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_chrono-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_date_time-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_log_setup-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_log_setup-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_filesystem-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_filesystem-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_filesystem-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_regex-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_regex-mt.so.1.67.0)
/home/linuxbrew/.linuxbrew/Cellar/qute/0.0.1_3/bin/qute: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/linuxbrew/.linuxbrew/lib/libboost_regex-mt.so.1.67.0)
Error: qute: failed
<10> expected but was
<1>.
@maelvls maelvls force-pushed the fix-rareqs-glibc-linux branch 2 times, most recently from ba3768b to 8cf1c32 Compare August 27, 2018 16:39
@maelvls maelvls force-pushed the fix-rareqs-glibc-linux branch from 8cf1c32 to c8b8d8d Compare August 27, 2018 17:16
travis@6c4e31338e1e:/$ brew linkage rareqs
Undeclared dependencies with linkage:
  zlib
@maelvls maelvls closed this in b860873 Aug 30, 2018
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.

1 participant