#11604 NORM 1.75-so: bios-crypto fails to build on ARM

Zarro Boogs per Child bugtracker at laptop.org
Sun Feb 5 22:01:43 EST 2012


#11604: bios-crypto fails to build on ARM
--------------------------+-------------------------------------------------
 Reporter:  Quozl         |                 Owner:                                    
     Type:  defect        |                Status:  new                               
 Priority:  normal        |             Milestone:  1.75-software                     
Component:  not assigned  |               Version:  Development source as of this date
 Keywords:                |           Next_action:  diagnose                          
 Verified:  0             |   Deployment_affected:                                    
Blockedby:                |              Blocking:                                    
--------------------------+-------------------------------------------------
 bios-crypto from git, hash 36d3c0c, does not build.

 {{{
 $ make
 cc -c -Os -I../depends/libtomcrypt/src/headers
 -I../depends/tomsfastmath/src/headers  -I/usr/include/tomcrypt
 -I/usr/include/tomsfastmath -fno-stack-protector -m32 -DARGTYPE=1
 ../bios_verify.c -o bios_verify.o
 cc1: error: unrecognized command line option "-m32"
 make: *** [bios_verify.o] Error 1
 }}}

 If -m32 is removed, another error occurs:

 {{{
 $ make
 ...
 ld -Ttext 0xc0000 -Tbss 0xd0000 --defsym _start=verify_data bios_verify.o
 stack_alloc.o bios_string.o ../depends/libtomcrypt.a ../depends/libtfm.a
 `cc -print-libgcc-file-name` -o bios_verify.elf
 ../depends/libtomcrypt.a(md4.o): In function `md4_test':
 md4.c:(.text+0x9b4): undefined reference to `strlen'
 ../depends/libtomcrypt.a(rmd160.o): In function `rmd160_test':
 rmd160.c:(.text+0x1b34): undefined reference to `strlen'
 ../depends/libtomcrypt.a(sha256.o): In function `sha224_test':
 sha256.c:(.text+0x5bc): undefined reference to `strlen'
 ../depends/libtomcrypt.a(sha256.o): In function `sha256_test':
 sha256.c:(.text+0x6c8): undefined reference to `strlen'
 /usr/lib/gcc/armv5tel-redhat-linux-gnueabi/4.5.1/libgcc.a(_dvmd_lnx.o): In
 function `__aeabi_ldiv0':
 (.text+0x8): undefined reference to `raise'
 /usr/lib/gcc/armv5tel-redhat-linux-
 gnueabi/4.5.1/libgcc.a(bpabi.o):(.ARM.exidx+0x0): undefined reference to
 `__aeabi_unwind_cpp_pr0'
 /usr/lib/gcc/armv5tel-redhat-linux-
 gnueabi/4.5.1/libgcc.a(_divdi3.o):(.ARM.exidx+0x0): undefined reference to
 `__aeabi_unwind_cpp_pr0'
 /usr/lib/gcc/armv5tel-redhat-linux-
 gnueabi/4.5.1/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0): undefined reference
 to `__aeabi_unwind_cpp_pr0'
 make: *** [bios_verify.elf] Error 1
 $
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/11604>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list