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

Fix mips64le build errors #311

Merged
merged 2 commits into from Jan 5, 2024
Merged

Fix mips64le build errors #311

merged 2 commits into from Jan 5, 2024

Conversation

yosifkit
Copy link
Member

@yosifkit yosifkit commented Jan 5, 2024

The mips64le gosu binary from Debian bookworm packages fails to run with this error:

fatal error: AllThreadsSyscall6 results differ between threads; runtime corrupted

aka: golang/go#56426. See also tianon/gosu#121

This also adds libxml2-dev and libxslt-dev to fix the nokogiri gem on architectures where there isn't a native gem (like mips64le) and nokogiri attempts to build its own vendored versions of them. The two lib packages and deps will be correctly kept or purged by the apt-mark dance.

Building Nokogiri with a packaged version of libxml2-2.11.6.
Configuration options: --host\=mips64el-unknown-linux-abi64 --enable-static
--disable-shared
--libdir\=/usr/local/bundle/gems/nokogiri-1.15.5/ports/mips64el-linux-abi64/libxml2/2.11.6/lib
--with-iconv\=yes --disable-dependency-tracking --without-python
--without-readline --with-c14n --with-debug --with-threads --disable-shared
--enable-static CPPFLAGS\= CFLAGS\=-O2\ -U_FORTIFY_SOURCE\ -g\ -fPIC
...
Running 'configure' for libxml2 2.11.6... ERROR. Please review logs to see what
happened:
----- contents of
'/usr/local/bundle/gems/nokogiri-1.15.5/ext/nokogiri/tmp/mips64el-unknown-linux-abi64/ports/libxml2/2.11.6/configure.log'
-----
checking build system type... mips64el-unknown-linux-gnuabi64
checking host system type... Invalid configuration
`mips64el-unknown-linux-abi64': OS `abi64' not recognized

The `mips64le` `gosu` binary from Debian bookworm packages fails to run with this error:
fatal error: AllThreadsSyscall6 results differ between threads; runtime corrupted
@tianon tianon merged commit 0b2d09d into docker-library:master Jan 5, 2024
5 checks passed
@tianon tianon deleted the mips branch January 5, 2024 23:37
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jan 5, 2024
Changes:

- docker-library/redmine@0b2d09d: Merge pull request docker-library/redmine#311 from infosiftr/mips
- docker-library/redmine@9f8737b: fix nokogiri install on mips64le by using system libraries instead of gem-provided ones
- docker-library/redmine@27ae7a1: install gosu from github to fix crash on mips64le
martin-g pushed a commit to martin-g/docker-official-images that referenced this pull request Apr 3, 2024
Changes:

- docker-library/redmine@0b2d09d: Merge pull request docker-library/redmine#311 from infosiftr/mips
- docker-library/redmine@9f8737b: fix nokogiri install on mips64le by using system libraries instead of gem-provided ones
- docker-library/redmine@27ae7a1: install gosu from github to fix crash on mips64le
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