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

Unable to make uci #4

Open
csann opened this issue Feb 3, 2020 · 0 comments
Open

Unable to make uci #4

csann opened this issue Feb 3, 2020 · 0 comments

Comments

@csann
Copy link

csann commented Feb 3, 2020

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?

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