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

Build system tries to create a file on the system during the build step #20

Closed
FFY00 opened this issue Jun 26, 2020 · 1 comment · Fixed by #24
Closed

Build system tries to create a file on the system during the build step #20

FFY00 opened this issue Jun 26, 2020 · 1 comment · Fixed by #24

Comments

@FFY00
Copy link

FFY00 commented Jun 26, 2020

$ make PREFIX=/usr
make -C fasm-plugin test
make -C xdc-plugin test
make[1]: Entering directory '/home/anubis/git/symbiflow-arch-pkgs/yosys-symbiflow-plugins-git/src/yosys-symbiflow-plugins/fasm-plugin'
make[1]: Entering directory '/home/anubis/git/symbiflow-arch-pkgs/yosys-symbiflow-plugins-git/src/yosys-symbiflow-plugins/xdc-plugin'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -ggdb -I/usr/share/yosys/include -MD -D_YOSYS_ -fPIC -I/usr/include -std=c++11 -Os -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER -D_FORTIFY_SOURCE=2  -c -o fasm.o fasm.cc
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -ggdb -I/usr/share/yosys/include -MD -D_YOSYS_ -fPIC -I/usr/include -std=c++11 -Os -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER -D_FORTIFY_SOURCE=2  -c -o xdc.o xdc.cc
mkdir -p /usr/share/yosys/plugins/fasm_extra_modules/
mkdir: cannot create directory ‘/usr/share/yosys/plugins’: Permission denied
make[1]: *** [Makefile:18: install_modules] Error 1
make[1]: *** Waiting for unfinished jobs....
@Xiretza
Copy link
Contributor

Xiretza commented Jun 27, 2020

The default target is install: https://github.com/SymbiFlow/yosys-symbiflow-plugins/blob/master/Makefile#L7. Using make plugins instead avoids installation:

$ make PREFIX=/usr plugins
make -C fasm-plugin fasm.so
make[1]: Entering directory '/tmp/yosys-symbiflow-plugins/fasm-plugin'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -fvar-tracking-assignments -fdebug-prefix-map=/build/yosys-git/src=/usr/src/debug -Wall -Wextra -ggdb -I/usr/share/yosys/include -MD -D_YOSYS_ -fPIC -I/usr/include -std=c++11 -Os -I/usr/include/python3.8 -I/usr/include/python3.8 -DWITH_PYTHON -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER   -c -o fasm.o fasm.cc
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -fvar-tracking-assignments -fdebug-prefix-map=/build/yosys-git/src=/usr/src/debug -Wall -Wextra -ggdb -I/usr/share/yosys/include -MD -D_YOSYS_ -fPIC -I/usr/include -std=c++11 -Os -I/usr/include/python3.8 -I/usr/include/python3.8 -DWITH_PYTHON -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -rdynamic -shared -o fasm.so fasm.o -lstdc++ -lm -lrt -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -lboost_python38 -lboost_system -lboost_filesystem -lreadline -L/usr/lib/../lib -lffi -ldl -lz -ltcl8.6 -ltclstub8.6
make[1]: Leaving directory '/tmp/yosys-symbiflow-plugins/fasm-plugin'
make -C xdc-plugin xdc.so
make[1]: Entering directory '/tmp/yosys-symbiflow-plugins/xdc-plugin'
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -fvar-tracking-assignments -fdebug-prefix-map=/build/yosys-git/src=/usr/src/debug -Wall -Wextra -ggdb -I/usr/share/yosys/include -MD -D_YOSYS_ -fPIC -I/usr/include -std=c++11 -Os -I/usr/include/python3.8 -I/usr/include/python3.8 -DWITH_PYTHON -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER   -c -o xdc.o xdc.cc
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g -fvar-tracking-assignments -fdebug-prefix-map=/build/yosys-git/src=/usr/src/debug -Wall -Wextra -ggdb -I/usr/share/yosys/include -MD -D_YOSYS_ -fPIC -I/usr/include -std=c++11 -Os -I/usr/include/python3.8 -I/usr/include/python3.8 -DWITH_PYTHON -DYOSYS_ENABLE_READLINE -DYOSYS_ENABLE_PLUGINS -DYOSYS_ENABLE_GLOB -DYOSYS_ENABLE_ZLIB -DYOSYS_ENABLE_TCL -DYOSYS_ENABLE_ABC -DYOSYS_ENABLE_COVER -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -rdynamic -shared -o xdc.so xdc.o -lstdc++ -lm -lrt -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -lboost_python38 -lboost_system -lboost_filesystem -lreadline -L/usr/lib/../lib -lffi -ldl -lz -ltcl8.6 -ltclstub8.6
make[1]: Leaving directory '/tmp/yosys-symbiflow-plugins/xdc-plugin'

$ make PREFIX=/usr install
make -C fasm-plugin install
make[1]: Entering directory '/tmp/yosys-symbiflow-plugins/fasm-plugin'
mkdir -p /usr/share/yosys/plugins
cp fasm.so /usr/share/yosys/plugins/fasm.so
cp: cannot create regular file '/usr/share/yosys/plugins/fasm.so': Permission denied
make[1]: *** [Makefile:15: install] Error 1
make[1]: Leaving directory '/tmp/yosys-symbiflow-plugins/fasm-plugin'
make: *** [Makefile:23: install_fasm] Error 2
GitHub
Plugins for Yosys developed as part of the SymbiFlow project. - SymbiFlow/yosys-symbiflow-plugins

litghost added a commit that referenced this issue Jul 6, 2020
Fixes #20

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
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

Successfully merging a pull request may close this issue.

2 participants