Problems with os-specific toolchain (new problem: newlib)
Posted: Mon Mar 30, 2009 2:05 pm
I already made a cross compiler, but I wanted one with newlib, so I went here: http://wiki.osdev.org/OS_Specific_Toolchain and tried to follow along. I compiled binutils with success, but I'm getting a strange error on make all-gcc:
Command line:
From gcc/config.gcc:
Code: Select all
../../gcc-4.3.2/gcc/config/i386/i386.md: In function 'output_615':
../../gcc-4.3.2/gcc/config/i386/i386.md:21149: error: 'ASM_SHORT' undeclared (first use in this function)
../../gcc-4.3.2/gcc/config/i386/i386.md:21149: error: (Each undeclared identifier is reported only once
../../gcc-4.3.2/gcc/config/i386/i386.md:21149: error: for each function it appears in.)
../../gcc-4.3.2/gcc/config/i386/i386.md:21149: error: expected ';' before string constant
Code: Select all
bash-3.2$ ../gcc-4*/configure --target=i686-pc-kudos --disable-nls --enable-languages=c
Code: Select all
...
case ${target} in
# Support site-specific machine types.
i[3-7]86-*-kudos*)
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h kudos.h"
tmake_file="i386/t-i386elf t-svr4"
use_fixproto=yes
...