Open jlqibm opened 1 year ago
v3.9.1 compiles successfully v3.10.0 fails I tracked down the commit causing the failure to:
`commit f8037660d06a0fbb6b1cde944d436032d04564ae FAILS Author: Niels Lohmann mail@nlohmann.me Date: Thu Jan 14 22:43:52 2021 +0100
:recycle: add iterator set_parent function
`
Description
The json.hpp header fails to build in a cross build environment. This is an ubuntu 22.04 docker container with darwin14 and MacOSX10.10 SDK. Clang is 1001@d82e6b7e292b:~$ /usr/x86_64-apple-darwin14/bin/../bin/o64-clang++-libc++ -v Ubuntu clang version 14.0.0-1ubuntu1 Target: x86_64-apple-darwin14 Thread model: posix InstalledDir: /usr/bin
Reproduction steps
I hit the issue with an osxcross docker container.
I compile the minimal code example as:
/usr/x86_64-apple-darwin14/bin/../bin/o64-clang++-libc++ -I/src/libcommon/3rd_party/json/include -o osxfail.o -c osxfail.C
This is clang14.
The same file compiles fine on rhel8.7 clang14.
I tried preprocessing the 2 files, then trimming down the json to try to track down the issue. The trimmed json is the same for both the linux and osx files. The only difference is the included header code. I can reproduce the error using the ubuntu clang14 compiler on the resulting preprocessed file.
Expected vs. actual results
It should compile :-)
Minimal code example
Error messages
Compiler and operating system
clang14 macosx 10.10
Library version
3.11.2
Validation
develop
branch is used.