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

cannot find crtatmega4809.o #890

Closed
rwirth opened this issue Jul 15, 2022 · 2 comments
Closed

cannot find crtatmega4809.o #890

rwirth opened this issue Jul 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@rwirth
Copy link

rwirth commented Jul 15, 2022

Trying to link any program for the mega4809 fails with

$ avr-gcc -x c -mmcu=atmega4809 - <<<"int main() {return 0;}"
/usr/bin/avr-ld: cannot find crtatmega4809.o: No such file or directory
/usr/bin/avr-ld: cannot find -latmega4809: No such file or directory

It seems the device-specific libs do not get generated during build due to a typo in gen-avr-lib-tree.sh, lines 354ff:

attiny1608:crtm1608.o:${DEV_DEFS}:${CFLAGS_SPACE}:${DEV_ASFLAGS};\
attiny1609:crtm1609.o:${DEV_DEFS}:${CFLAGS_SPACE}:${DEV_ASFLAGS};\
attiny3208:crtm3208.o:${DEV_DEFS}:${CFLAGS_SPACE}:${DEV_ASFLAGS};\
attiny3209:crtm3209.o:${DEV_DEFS}:${CFLAGS_SPACE}:${DEV_ASFLAGS};\
attiny4808:crtm4808.o:${DEV_DEFS}:${CFLAGS_SPACE}:${DEV_ASFLAGS};\
attiny4809:crtm4809.o:${DEV_DEFS}:${CFLAGS_SPACE}:${DEV_ASFLAGS}\

The device names should be atmega, not attiny.

@rwirth
Copy link
Author

rwirth commented Jul 20, 2022

Also, the ATmega808/809 lines are missing.

sprintersb added a commit to sprintersb/avr-libc that referenced this issue Aug 4, 2023
…608/9, ATmega3208/9, ATmega4808/9.

Entries for ATmega808/9 were missing in devtools/gen-avr-lib-tree.sh.
ATmega1608/9,  ATmega3208/9,  ATmega4808/9 were wrongly filed "attiny".

Notice the io*.h files in include/avr are present, and the entries
in include/avr/Makefile.am::avr_HEADERS  are correct.  Also the entries
in include/avr/io.h are correct.

/
	* devtools/gen-avr-lib-tree.sh (atmega808, atmega809): Add.
	(atmega1608, atmega1609, atmega3208, atmega3209, atmega3208)
	(atmega3209): New, renamed from respective attiny* entries.
@sprintersb sprintersb added the bug Something isn't working label Jan 31, 2024
sprintersb added a commit that referenced this issue Jan 31, 2024
…mega3208/9, ATmega4808/9.

Entries for ATmega808/9 were missing in devtools/gen-avr-lib-tree.sh.
ATmega1608/9,  ATmega3208/9,  ATmega4808/9 were wrongly filed "attiny".

Notice the io*.h files in include/avr are present, and the entries
in  include/avr/Makefile.am::avr_HEADERS  are correct.  Also the entries
in  include/avr/io.h  are correct.

	* devtools/gen-avr-lib-tree.sh (atmega808, atmega809): Add.
	(atmega1608, atmega1609, atmega3208, atmega3209, atmega3208)
	(atmega3209): New, renamed from respective attiny* entries.
@sprintersb
Copy link
Collaborator

Fixed by afb1ffd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants