SquashFS not compiling due to missing __udivmoddi4 (x86)
Sean Nyekjaer
sean at geanix.com
Mon May 2 12:39:32 CEST 2022
Hi,
I'm trying to build Squashfs for u-boot for x86.
Looks like we are missing some libgcc helper function.
ld.bfd: fs/squashfs/sqfs.o: in function `sqfs_read':
/home/sean/development/siemens/u-boot/fs/squashfs/sqfs.c:1443: undefined reference to `__udivmoddi4'
ld.bfd: /home/sean/development/siemens/u-boot/fs/squashfs/sqfs.c:1521: undefined reference to `__udivmoddi4'
I can fix this by adding the function from arch/arc/lib/libgcc2.c to
arch/x86/lib/div64.c, but I'm not sure it's the right way to do it :)
Any hints?
/Sean
More information about the U-Boot
mailing list