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

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

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

Post 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
...
Last edited by Craze Frog on Thu Apr 02, 2009 12:55 pm, edited 1 time in total.
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

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

Post by Craze Frog »

I missed two semi-colons...
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

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

Post 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?
gmoney
Member
Member
Posts: 106
Joined: Mon Jan 03, 2005 12:00 am
Location: Texas, Usa

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

Post by gmoney »

try posting the configure.in code or the version of newlib your using so people can help you out faster
Craze Frog
Member
Member
Posts: 368
Joined: Sun Sep 23, 2007 4:52 am

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

Post 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
Post Reply