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

Debian arm64 compile runs into "unable to figure out byte order" #39

Open
SmithReid opened this issue May 16, 2022 · 1 comment
Open

Comments

@SmithReid
Copy link

After running the make command.

After composing most of this issue, I tested on an x86 machine with success, and that would satisfy my use case, but the world is going more towards arm64

Honestly, with my limited level of competence with CMake et all, title is most of what I can provide at this time. But I have done all the googling I can. Please let me know if I can elaborate.

[ 31%] Building CXX object source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/dng_1d_function.cpp.o
In file included from /home/reid/code/gpr/source/lib/dng_sdk/dng_types.h:21,
                 from /home/reid/code/gpr/source/lib/dng_sdk/dng_1d_function.h:26,
                 from /home/reid/code/gpr/source/lib/dng_sdk/dng_1d_function.cpp:16:
/home/reid/code/gpr/source/lib/dng_sdk/dng_flags.h:145:2: error: #error Unable to figure out byte order.
 #error Unable to figure out byte order.
  ^~~~~
make[2]: *** [source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/build.make:63: source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/dng_1d_function.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:429: source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/all] Error 2
make: *** [Makefile:84: all] Error 2```
@SergioCRustik
Copy link

SergioCRustik commented Apr 25, 2023

Hi, I have the same issue when compile:

Scanning dependencies of target dng_sdk
[ 31%] Building CXX object source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/dng_1d_function.cpp.o
In file included from /gpr/source/lib/dng_sdk/dng_types.h:21:0,
                 from /gpr/source/lib/dng_sdk/dng_1d_function.h:26,
                 from /gpr/source/lib/dng_sdk/dng_1d_function.cpp:16:
/gpr/source/lib/dng_sdk/dng_flags.h:145:2: error: #error Unable to figure out byte order.
 #error Unable to figure out byte order.
  ^~~~~
make[2]: *** [source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/dng_1d_function.cpp.o] Error 1
make[1]: *** [source/lib/dng_sdk/CMakeFiles/dng_sdk.dir/all] Error 2
make: *** [all] Error 2

I'm using this OS:

NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
VARIANT_ID="202304141149-2.0.1065.0"

Did you find any solution by this?
Thanks!

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

No branches or pull requests

2 participants