Hi,
When we call emcc without an input file, we usually get a warning. I noticed that when I call emcc from a Makefile, I always get these errors, compilation does not stop but I get these "no input files" errors. Is that the expected behavior?
Is there something I can do to stop getting this error, or investigate more?
checking dynamic linker characteristics... shared:ERROR: no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
no
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... em++ -E
checking for ld used by em++... emcc
checking if the linker (emcc) is GNU ld... yes
shared:ERROR: no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.C', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
$ emcc -v
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.34
clang version 6.0.1 (
https://github.com/kripken/emscripten-fastcomp-clang.git ca75f5e8a424747b1e368ad6e94a4b4740dd28af) (
https://github.com/kripken/emscripten-fastcomp.git 2be857f52bb377de8cf7369acfc42a3b36bbd94d) (emscripten 1.38.32 : 1.38.32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: [...]/emsdk-portable/clang/fastcomp/build_incoming_64/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/8.3.0
Selected GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/8.3.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
shared:INFO: (Emscripten: Running sanity checks)
$ emcc
emcc:WARNING: no input files