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 NanoVM #2

Open
Chip1972 opened this issue Aug 26, 2018 · 4 comments
Open

Compiling NanoVM #2

Chip1972 opened this issue Aug 26, 2018 · 4 comments

Comments

@Chip1972
Copy link

Hi.
Thanks for the project.
How to compile this project?
I tried Arduino, Winavr, AVRStudio, but nothing qorked.

@Chip1972
Copy link
Author

In WINAVR, i have this error

"make.exe" all
makefile:75: NanoVM.d: No such file or directory
makefile:75: nvmfile.d: No such file or directory
makefile:75: vm.d: No such file or directory
makefile:75: heap.d: No such file or directory
makefile:75: array.d: No such file or directory
makefile:75: error.d: No such file or directory
makefile:75: loader.d: No such file or directory
makefile:75: native_stdio.d: No such file or directory
makefile:75: stack.d: No such file or directory
makefile:75: uart.d: No such file or directory
makefile:75: debug.d: No such file or directory
makefile:75: native_lcd.d: No such file or directory
makefile:75: nvmcomm1.d: No such file or directory
makefile:75: nvmcomm2.d: No such file or directory
makefile:75: native_math.d: No such file or directory
makefile:75: native_formatter.d: No such file or directory
makefile:75: nvmstring.d: No such file or directory
makefile:75: avr/native_avr.d: No such file or directory
makefile:75: avr/native_impl.d: No such file or directory
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/avr/native_impl.c
| sed 's#(native_impl).o[ :]#\1.o avr/native_impl.d : #g' > avr/native_impl.d ;
[ -s avr/native_impl.d ] || rm -f avr/native_impl.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/avr/native_avr.c
| sed 's#(native_avr).o[ :]
#\1.o avr/native_avr.d : #g' > avr/native_avr.d ;
[ -s avr/native_avr.d ] || rm -f avr/native_avr.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/nvmstring.c | sed 's/(nvmstring).o[ :]/\1.o nvmstring.d : /g' > nvmstring.d ; [ -s nvmstring.d ] || rm -f nvmstring.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/native_formatter.c | sed 's/(native_formatter).o[ :]
/\1.o native_formatter.d : /g' > native_formatter.d ; [ -s native_formatter.d ] || rm -f native_formatter.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/native_math.c | sed 's/(native_math).o[ :]/\1.o native_math.d : /g' > native_math.d ; [ -s native_math.d ] || rm -f native_math.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/nvmcomm2.c | sed 's/(nvmcomm2).o[ :]
/\1.o nvmcomm2.d : /g' > nvmcomm2.d ; [ -s nvmcomm2.d ] || rm -f nvmcomm2.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/nvmcomm1.c | sed 's/(nvmcomm1).o[ :]/\1.o nvmcomm1.d : /g' > nvmcomm1.d ; [ -s nvmcomm1.d ] || rm -f nvmcomm1.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/native_lcd.c | sed 's/(native_lcd).o[ :]
/\1.o native_lcd.d : /g' > native_lcd.d ; [ -s native_lcd.d ] || rm -f native_lcd.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/debug.c | sed 's/(debug).o[ :]/\1.o debug.d : /g' > debug.d ; [ -s debug.d ] || rm -f debug.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/uart.c | sed 's/(uart).o[ :]
/\1.o uart.d : /g' > uart.d ; [ -s uart.d ] || rm -f uart.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/stack.c | sed 's/(stack).o[ :]/\1.o stack.d : /g' > stack.d ; [ -s stack.d ] || rm -f stack.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/native_stdio.c | sed 's/(native_stdio).o[ :]
/\1.o native_stdio.d : /g' > native_stdio.d ; [ -s native_stdio.d ] || rm -f native_stdio.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/loader.c | sed 's/(loader).o[ :]/\1.o loader.d : /g' > loader.d ; [ -s loader.d ] || rm -f loader.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/error.c | sed 's/(error).o[ :]
/\1.o error.d : /g' > error.d ; [ -s error.d ] || rm -f error.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/array.c | sed 's/(array).o[ :]/\1.o array.d : /g' > array.d ; [ -s array.d ] || rm -f array.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/heap.c | sed 's/(heap).o[ :]
/\1.o heap.d : /g' > heap.d ; [ -s heap.d ] || rm -f heap.d
set -e; avr-gcc -MM -std=gnu99 -Wall -Werror -pedantic-errors -Wundef -Wno-long-long -Os -ffunction-sections -DAVR -I. -mmcu=atmega8 -DVERSION=""1.6"" -I../../../vm/src ../../../vm/src/vm.c | sed 's/(vm).o[ :]*/\1.o vm.d : /g' > vm.d ; [ -s vm.d ] || rm -f vm.d
make.exe: *** No rule to make target ../../../java/examples/Rot13.java', needed by nvmdefault.h'. Stop.

Process Exit Code: 2
Time Taken: 00:01

@kosch
Copy link
Owner

kosch commented Aug 26, 2018

https://github.com/kosch/NanoVM/tree/master/old contains a readme and some docs, not well documented. I can#t remember to complete steps. But you'll need Linux.

@kosch
Copy link
Owner

kosch commented Aug 26, 2018

This fork was focused to rewrite the Java part to simplify developing Java apps for it. But I stopped due lack of time and not using avr anymore.
So the old-Directory contains the original NanoVM.

@Chip1972
Copy link
Author

Thanks. I need a c-like bytecode interpreter, and NanoVM is the only choice available. Others are too big or too complex.

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

2 participants