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

FS#1345 - Failed to build u-boot/atmelimage.o in Alpine Linux #6266

Open
openwrt-bot opened this issue Feb 10, 2018 · 1 comment
Open

FS#1345 - Failed to build u-boot/atmelimage.o in Alpine Linux #6266

openwrt-bot opened this issue Feb 10, 2018 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

muhahacz:

Failed to build u-boot/atmelimage.o in Alpine Linux

tools/mkimage.h: In function 'map_to_sysmem': tools/mkimage.h:40:10: error: 'ulong' undeclared (first use in this function) return (ulong)(uintptr_t)ptr; ^~~~~ tools/mkimage.h:40:10: note: each undeclared identifier is reported only once for each function it appears in tools/mkimage.h:40:17: error: expected expression before 'uintptr_t' return (ulong)(uintptr_t)ptr; ^~~~~~~~~ tools/mkimage.h:40:27: error: expected ';' before 'ptr' return (ulong)(uintptr_t)ptr; ^~~ make[5]: *** [scripts/Makefile.host:134: tools/atmelimage.o] Error 1 make[4]: *** [Makefile:1195: tools-only] Error 2
@adminy
Copy link

adminy commented Aug 28, 2022

I have a similar issue building a rockchip version of uboot, but similarly tried building it on Alpine Linux and also was getting that ulong is not defined.

So I defined it myself ...

awk 'NR==86{print "typedef unsigned long ulong;"}1' /usr/include/stdlib.h > /tmp/stdlib.h
cp /tmp/stdlib.h /usr/include/stdlib.h

but it looks like you're getting more errors (perhaps musl-dev is not installed), unfortunately Alpine doesn't play by the same rules as debian based distros, but you can kind of pretend everything is ok :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants