From hjansen.iv at protonmail.com Sat Jul 24 09:19:23 2021 From: hjansen.iv at protonmail.com (hjansen.iv) Date: Sat, 24 Jul 2021 09:19:23 +0000 Subject: [build2] Problems running the `cxx20-modules-examples` In-Reply-To: References: Message-ID: Hi, > I have problems running the `cxx20-modules-examples` suite with most recent versions of `build2` and `g++`. Versions used: > - `build2` compiled from `build2-toolchain-0.14.0-a.0.20210723090032.7b265698fe4e.tar.xz` with `g++-11` compiler. > - using `g++` 2021-07-23 master snapshot for compiling the `cxx20-modules-examples` suite. > > These are the respective commands: >> git clone https://github.com/build2/cxx20-modules-examples.git > Cloning into 'cxx20-modules-examples'... > remote: Enumerating objects: 394, done. > remote: Counting objects: 100% (394/394), done. > remote: Compressing objects: 100% (250/250), done. > remote: Total 394 (delta 195), reused 335 (delta 136), pack-reused 0 > Receiving objects: 100% (394/394), 41.52 KiB | 1.04 MiB/s, done. > Resolving deltas: 100% (195/195), done. >> cd cxx20-modules-examples >> PATH=~/Software/inst/gcc/20210723/bin/:$PATH bdep init -C @gcc cc config.cxx=g++ config.cxx.translate_include=all-importable > initializing in project /home/hjansen/Software/src/build-systems/build2/test/modules/cxx20-modules-examples/ > created configuration @gcc /home/hjansen/Software/src/build-systems/build2/test/modules/cxx20-modules-examples-gcc/ 1 target default,forwarded,auto-synchronized > initializing package hello-module > initializing package hello-partition > initializing package hello-header-import > initializing package hello-header-translate > initializing package libhello-format-module > initializing package libhello-module > initializing package hello-library-module > initializing package libhello-format-header > initializing package libhello-header > initializing package hello-library-header-import > initializing package hello-library-header-translate > initializing package libhello-utility-module > initializing package hello-utility-library-module > synchronizing: > new hello-module/0.1.0-a.0.20210705064719.d565af6b760a > new hello-partition/0.1.0-a.0.20210705064719.d565af6b760a > new hello-header-import/0.1.0-a.0.20210705064719.d565af6b760a > new hello-header-translate/0.1.0-a.0.20210705064719.d565af6b760a > new libhello-format-module/0.1.0-a.0.20210705064719.d565af6b760a > new libhello-module/0.1.0-a.0.20210705064719.d565af6b760a > new hello-library-module/0.1.0-a.0.20210705064719.d565af6b760a > new libhello-format-header/0.1.0-a.0.20210705064719.d565af6b760a > new libhello-header/0.1.0-a.0.20210705064719.d565af6b760a > new hello-library-header-import/0.1.0-a.0.20210705064719.d565af6b760a > new hello-library-header-translate/0.1.0-a.0.20210705064719.d565af6b760a > new libhello-utility-module/0.1.0-a.0.20210705064719.d565af6b760a > new hello-utility-library-module/0.1.0-a.0.20210705064719.d565af6b760a >>PATH=~/Software/inst/gcc/20210723/bin/:$PATH bdep update @gcc >& ../bdep.log > > Please find `bdep.log` attached. > > Any help welcome! Thanks in advance. > > Kind regards, > -- Henk > > Sent with [ProtonMail](https://protonmail.com/) Secure Email. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bdep.log Type: text/x-log Size: 60339 bytes Desc: not available URL: From boris at codesynthesis.com Sat Jul 24 15:14:47 2021 From: boris at codesynthesis.com (Boris Kolpackov) Date: Sat, 24 Jul 2021 17:14:47 +0200 Subject: [build2] Problems running the `cxx20-modules-examples` In-Reply-To: References: Message-ID: hjansen.iv via users writes: > - using `g++` 2021-07-23 master snapshot for compiling the > `cxx20-modules-examples` suite. > > c++ ../../../../../../inst/gcc/20210723/include/c++/12.0.0/h{iosfwd} > In file included from /home/hjansen/Software/inst/gcc/20210723/include/c++/12.0.0/bits/stl_iterator_base_types.h:71, > from /home/hjansen/Software/inst/gcc/20210723/include/c++/12.0.0/bits/stl_algobase.h:65, > from /home/hjansen/Software/inst/gcc/20210723/include/c++/12.0.0/bits/char_traits.h:39, > from /home/hjansen/Software/inst/gcc/20210723/include/c++/12.0.0/string_view:42: > /home/hjansen/Software/inst/gcc/20210723/include/c++/12.0.0/bits/iterator_concepts.h:34: internal compiler error: in set_filename, at cp/module.cc:19128 This appears to be a problem with GCC. The examples are know to mostly work with the 11.1 release but it looks like things have gotten broken since (which is not surprising since modules support is still in the state of flux). You can try to isolate the problem and report it to GCC but I wouldn't bother -- there are so many open bugs in modules support that it's most likely already reported. And if not, we can always report it closer to the release.