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

make error(s) #50

Open
arghhahhs1j2rug82rbr2g opened this issue Oct 5, 2021 · 1 comment
Open

make error(s) #50

arghhahhs1j2rug82rbr2g opened this issue Oct 5, 2021 · 1 comment

Comments

@arghhahhs1j2rug82rbr2g
Copy link

Hey, I tried installing the code and I followed all the steps up to make but when I ran make it gave me the following errors.

❱ make
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
	[-e pattern] [-f file] [--binary-files=value] [--color=when]
	[--context[=num]] [--directories=action] [--label] [--line-buffered]
	[--null] [pattern] [file ...]
/bin/sh: line 0: test: -lt: unary operator expected
sdcc --model-large --std-c99 -c src/main.c -o bin/main.rel
sdcc --model-large --std-c99 -c src/usb.c -o bin/usb.rel
sdcc --model-large --std-c99 -c src/usb_desc.c -o bin/usb_desc.rel
sdcc --model-large --std-c99 -c src/radio.c -o bin/radio.rel
sdcc --xram-loc 0x8000 --xram-size 2048 --model-large bin/main.rel bin/usb.rel bin/usb_desc.rel bin/radio.rel -o bin/dongle.ihx
objcopy -I ihex bin/dongle.ihx -O binary bin/dongle.bin
make: objcopy: No such file or directory
make: *** [dongle.bin] Error 1
❱ 

first off, grep -P doesn't work (or even exist)
second, I have no idea how make works because it says it ran test -lt and I don't see that in the makefile
and last it looks like it can't find obj copy or dongle.bin

Any help would be appreciated,
Thanks.

@throwawaya609
Copy link

Did you find a fix?

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