Polygeist icon indicating copy to clipboard operation
Polygeist copied to clipboard

make[1]: *** No rule to make target 'install'. Stop. make: *** [Makefile:555: install-recursive] Error 1 CMake Error at tools/polymer/CMakeLists.txt:28 (execute_process): execute_process failed command indexes: 1: "Child return code: 2"

Open nyck33 opened this issue 1 year ago • 3 comments

Near the end of building Polygeist, well the cmake command, I get

Libraries have been installed in:
   /mnt/d/LLVM/NewPolygeistDir/build/pluto/install/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/mnt/d/LLVM/NewPolygeistDir/build/pluto/install/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c clan '/mnt/d/LLVM/NewPolygeistDir/build/pluto/install/bin'
libtool: install: /usr/bin/install -c .libs/clan /mnt/d/LLVM/NewPolygeistDir/build/pluto/install/bin/clan
make[4]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan'
make[3]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan'
Making install in doc
make[3]: Entering directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/doc'
make[4]: Entering directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/doc'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/doc'
make[3]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/doc'
Making install in tests
make[3]: Entering directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/tests'
make[4]: Entering directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/tests'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/tests'
make[3]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan/tests'
make[2]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan'
make[1]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/clan'
Making install in candl
make[1]: Entering directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/candl'
make[1]: Leaving directory '/mnt/d/LLVM/NewPolygeistDir/build/pluto/pluto/candl'
make[1]: *** No rule to make target 'install'.  Stop.
make: *** [Makefile:555: install-recursive] Error 1
CMake Error at tools/polymer/CMakeLists.txt:28 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 2"



-- Configuring incomplete, errors occurred!
See also "/mnt/d/LLVM/NewPolygeistDir/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/d/LLVM/NewPolygeistDir/build/CMakeFiles/CMakeError.log".
nyck33@lenovo-gtx1650:/mnt/d/LLVM/NewPolygeistDir/build$

What is this install? I see candl in three palces in the repo

image

Can I build Polymer on its own and add it in or is there a workaround for this on WSL2?

nyck33 avatar Apr 02 '24 14:04 nyck33

That execute_process script (tools/polymer/build_polymer_deps.sh) is a recent addition, and we have made it work for some of our machines, however, it is not very robust yet.

I have not encountered that issue specifically, I am sorry. You could try to run the script itself with the polymer dep build directory of your choice and try to debug it.

ivanradanov avatar Apr 03 '24 23:04 ivanradanov

For reference, I had the same error in my Ubuntu 24.04 x86_64 machine.

I tried running ./configure inside build/pluto/pluto/candl, and got this error:

configure: error: Please install texinfo.

I could build Polygeist after installing it by running:

sudo apt install texinfo

@ivanradanov It has been a while since your comment, and I'm not sure how the script works now, but I think ideally it should propagate the error message instead of simply saying:

make[1]: *** No rule to make target 'install'.  Stop.

byeongjee avatar May 10 '25 03:05 byeongjee