WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
40.06k stars 1.76k forks source link

[Bug] Undefined symbol building on Big Sur #1650

Open gtackett opened 2 months ago

gtackett commented 2 months ago

Operating System

MacOS

What's the issue you encountered?

Building with ninja install I'm getting an error that, apparently, open(char const*, unsigned int) is undefined for a reference from lib/external/libromfs/generator/source/main.cpp

$ ninja install
[45/516] Linking CXX executable plugins/fonts/libromfs/generator/generator-fonts
FAILED: plugins/fonts/libromfs/generator/generator-fonts
: && /usr/local/opt/llvm/bin/clang++ -Wall -Wextra -Wpedantic -Werror -Wno-unknown-warning-option -Wno-array-bounds -Wno-deprecated-declarations -Wno-unknown-pragmas  -fexceptions -frtti -O3 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=11.7 -Wl,-search_paths_first -Wl,-headerpad_max_install_names  plugins/fonts/libromfs/generator/CMakeFiles/generator-fonts.dir/source/main.cpp.o -o plugins/fonts/libromfs/generator/generator-fonts   && :
Undefined symbols for architecture x86_64:
  "std::__1::basic_filebuf<char, std::__1::char_traits<char> >::open(char const*, unsigned int)", referenced from:
      std::__1::basic_ofstream<char, std::__1::char_traits<char> >::basic_ofstream(char const*, unsigned int) in main.cpp.o
.
.
.

The "vertical ellipsis" indicates that I truncated the error messages at that point. I can post more if needed.

How can the issue be reproduced?

By following the standard procedure for building ImHex on MacOS, described in ImHex/dist/compiling/macos.md

ImHex Version

1.33.2

ImHex Build Type

Installation type

Built from latest release sources (not nightly)

Additional context?

No response