Subject: Re: cross compile tips on NetBSD
To: Don Gafford <port-dreamcast@netbsd.org>
From: gee308 <gee308@mediaone.net>
List: port-dreamcast
Date: 02/16/2001 19:59:42
This is a multi-part message in MIME format.

------=_NextPart_000_0073_01C09853.008927B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Here is also the results from redirecting make's output to a file with   =
 $make LANGUAGES=3D"c" all install > somefile :

if [ -d /usr/local/sh-elf/sys-include ];  then  =
CC=3D"/usr/dc/gcc/gcc-2.95.2/gcc/x
gcc -B/usr/dc/gcc/gcc-2.95.2/gcc/ -B/usr/local/sh-elf/bin/ =
-I/usr/local/sh-elf/i
nclude -DCROSS_COMPILE -DIN_GCC    -g -O2 -I./include     -I. -I. =
-Iinclude -I/u
sr/local/sh-elf/sys-include";  export CC;  /bin/sh ./scan-types.sh "." =
>tmp-dedu
ced.h;  mv tmp-deduced.h deduced.h;  else  touch deduced.h;  fi
*** Error code 1

Stop.
*** Error code 1
  ----- Original Message -----=20
  From: Don Gafford=20
  To: gee308 ; port-dreamcast@netbsd.org=20
  Sent: Friday, February 16, 2001 7:22 PM
  Subject: Re: cross compile tips on NetBSD


  It sounds like you have some header files missing. I am not sure if =
they are cross-platform compatible, but you could do a net search for =
those files. I know they exist on PC versions of NetBSD.=20

  -Don

    ----- Original Message -----=20
    From: gee308=20
    To: port-dreamcast@NetBSD.ORG=20
    Sent: Friday, February 16, 2001 4:46 PM
    Subject: cross compile tips on NetBSD


    I'm trying to make the sh4 cross compiler on my freshly installed =
NetBSD box.  I followed the instructions at Hitmen's page, but I am =
getting stuck building gcc .  I am new to this kind of stuff and NetBSD =
so I don't know how to read the output of my build.  I already got a =
slackware 7.1 sh4 cross-compiler made.  Here is the message I got when =
running 'make LANGUAGES=3D"c" all install' :

    st-dummy.c:1: sys/types.h: No such file or directory
    st-dummy.c:4: stdio.h: No such file or directory
    st-dummy.c:5: time.h: No such file or directory
    st-dummy.c:6: signal.h: No such file or directory
    scan-types: could not invoke /usr/dc/gcc/gcc-2.95.2/gcc/xgcc =
-B/usr/dc/gcc/gcc-2.95.2/gcc/ -B/usr/local/sh-elf/bin/ =
-I/usr/local/sh-elf/include -DCROSS_COMPILE -DIN_GCC -g -O2 -I./include =
-I. -I. -Iinclude -I/usr/local/sh-elf/sys-include -E -I./ on st-dummy.c



    Are there any tips or a web page that I should follow for setting up =
the cross-compiler on NetBSD?
    Thanks.
    Jason

------=_NextPart_000_0073_01C09853.008927B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Here is also the results&nbsp;from =
redirecting=20
make's output to a file with&nbsp;&nbsp;&nbsp; $make LANGUAGES=3D"c" all =
install=20
&gt; somefile :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>if [ -d /usr/local/sh-elf/sys-include =
];&nbsp;=20
then&nbsp; CC=3D"/usr/dc/gcc/gcc-2.95.2/gcc/x<BR>gcc =
-B/usr/dc/gcc/gcc-2.95.2/gcc/=20
-B/usr/local/sh-elf/bin/ -I/usr/local/sh-elf/i<BR>nclude -DCROSS_COMPILE =

-DIN_GCC&nbsp;&nbsp;&nbsp; -g -O2 -I./include&nbsp;&nbsp;&nbsp;&nbsp; =
-I. -I.=20
-Iinclude -I/u<BR>sr/local/sh-elf/sys-include";&nbsp; export CC;&nbsp; =
/bin/sh=20
./scan-types.sh "." &gt;tmp-dedu<BR>ced.h;&nbsp; mv tmp-deduced.h=20
deduced.h;&nbsp; else&nbsp; touch deduced.h;&nbsp; fi<BR>*** Error code=20
1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Stop.<BR>*** Error code 1</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Ddongafford@hotmail.com =
href=3D"mailto:dongafford@hotmail.com">Don=20
  Gafford</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dgee308@mediaone.net=20
  href=3D"mailto:gee308@mediaone.net">gee308</A> ; <A=20
  title=3Dport-dreamcast@netbsd.org=20
  =
href=3D"mailto:port-dreamcast@netbsd.org">port-dreamcast@netbsd.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, February 16, 2001 =
7:22=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: cross compile tips =
on=20
  NetBSD</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>It sounds like you have some header =
files=20
  missing.&nbsp;I am not sure if they are cross-platform compatible, but =
you=20
  could do a net search for those files. I know they exist on PC =
versions of=20
  NetBSD. </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>-Don</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3Dgee308@mediaone.net =
href=3D"mailto:gee308@mediaone.net">gee308</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dport-dreamcast@NetBSD.ORG=20
    =
href=3D"mailto:port-dreamcast@NetBSD.ORG">port-dreamcast@NetBSD.ORG</A> =
</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, February 16, =
2001 4:46=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> cross compile tips =
on=20
    NetBSD</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=3DArial size=3D2>I'm trying to make the sh4 cross =
compiler on my=20
    freshly installed NetBSD box.&nbsp; I followed the instructions at =
Hitmen's=20
    page, but I am getting stuck building gcc .&nbsp; I am new to this =
kind of=20
    stuff and NetBSD&nbsp;so I don't know how to read the output of my=20
    build.&nbsp; I already got a slackware 7.1 sh4 cross-compiler =
made.&nbsp;=20
    Here&nbsp;is the message I got when running 'make LANGUAGES=3D"c" =
all install'=20
    :</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>st-dummy.c:1: sys/types.h: No such =
file or=20
    directory<BR>st-dummy.c:4: stdio.h: No such file or=20
    directory<BR>st-dummy.c:5: time.h: No such file or=20
    directory<BR>st-dummy.c:6: signal.h: No such file or=20
    directory<BR>scan-types: could not invoke =
/usr/dc/gcc/gcc-2.95.2/gcc/xgcc=20
    -B/usr/dc/gcc/gcc-2.95.2/gcc/ -B/usr/local/sh-elf/bin/=20
    -I/usr/local/sh-elf/include -DCROSS_COMPILE -DIN_GCC -g -O2 =
-I./include -I.=20
    -I. -Iinclude -I/usr/local/sh-elf/sys-include -E -I./ on=20
    st-dummy.c<BR><BR></DIV></FONT>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Are there any tips or a web page =
that I should=20
    follow for setting up the cross-compiler on NetBSD?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
    <DIV><FONT face=3DArial=20
size=3D2>Jason</DIV></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>

------=_NextPart_000_0073_01C09853.008927B0--