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

Compiling with gcc fails #5

Open
baerbock opened this issue Dec 15, 2018 · 4 comments
Open

Compiling with gcc fails #5

baerbock opened this issue Dec 15, 2018 · 4 comments

Comments

@baerbock
Copy link

I've prepared it with CC=gcc cmake .. -DCMAKE_INSTALL_PREFIX=/usr

[ 75%] Building C object CMakeFiles/setsm.dir/voronoi_setsm.c.o
gcc: fatal error: no input files
compilation terminated.
/bin/sh: -fopenmp: command not found
make[2]: *** [CMakeFiles/setsm.dir/build.make:89: CMakeFiles/setsm.dir/setsmgeo.c.o] Error 127
make[2]: *** Waiting for unfinished jobs....
gcc: fatal error: no input files
compilation terminated.
/bin/sh: -fopenmp: command not found
make[2]: *** [CMakeFiles/setsm.dir/build.make:76: CMakeFiles/setsm.dir/voronoi_setsm.c.o] Error 127
gcc: fatal error: no input files
compilation terminated.
/bin/sh: -fopenmp: command not found
make[2]: *** [CMakeFiles/setsm.dir/build.make:63: CMakeFiles/setsm.dir/setsm_code.c.o] Error 127
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/setsm.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

@JudyGardiner
Copy link
Collaborator

Thanks for reporting this. Apparently our cmake build is out of date. I'll work on it, but probably not until after the first of the year.

@khsa1
Copy link
Collaborator

khsa1 commented Dec 18, 2018

I am having trouble reproducing this issue. Can you provide the full outputs of your cmake and the make VERBOSE=1 commands?

@baerbock
Copy link
Author

baerbock commented Dec 21, 2018

@khsa1 I was able to fix the compilation. SETSM seems to

  • need OpenMP
  • need empty CFLAGS / CXXFLAGS
  • need gcc manually set with CC=gcc

I wish you a Merry Christmas and will investigate default.txt in the new year!
And I'm very sorry if I've wrongly guessed your religion, Самуил Хувис.

@khsa1
Copy link
Collaborator

khsa1 commented Dec 21, 2018

@baerbock Yes, you will need OpenMP to compile the code, but I am surprised that you needed empty CFLAGS/CXXFLAGS and CC=gcc.

I was able to reproduce the issue with a non-empty CFLAGS or CXXFLAGS and will look into it. But I can compile without manually setting CC=gcc. I would appreciate any additional information or log files you can provide to help debug this.

No problem, have a merry Christmas.

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

3 participants