From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Fri, 07 May 2010 10:30:32 -0500 Subject: [U-Boot] Building for da830 fails In-Reply-To: <4BE42FE9.3070208@psyent.com> References: <004001caeddc$719c30d0$54d49270$@raj@ti.com> <4BE42048.7000701@ge.com> <20100507151009.55582E8AAC9@gemini.denx.de> <4BE42FE9.3070208@psyent.com> Message-ID: <4BE43218.2060209@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Scott McNutt wrote: > lib/libgeneric.a(display_options.o): In function `print_size': > /home/smcnutt/27xx/u-boot.git/lib/display_options.c:66: undefined > reference to `__udivdi3' > /home/smcnutt/27xx/u-boot.git/lib/display_options.c:69: undefined > reference to `__umoddi3' > /home/smcnutt/27xx/u-boot.git/lib/display_options.c:70: undefined > reference to `__udivdi3' Man, I knew ARM sucked, but I didn't know it was this bad :-) I was going to suggestion replacing the division operations with calls to lldiv(), but we're actually doing a 64-by-64 bit division here: n = size / d; which means that in order to support support printing 64-bit numbers on ARM, we might need to completely rewrite print_size() to avoid division on 64-bit numbers. Wolfgang, do you have any suggestions? -- Timur Tabi Linux kernel developer at Freescale