Skip to content

Conversation

@ClausKlein
Copy link
Collaborator

@ClausKlein ClausKlein commented Jan 28, 2026

  • disable CI test with clang++ and libstd++!
  • use GenerateExportHeader.cmake
  • clang++ on linux with Release builds only?
    In file included from /usr/share/libc++/v1/std.cppm:229:
    /usr/share/libc++/v1/std/cstdio.inc:24:14: error: using declaration referring to 'fprintf' with internal linkage cannot be exported

Comment on lines +4 to +7
// FIXME: does not compile with g++-15 on OSX! CK
#if defined(__APPLE__) && defined(__GNUC__)
#undef BEMAN_HAS_IMPORT_STD
#endif
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dietmarkuehl Note this!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. This is a limitation we can hopefully fix in the future.

@ClausKlein ClausKlein mentioned this pull request Jan 28, 2026
5 tasks
Comment on lines +4 to +7
// FIXME: does not compile with g++-15 on OSX! CK
#if defined(__APPLE__) && defined(__GNUC__)
#undef BEMAN_HAS_IMPORT_STD
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. This is a limitation we can hopefully fix in the future.

Comment on lines +58 to +60
# XXX export CMAKE_CXX_STDLIB_MODULES_JSON=${GCC_DIR}/lib/gcc/current/libstdc++.modules.json
export CXX=g++-15
export CXXFLAGS=-stdlib=libstdc++
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to find an arrangement for these: I don't have g++ on my OSX systems because they are ARM based. I believe these two lines set the compiler and flags in a way which I also can't override, e.g., using environment variables.

@dietmarkuehl
Copy link
Member

There seem to be some CI failures for clang versions 19 and 20 when using libc++. I'll land the PR onto the branch and try to fix/avoid them before landing to main.

@dietmarkuehl dietmarkuehl merged commit f9d198c into bemanproject:mk-module Jan 28, 2026
25 of 30 checks passed
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