arm-unknown-linux-gnueabi ABI selection

Mon Sep 1 17:59:00 GMT 2008

Michael, Marc,

On Monday 01 September 2008 15:21:01 Michael Abbott wrote:
> I've hit an unexpected snag.  Building the kernel fails very early on:
> Here's the complete build transcript:
> $ make
>   CC      init/main.o
> /bin/sh: line 1:  3669 Segmentation fault      
> arm-diamond-linux-gnueabi-ld -EL -r -o init/main.o init/.tmp_main.o -T init/.tmp_main.ver
> make[2]: *** [init/main.o] Error 139
> make[1]: *** [init] Error 2
> make: *** [sub-make] Error 2

Here's what I got:

# tar xjf linux-
# mkdir linux-
# cd linux-
# make -C .. O=$(pwd) ARCH=arm eseries_pxa_defconfig
[--SNIP lot's of output--]
# make ARCH=arm CROSS_COMPILE=/home/ymorin/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-
make -C /home/ymorin/dev/linux- O=/home/ymorin/dev/linux-
  GEN     /home/ymorin/dev/linux-
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-pxa
  Generating include/asm-arm/mach-types.h
  Using /home/ymorin/dev/linux- as source for kernel
  GEN     /home/ymorin/dev/linux-
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/asm-arm/asm-offsets.h
  CALL    /home/ymorin/dev/linux-
<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  AS      arch/arm/boot/compressed/head.o
  GZIP    arch/arm/boot/compressed/piggy.gz
  AS      arch/arm/boot/compressed/piggy.o
  CC      arch/arm/boot/compressed/misc.o
  AS      arch/arm/boot/compressed/head-xscale.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
[--SNIP modules linkage--]
# /home/ymorin/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-readelf -h vmlinux
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0xc0008000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          2473512 (bytes into file)
  Flags:                             0x4000002, has entry point, Version4 EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         4
  Size of section headers:           40 (bytes)
  Number of section headers:         16
  Section header string table index: 13

So all seem correct here...

> There doesn't seem to be a detailed log file in this build, so it's rather 
> hard to see what's really going on behind the scenes, but I've managed to 
> find out a little bit.

You can get it with:
# make ARCH=arm V=1

Yann E. MORIN.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  /e\  There is no  |
| | _/*\_ | / \ HTML MAIL    |  """  conspiracy.  |

For unsubscribe information see

More information about the crossgcc mailing list