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

WinAVR make failure, New Install #24

Open
PeterHouseJr opened this issue Sep 13, 2024 · 17 comments
Open

WinAVR make failure, New Install #24

PeterHouseJr opened this issue Sep 13, 2024 · 17 comments

Comments

@PeterHouseJr
Copy link

PeterHouseJr commented Sep 13, 2024

Experienced first time user if and brand new install of WinAVR-20100110 on Latest Win11. Have written assembler and c for several decades and still learning - tired of UI issues with MPLABX and yearning for an IDE-less existence again!

I seem to be able to run the compiler manually but get this message when running "make all" using a Makefile generated by mFile.

PS C:\Users\Peter\Desktop\WA-UnivTSB24A> make all
0 [main] sh 9088 sync_with_child: child 5772(0x224) died before initialization with status code 0xC0000142
39 [main] sh 9088 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
0 [main] sh 34660 sync_with_child: child 31028(0x228) died before initialization with status code 0xC0000142
39 [main] sh 34660 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make: *** No rule to make target main.elf', needed by elf'. Stop.
PS C:\Users\Peter\Desktop\WA-UnivTSB24A>

@baerwolf
Copy link
Owner

baerwolf commented Sep 16, 2024 via email

@PeterHouseJr
Copy link
Author

bearwolf, I would certainly appreciate your cross compile and thank you for the offer. I would be happy to return the favor and am open to your suggestions.

I thought I downloaded the latest WinAVR.

I like your Linux suggestion and have several Linux computers I use. Windows is still my daily driver as Linux is not quite there yet for my requirements.

@baerwolf
Copy link
Owner

baerwolf commented Sep 17, 2024 via email

@baerwolf
Copy link
Owner

baerwolf commented Sep 17, 2024 via email

@PeterHouseJr
Copy link
Author

PeterHouseJr commented Sep 18, 2024 via email

@PeterHouseJr
Copy link
Author

PeterHouseJr commented Sep 18, 2024 via email

@baerwolf
Copy link
Owner

baerwolf commented Sep 18, 2024 via email

@PeterHouseJr
Copy link
Author

PeterHouseJr commented Sep 19, 2024 via email

@baerwolf
Copy link
Owner

baerwolf commented Sep 20, 2024 via email

@PeterHouseJr
Copy link
Author

Not sure how to find the Hash.

src.zip

I do not use any of the standard libraries. Ths only code which is NOT in my source might be the startup code which I have always trusted to Atmel Studio and MPLABX. I would happily write this myself if necessary as it would only require setting the SP and possibly clearing RAM (not strictly necessary but useful for debugging).

I will try your suggestions when I get in my office in an hour or so and post my results when done.

Thank you,

Peter

@PeterHouseJr
Copy link
Author

The commands you suggested completed without error. I compared the hex file to another generated by Atmel Studio 7 a couple of years ago and it looks very similar.

The tablejump2 is still in the TSB2.s assembly file with no target. The target label tablejump2 appears in the .elf file and I believe this may be how the compiler handles large switch() constructs. the symbol tablejump2 also appears in a previous versions .elf of this product created using MPLABX (I Hope to NEVER open again - too buggy and inconsistent) - unfortunately I do not have assembly files for this version.

In any case - 0 compile errors and hex file generated using your suggested commands.

I will hardware test the code over the weekend and work on building my own make file. I am also thinking about building a linux avr-gcc build server either in a VM or on a Raspberry Pi. I expect final hardware from my customer today.

Where can I find a summary of the individual programs that make up avr-gcc? I need to learn this more completely.

Thank you again for your assistance.

@PeterHouseJr
Copy link
Author

File Hash on Windows 11 using Powershell

PS C:\Users\Peter\Desktop\WA-UnivTSB24A\src> get-filehash src.zip

Algorithm Hash Path


SHA256 255500D63FB1208126EFC3B39ED472953CCA515111F31C1B0BFB47828F065FCF C:\Users\Peter\Desktop\WA-UnivTSB24A\src\src.zip

PS C:\Users\Peter\Desktop\WA-UnivTSB24A\src>

@PeterHouseJr
Copy link
Author

Where did you get the source for your AVR build?

@PeterHouseJr
Copy link
Author

Atmel328PB Target Board is Fully Functional with software compiled using WinAVR !!!

Thank you so much for your help.

I still have a lot to do to streamline the build environment and prepare to compile the 5 other projects in this series of modules.

@baerwolf
Copy link
Owner

baerwolf commented Sep 22, 2024 via email

@PeterHouseJr
Copy link
Author

I am absolutely using your 13.3.0 version you compiled for me.

Thank you so much for your help. I will close this issue and contact you directly.

@PeterHouseJr
Copy link
Author

Problem Solved !

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