8000 Fix endianness issue in AIX by ayappanec · Pull Request #797 · hacl-star/hacl-star · GitHub
[go: up one dir, main page]

Skip to content

Fix endianness issue in AIX #797

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

Closed
wants to merge 1 commit into from

Conversation

ayappanec
Copy link

AIX (always a big-endian) doesn't have __BYTE_ORDER__ defined in any of its header files. GCC for this reason defines __BYTE_ORDER__ in its own header files for AIX. But with XLC compiler, it's not the case.
The issue is exposed while compiling the latest python --> python/cpython#102206

@ayappanec ayappanec requested a review from a team as a code owner April 3, 2023 09:51
@msprotz
Copy link
Contributor
msprotz commented Apr 3, 2023

Thanks for the good catch!

This file comes from an upstream project. Can you submit a PR for this file? https://github.com/FStarLang/karamel/blob/master/include/krml/lowstar_endianness.h I'll approve it immediately and then we can make it trickle down to hacl-star.

Thanks so much!

@ayappanec
Copy link
Author
ayappanec commented Apr 4, 2023

Thanks for the good catch!

This file comes from an upstream project. Can you submit a PR for this file? https://github.com/FStarLang/karamel/blob/master/include/krml/lowstar_endianness.h I'll approve it immediately and then we can make it trickle down to hacl-star.

Thanks so much!

I just created a PR in the upstream project. FStarLang/karamel#340

@msprotz
Copy link
Contributor
msprotz commented Apr 4, 2023

Fixed upstream.

6341
@msprotz msprotz closed this Apr 4, 2023
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.

2 participants
0