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

u-boot-spl.lds:1: syntax error #6

Open
insekt opened this issue Oct 22, 2015 · 1 comment
Open

u-boot-spl.lds:1: syntax error #6

insekt opened this issue Oct 22, 2015 · 1 comment

Comments

@insekt
Copy link

insekt commented Oct 22, 2015

Hi.
I'm trying to build u-boot from source.
Got this error during compiling process:

arm-xilinx-linux-gnueabi-ld:/root/parallela-uboot/spl/u-boot-spl.lds:1: ignoring invalid character `#' in expression
arm-xilinx-linux-gnueabi-ld:/root/parallela-uboot/spl/u-boot-spl.lds:1: syntax error
make[1]: *** [/root/parallela-uboot/spl/u-boot-spl] Error 1
make[1]: Leaving directory `/root/parallela-uboot/spl'
make: *** [spl/u-boot-spl.bin] Error 2

It seem that problem is in -ansi option in spl/Makefile.
I delete this option and compilation was done successfully.
But I think it's not a right way to solve it.

Could anybody suggest proper solution?

Thanks.

@AnkurTank
Copy link

This is old one but to help someone facing similar error.
For us it was comment suing two slashes were giving this problem //. However once we switched to comment using slash double star and slash /**/ we got it compiled successfully.

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