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

Generating config.h - syntax error: unexpected end of file #42

Open
cornedoggen opened this issue Oct 31, 2020 · 3 comments
Open

Generating config.h - syntax error: unexpected end of file #42

cornedoggen opened this issue Oct 31, 2020 · 3 comments

Comments

@cornedoggen
Copy link

Hi all,

I am trying to build xboot with the x32a4u.conf.mk configuration by running:

$ make conf/x32a4u.conf.mk

but i get the following error:

$ make conf/x32a4u.conf.mk
cp conf/x32a4u.conf.mk config.mk
"C:/Program Files (x86)/GnuWin32/bin/make"
make[1]: Entering directory `D:/Programmeren/avr-xboot/xboot'

-------- begin --------
avr-gcc (AVR_8_bit_GNU_Toolchain_3.6.2_1778) 5.4.0
Copyright (C) 2015 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.

Generating config.h for atxmega32a4u
/usr/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [config.h] Error 1
make[1]: Leaving directory `D:/Programmeren/avr-xboot/xboot'
make: *** [conf/x32a4u.conf.mk] Error 2

It seems something goes wrong in the config.h.mk file ( the makefile part where the config.h is created from the config.mk)
The process of creating config.mk , (just a copy of x32a4u.conf.mk) is working fine. config.mk is there in the folder.

Any idea?

Kind regards,
Corne

@cornedoggen
Copy link
Author

@alexforencich please can you take a look into the above issue? I really want to go on with the bootloader and add CAN bus support to it, but first the concept must be working of generating a valid config.h file. Somewhere in the nested calls in config.h.mk there is something going wrong... foreach -> sort -> filter out -> filter...

Kind regards,
Corne Doggen

@alexforencich
Copy link
Owner

Works fine for me on linux. Maybe try running under WSL.

@cornedoggen
Copy link
Author

hmm.. i prefer Windows to compile on. I don't really understand the if statement in the last argument of the foreach function. is it a callback argument? I think there is some difference between an bash script (.sh) and a makefile. Can you use all the syntax from bash script in makefile? like if , for, and other? And use them the same ?? I ask this because for an if statement in bash one could use :

if [ statement ]

but een if statement in makefile is more seen as:

ifeq( foo, bar )

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