public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC Module mapper (file based)
@ 2023-11-30 13:55 Arthur Laurent
  0 siblings, 0 replies; only message in thread
From: Arthur Laurent @ 2023-11-30 13:55 UTC (permalink / raw)
  To: gcc-help

Hello, i'm a XMake contributor and i'm trying to improve our GCC 
modulemap support

i'm currently facing an issue with the path handling (i think so) of 
headerunits, i don't know if i did anything wrong

i'm generating a modulemap file like

```
root F:/repos/xmake/tests/projects/c++/modules/user_headerunit

F:/repos/xmake/tests/projects/c++/modules/user_headerunit/src/header.hpp 
build/.gens/user_headerunit/mingw/x86_64/release/rules/bmi/cache/headerunits/header.hpp.gcm

```

but when i supply this modulemap file to gcc to build the headerunit i'm 
getting:

```

x86_64-w64-mingw32-g++ -c -m64 -std=c++20 -fmodules-ts 
-D_GLIBCXX_USE_CXX11_ABI=0 
-IF:\repos\xmake\tests\projects\c++\modules\user_headerunit\src 
-fmodule-mapper=F:\msys64\tmp\.xmake\231130\modulemap.txt 
-fmodule-header=user -fmodule-only -xc++-header -c -o 
build\.gens\user_headerunit\mingw\x86_64\release\rules\bmi\cache\headerunits\header.hpp.gcm 
header.hpp

F:\repos\xmake\tests\projects\c++\modules\user_headerunit\src/header.hpp: 
error: unknown Compiled Module Interface: no such module

F:\repos\xmake\tests\projects\c++\modules\user_headerunit\src/header.hpp:5: 
confused by earlier errors, bailing out

```

any idea on how to fix this ?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-30 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-30 13:55 GCC Module mapper (file based) Arthur Laurent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).