[cfe-dev] Modules TS: binary module interface dependencies

Boris Kolpackov via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 30 01:40:36 PDT 2017


Richard Smith <richard at metafoo.co.uk> writes:

> Do you by any chance have steps to reproduce this?

This is with 5.0.0-svn305177-1~exp1 (trunk):

mkdir /tmp/test
cd /tmp/test

cat >core.mxx <<EOF
export module core;
export void f ();
EOF

cat >extra.mxx <<EOF
export module extra;
import core;
EOF

cat >driver.cxx <<EOF
import extra;
int main () {}
EOF

clang++-5.0 -std=c++1z -fmodules-ts -o core.pcm --precompile -Xclang -fmodules-embed-all-files -Xclang -fmodules-codegen -Xclang -fmodules-debuginfo -x c++-module core.mxx
clang++-5.0 -std=c++1z -fmodules-ts -fmodule-file=core.pcm -o extra.pcm --precompile -Xclang -fmodules-embed-all-files -Xclang -fmodules-codegen -Xclang -fmodules-debuginfo -x c++-module extra.mxx
clang++-5.0 -std=c++1z -fmodules-ts -fmodule-file=extra.pcm -o driver.o -c driver.cxx

cd ..
mv test ~/
cd ~/test

clang++-5.0 -std=c++1z -fmodules-ts -fmodule-file=extra.pcm -o driver.o -c driver.cxx
fatal error: module file '/tmp/test/core.pcm' not found: module file not found
note: imported by module 'extra' in 'extra.pcm'



More information about the cfe-dev mailing list