Skip to content

Unable to make uci #4

Description

@csann

After cloning UCI and editing the CMakeLists.txt file, I then begin to enter cmake ., make, and sudo make install. When I get to the make step, I get this error:
pi@raspberrypi:~/uci/uci $ make
[ 5%] Building C object CMakeFiles/uci.dir/file.c.o
In file included from /home/pi/uci/uci/file.c:34:0:
/home/pi/uci/uci/file.c: In function ‘uci_import’:
/home/pi/uci/uci/uci_internal.h:188:6: error: variable ‘__val’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
int __val = 0;
^
/home/pi/uci/uci/file.c:653:2: note: in expansion of macro ‘UCI_HANDLE_ERR’
UCI_HANDLE_ERR(ctx);
^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
CMakeFiles/uci.dir/build.make:86: recipe for target 'CMakeFiles/uci.dir/file.c.o' failed
make[2]: *** [CMakeFiles/uci.dir/file.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/uci.dir/all' failed
make[1]: *** [CMakeFiles/uci.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Any idea what I did wrong? I have reviewed my terminal history and as far as I can tell, I have followed your procedure.

Note that at this step I am in the folder ~/uci/uci. Have I made a mistake, should there be a uci folder inside a uci folder?

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