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

linux static release build fails #3037

Open
paulcadman opened this issue Sep 13, 2024 · 0 comments
Open

linux static release build fails #3037

paulcadman opened this issue Sep 13, 2024 · 0 comments

Comments

@paulcadman
Copy link
Collaborator

After the update to GHC 9.10.1 in:

We updated the linux static build workflow that's used to build the linux binary release.

However the linux static build fails:

https://github.com/anoma/juvix/actions/runs/10852415273

The dependency text fails with:

text                         > In file included from /usr/include/c++/13.2.1/cstring:42,
text                         >                  from simdutf/simdutf.h:7,
text                         >                  /tmp/stack-f4da676a69f752ea/text-2.1.1/from simdutf/simdutf.cpp:4:0: error: 
text                         > 
text                         > /usr/include/fortify/string.h: In function 'size_t simdutf::scalar::{anonymous}::utf16_to_utf8::convert_valid(const char16_t*, size_t, char*)':
text                         > /usr/include/fortify/string.h:40:27: error:
text                         >      error: inlining failed in call to 'always_inline' 'void* memcpy(void*, const void*, size_t)': target specific option mismatch
text                         >        40 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od,
text                         >           |                           ^~~~~~
text                         >    |
text                         > 40 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od,
text                         >    |                           ^
text                         > 
text                         > /tmp/stack-f4da676a69f752ea/text-2.1.1/simdutf/simdutf.cpp:8578:15: error:
text                         >      note: called from here
text                         >      8578 |       ::memcpy(&v, data + pos, sizeof(uint64_t));
text                         >           |       ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
text                         >      |
text                         > 8578 |       ::memcpy(&v, data + pos, sizeof(uint64_t));
text                         >      |               ^
text                         > 
text                         > `g++' failed in phase `C++ Compiler'. (Exit code: 1)

Perhaps the version of gcc shipped with the alpine container we use for the static build is not compatible? I'll need to investigate.

Impact

We cannot make static release binaries for linux until this is fixed.

@paulcadman paulcadman added this to the 0.6.7 milestone Sep 13, 2024
paulcadman added a commit that referenced this issue Sep 19, 2024
We cannot build linux static binaries with GHC 9.10.1:

* #3037

This PR reverts the GHC update to unblock Juvix releases / nightly
releases. We can try the update again when stackage nightly updates to
GHC 9.10.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant