Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working #21

Open
jamespinkerton opened this issue Jun 14, 2023 · 0 comments
Open

Example not working #21

jamespinkerton opened this issue Jun 14, 2023 · 0 comments

Comments

@jamespinkerton
Copy link

Hi. I tried to follow the example on the website, and I got the following error. Any help would be greatly appreciated.

Generating code with CVXPYgen ...
CVXPYgen finished generating code.
Compiling python wrapper with CVXPYgen ...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /mnt/disks/condaman/mamba/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /mnt/disks/condaman/mamba/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Release' as none was specified.
-- Single precision floats (32bit) are OFF
-- Long integers (64bit) are OFF
-- COMPILER_OPTS = -DUSE_LAPACK -DCTRLC
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/james_c_pinkerton/src/california/nonneg_LS/c/build
[  0%] Building C object CMakeFiles/cpg.dir/src/cpg_workspace.c.o
[  3%] Building C object CMakeFiles/cpg.dir/src/cpg_solve.c.o
[  6%] Building C object CMakeFiles/cpg.dir/solver_code/src/aa.c.o
[ 10%] Building C object CMakeFiles/cpg.dir/solver_code/src/cones.c.o
[ 13%] Building C object CMakeFiles/cpg.dir/solver_code/src/ctrlc.c.o
[ 17%] Building C object CMakeFiles/cpg.dir/solver_code/src/linalg.c.o
[ 20%] Building C object CMakeFiles/cpg.dir/solver_code/src/normalize.c.o
[ 24%] Building C object CMakeFiles/cpg.dir/solver_code/src/rw.c.o
[ 27%] Building C object CMakeFiles/cpg.dir/solver_code/src/scs.c.o
[ 31%] Building C object CMakeFiles/cpg.dir/solver_code/src/scs_version.c.o
[ 34%] Building C object CMakeFiles/cpg.dir/solver_code/src/util.c.o
[ 37%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/csparse.c.o
[ 41%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/scs_matrix.c.o
[ 44%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/cpu/direct/private.c.o
[ 48%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/qdldl/qdldl.c.o
[ 51%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/SuiteSparse_config.c.o
[ 55%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_1.c.o
[ 58%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_2.c.o
[ 62%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_aat.c.o
[ 65%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_control.c.o
[ 68%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_defaults.c.o
[ 72%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_dump.c.o
[ 75%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_global.c.o
[ 79%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_info.c.o
[ 82%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_order.c.o
[ 86%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_post_tree.c.o
[ 89%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_postorder.c.o
[ 93%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_preprocess.c.o
[ 96%] Building C object CMakeFiles/cpg.dir/solver_code/linsys/external/amd/amd_valid.c.o
[100%] Linking C static library out/libcpg.a
Error running link command: No such file or directory
make[3]: *** [CMakeFiles/cpg.dir/build.make:546: out/libcpg.a] Error 2
make[2]: *** [CMakeFiles/Makefile2:131: CMakeFiles/cpg.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/cpg.dir/rule] Error 2
make: *** [Makefile:170: cpg] Error 2
/mnt/disks/condaman/mamba/compiler_compat/ld: cannot find /home/nonneg_LS/c/build/out/libcpg.a: No such file or directory
collect2: error: ld returned 1 exit status
error: command '/mnt/disks/condaman/mamba/bin/g++' failed with exit code 1
CVXPYgen finished compiling python wrapper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant