Skip to content

Compiling with gcc fails #5

Open

Description

@baerbock

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

Activity

  1. JudyGardiner commented on Dec 18, 2018

    @JudyGardiner
    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.

  2. khsa1 commented on Dec 18, 2018

    @khsa1
    Collaborator

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

  3. baerbock commented on Dec 21, 2018

    @baerbock
    Author

    @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, Самуил Хувис.

  4. khsa1 commented on Dec 21, 2018

    @khsa1
    Collaborator

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions