Page 1 of 1

Problems with os-specific toolchain (new problem: newlib)

Posted: Mon Mar 30, 2009 2:05 pm
by Craze Frog
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:

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
Command line:

Code: Select all

bash-3.2$ ../gcc-4*/configure --target=i686-pc-kudos --disable-nls --enable-languages=c
From gcc/config.gcc:

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
...

Re: Problems with os-specific toolchain tutorial (gcc)

Posted: Thu Apr 02, 2009 11:01 am
by Craze Frog
I missed two semi-colons...

Re: Problems with os-specific toolchain tutorial (gcc)

Posted: Thu Apr 02, 2009 12:55 pm
by Craze Frog
I have a new problem, this time with newlib. It seems to be due to an error in the tutorial, as it's the code copied from the tutorial that makes make fail.

configure.in

Code: Select all

NEWLIB_CONFIGURE(../../..)
The error is:
sys/kudos/configure/: line 1741: syntax error near unexpected token `../../..ยด

What's wrong?

Re: Problems with os-specific toolchain (new problem: newlib)

Posted: Wed Apr 08, 2009 10:37 am
by gmoney
try posting the configure.in code or the version of newlib your using so people can help you out faster

Re: Problems with os-specific toolchain (new problem: newlib)

Posted: Mon Apr 13, 2009 8:29 am
by Craze Frog
The version of newlib is 1.17.0. Here is the whole configure.in from newlib/libc/sys/<yourosname>

Code: Select all

AC_PREREQ(2.59)                            
AC_INIT([newlib], [NEWLIB_VERSION])
AC_CONFIG_SRCDIR([crt0.s])

AC_CONFIG_AUX_DIR(../../../..)
NEWLIB_CONFIGURE(../../..)

AC_CONFIG_FILES([Makefile])

AC_OUTPUT