-
Hello all. I am attempting to build on a raspberry pi 5, but I'm getting the following error. I'm not too savvy on debugging build errors, so hoping someone can help. I have removed the build directory and started over. It always fails at the same spot. user@pym-lab:~/FFXI/server/build $ make -j $(nproc) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Try this: export CC=/usr/bin/gcc-14
export CXX=/usr/bin/g++-14
sed -i 's/if ((c >= 0 && c <= 0x20) || c >= 0x7F)/if (!std::isprint(static_cast<unsigned char>(c)))/' src/map/lua/luautils.cpp
if [ $(uname -p) = "x86_64" ]; then CFLAGS=-m64 CXXFLAGS=-m64 LDFLAGS=-m64 cmake -S . -B build ; fi
if [ $(uname -p) = "aarch64" ]; then cmake -S . -B build ; fi It's all Arm64 from what I've seen. I'm guessing GCC or the compilers on Arm64 don't appreciate unsigned chars. |
Beta Was this translation helpful? Give feedback.
-
I refactored that condition out of the code so you should be able to compile past it, but I don't have any guarantees you won't hit another snag: #6973 |
Beta Was this translation helpful? Give feedback.
-
Appreciate the refactor. I was able to solve this the right way and the wrong way. @melinko2003 's sed command was successful, but before that response I was able to compile the server by adding the following option: cmake -DCMAKE_CXX_FLAGS="-Wno-error=type-limits" .. Don't do that. Fix the error. Thanks folks. |
Beta Was this translation helpful? Give feedback.
I refactored that condition out of the code so you should be able to compile past it, but I don't have any guarantees you won't hit another snag: #6973