[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linux/cross-1.1] include/stddef.h:28: machine/ansi.h: No such file or directory



                                             千葉市中央区長洲
                                                     藤原  誠
とても長くて、整理していないのですが、Linux で bsd-make
が出来た後に cross-1.1.tar.gz を使って bsd-make ... install
しようとしたら machine/ansi.h がないと言って止っているところ
までの話です。最後には本当に整理していない記録も付けてありま
すので、本当に長いです。270 行くらい。

bsd-make が出来たので、次に行きました。

bsd-make "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install
として見ると、

○ bsd.port.mk がないというので、Netbsd:/usr/share/mk/bsd.port.mk
から作業域に写した。

○ PORTDIR 
次のように言われるので、
Makefile に
PORTSDIR=	/NetBSD/pkgsrc
の行を加える。
(bsd.port.mk を直してしまえばいいのですね多分)

>> binutils-2.9.1.tar.gz doesn't seem to exist on this system.
>> Attempting to fetch from ftp://prep.ai.mit.edu/pub/gnu//.
ftp: ftp://prep.ai.mit.edu/pub/gnu//binutils-2.9.1.tar.gz: Unknown host

○実は bison/flex が入っていなかったので、別途入れる。

○ configure が次のようにうまく行かないので、bsd-make -n ...... として表示さ
れたものを手で入力する。

install -c -o bin -g bin  -m 444 sys.mk /usr/tmp/root/usr/share/mk/sys.mk
...
*** Can only configure for one host and one target at a time.
Usage: configure [OPTIONS] [HOST]
....
Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.

入力した文字は次の通りです。
     6  14:02   ( cd /NetBSD/cross/crossppc-1.1/work/build && /NetBSD/cross/crossppc-1.1/work/src/configure --prefix=/usr/local --target=powerpc-netbsd --with-gnu-as --with-gn
u-ld --prefix=/usr/local )

    15  14:22   bsd-make real-configure
    16  14:25   bsd-make real-build

○ env がないと言われるので、 ln -s /usr/bin/env  /bin した。
  
===>  Building for crossppc-1.1
/bin/sh: /bin/env: No such file or directory

○ で、こんどは次で止っています。

In file included from /NetBSD/cross/crossppc-1.1/work/src/gcc/libgcc2.c:37:
include/stddef.h:28: machine/ansi.h: No such file or directory


 -------- こ こ か ら 下 は  単 な る 記 録 --------
makoto@harry  13:51:38/980815(...cross/crossppc-1.1)> bsd-make "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install
"Makefile", line 123: Could not find bsd.port.mk
Fatal errors encountered -- cannot continue
makoto@harry  13:51:40/980815(...cross/crossppc-1.1)> 

cp -p ../crossppc-1.1-oo/bsd.port.mk .

makoto@harry  13:53:34/980815(...cross/crossppc-1.1)> bsd-make "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install
>> binutils-2.9.1.tar.gz doesn't seem to exist on this system.
>> Attempting to fetch from ftp://prep.ai.mit.edu/pub/gnu//.
ftp: ftp://prep.ai.mit.edu/pub/gnu//binutils-2.9.1.tar.gz: Unknown host
ftp> >> egcs-1.0.3a.tar.gz doesn't seem to exist on this system.
>> Attempting to fetch from ftp://prep.ai.mit.edu/pub/gnu//.
ftp: ftp://prep.ai.mit.edu/pub/gnu//egcs-1.0.3a.tar.gz: Unknown host
ftp> 
ftp> 

Makefile に
PORTSDIR=	/NetBSD/pkgsrc
の行を加える。

makoto   20582  0.0  0.7  2640   700  ?  S    13:57   0:00 /bin/sh -ec for file in binutils-2.9.1.tar.gz egcs-1.0.3a.tar.gz; do  if ! (cd /NetBSD/cross/crossppc-1.1/work && /bin/tar -xzf /NetBSD/pkgsrc/distfiles//$file ); then  exit 1;  fi  done 
makoto   20586  0.0  0.7  2644   728  ?  S    13:58   0:00 /bin/sh -ec for file in binutils-2.9.1.tar.gz egcs-1.0.3a.tar.gz; do  if ! (cd /NetBSD/cross/crossppc-1.1/work && /bin/tar -xzf /NetBSD/pkgsrc/distfiles//$file ); then  exit 1;  fi  done 
makoto   20587 13.3  0.6  2112   612  ?  S    13:58   0:07 /bin/tar -xzf /NetBSD/pkgsrc/distfiles//egcs-1.0.3a.tar.gz 


root@harry  DING!/980815(...cross/crossppc-1.1)#  bsd-make "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install
>> No MD5 checksum file.
===>  Configuring for crossppc-1.1
install -c -o bin -g bin  -m 444 bsd.README /usr/tmp/root/usr/share/mk/bsd.README
install -c -o bin -g bin  -m 444 bsd.doc.mk /usr/tmp/root/usr/share/mk/bsd.doc.mk
install -c -o bin -g bin  -m 444 bsd.dep.mk /usr/tmp/root/usr/share/mk/bsd.dep.mk
install -c -o bin -g bin  -m 444 bsd.files.mk /usr/tmp/root/usr/share/mk/bsd.files.mk
install -c -o bin -g bin  -m 444 bsd.inc.mk /usr/tmp/root/usr/share/mk/bsd.inc.mk
install -c -o bin -g bin  -m 444 bsd.kmod.mk /usr/tmp/root/usr/share/mk/bsd.kmod.mk
install -c -o bin -g bin  -m 444 bsd.lib.mk /usr/tmp/root/usr/share/mk/bsd.lib.mk
install -c -o bin -g bin  -m 444 bsd.links.mk /usr/tmp/root/usr/share/mk/bsd.links.mk
install -c -o bin -g bin  -m 444 bsd.man.mk /usr/tmp/root/usr/share/mk/bsd.man.mk
install -c -o bin -g bin  -m 444 bsd.nls.mk /usr/tmp/root/usr/share/mk/bsd.nls.mk
install -c -o bin -g bin  -m 444 bsd.obj.mk /usr/tmp/root/usr/share/mk/bsd.obj.mk
install -c -o bin -g bin  -m 444 bsd.own.mk /usr/tmp/root/usr/share/mk/bsd.own.mk
install -c -o bin -g bin  -m 444 bsd.prog.mk /usr/tmp/root/usr/share/mk/bsd.prog.mk
install -c -o bin -g bin  -m 444 bsd.subdir.mk /usr/tmp/root/usr/share/mk/bsd.subdir.mk
install -c -o bin -g bin  -m 444 bsd.sys.mk /usr/tmp/root/usr/share/mk/bsd.sys.mk
install -c -o bin -g bin  -m 444 sys.mk /usr/tmp/root/usr/share/mk/sys.mk
*** Can only configure for one host and one target at a time.
*** Can only configure for one host and one target at a time.
*** Can only configure for one host and one target at a time.
*** Can only configure for one host and one target at a time.
*** Can only configure for one host and one target at a time.
Usage: configure [OPTIONS] [HOST]

Options: [defaults in brackets]
 --prefix=MYDIR          install into MYDIR [/usr/local]
 --exec-prefix=MYDIR     install host-dependent files into MYDIR [/usr/local]
 --help                  print this message [normal config]
 --build=BUILD           configure for building on BUILD [BUILD=HOST]
 --host=HOST             configure for HOST [determined via config.guess]
 --norecursion           configure this directory only [recurse]
 --program-prefix=FOO    prepend FOO to installed program names [""]
 --program-suffix=FOO    append FOO to installed program names [""]
 --program-transform-name=P transform installed names by sed pattern P [""]
 --site=SITE             configure with site-specific makefile for SITE
 --srcdir=DIR            find the sources in DIR [. or ..]
 --target=TARGET         configure for TARGET [TARGET=HOST]
 --tmpdir=TMPDIR         create temporary files in TMPDIR [/tmp]
 --nfp                   configure for software floating point [hard float]
 --with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)
 --without-FOO           package FOO is NOT available
 --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
 --disable-FOO           do not include feature FOO

Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.

*** Error code 1

Stop.
root@harry  14:00:16/980815(...cross/crossppc-1.1)#


root@harry  14:01:42/980815(...cross/crossppc-1.1)# bsd-make -n "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n real-fetch
if [ ! -f /NetBSD/cross/crossppc-1.1/files/md5 ]; then  /bin/echo ">> No MD5 checksum file.";  else  (cd /NetBSD/pkgsrc/distfiles; OK="true";  for file in binutils-2.9.1.tar.gz egcs-1.0.3a.tar.gz /NetBSD/cross/crossppc-1.1/patches/patch-* /NetBSD/cross/crossppc-1.1/patches/egcs-103a-diff; do  CKSUM=`md5 < $file`;  CKSUM2=`/bin/grep "^MD5 ($file)" /NetBSD/cross/crossppc-1.1/files/md5 | /usr/bin/awk '{print $4}'`;  if [ "$CKSUM2" = "" ]; then  /bin/echo ">> No checksum recorded for $file.";  OK="false";  elif [ "$CKSUM2" = "IGNORE" ]; then  /bin/echo ">> Checksum for $file is set to IGNORE in md5 file even though";  /bin/echo "   the file is not in the "'$'"{IGNOREFILES} list.";  OK="false";  elif [ "$CKSUM" = "$CKSUM2" ]; then  /bin/echo ">> Checksum OK for $file.";  else  /bin/echo ">> Checksum mismatch for $file.";  OK="false";  fi;  done;  for file in ; do  CKSUM2=`/bin/grep "($file)" /NetBSD/cross/crossppc-1.1/files/md5 | /usr/bin/awk '{print $4}'`;  if [ "$CKSUM2" = "" ]!
 ; !
!
then  /bin/echo ">> No checksum recorded for $file, file is in "'$'"{IGNOREFILES} list.";  OK="false";  elif [ "$CKSUM2" != "IGNORE" ]; then  /bin/echo ">> Checksum for $file is not set to IGNORE in md5 file even though";  /bin/echo "   the file is in the "'$'"{IGNOREFILES} list.";  OK="false";  fi;  done;  if [ "$OK" != "true" ]; then  /bin/echo "Make sure the Makefile and md5 file (/NetBSD/cross/crossppc-1.1/files/md5)";  /bin/echo "are up to date.  If you want to override this check, type";  /bin/echo "\"make NO_CHECKSUM=yes [other args]\".";  exit 1;  fi) ;  fi
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n real-configure
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n real-build
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n real-install


root@harry  14:01:48/980815(...cross/crossppc-1.1)#  bsd-make  -n real-configure
/bin/echo "===>  Configuring for crossppc-1.1"
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n pre-configure
if [ -f /NetBSD/cross/crossppc-1.1/scripts/pre-configure ]; then  cd /NetBSD/cross/crossppc-1.1 && /bin/env BSD_INSTALL_PROGRAM="install   -o  -g  -m "  BSD_INSTALL_SCRIPT="install  -o  -g  -m "  BSD_INSTALL_DATA="install  -o  -g  -m "  BSD_INSTALL_MAN="install  -o  -g  -m " CURDIR=/NetBSD/cross/crossppc-1.1 DISTDIR=/NetBSD/pkgsrc/distfiles  WRKDIR=/NetBSD/cross/crossppc-1.1/work WRKSRC=/NetBSD/cross/crossppc-1.1/work/build PATCHDIR=/NetBSD/cross/crossppc-1.1/patches  SCRIPTDIR=/NetBSD/cross/crossppc-1.1/scripts FILESDIR=/NetBSD/cross/crossppc-1.1/files  PORTSDIR=/NetBSD/pkgsrc DEPENDS=""  PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/X11R6 /bin/sh  /NetBSD/cross/crossppc-1.1/scripts/pre-configure;  fi
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n do-configure
cd /NetBSD/cross/crossppc-1.1 && bsd-make  -n post-configure
if [ -f /NetBSD/cross/crossppc-1.1/scripts/post-configure ]; then  cd /NetBSD/cross/crossppc-1.1 && /bin/env BSD_INSTALL_PROGRAM="install   -o  -g  -m "  BSD_INSTALL_SCRIPT="install  -o  -g  -m "  BSD_INSTALL_DATA="install  -o  -g  -m "  BSD_INSTALL_MAN="install  -o  -g  -m " CURDIR=/NetBSD/cross/crossppc-1.1 DISTDIR=/NetBSD/pkgsrc/distfiles  WRKDIR=/NetBSD/cross/crossppc-1.1/work WRKSRC=/NetBSD/cross/crossppc-1.1/work/build PATCHDIR=/NetBSD/cross/crossppc-1.1/patches  SCRIPTDIR=/NetBSD/cross/crossppc-1.1/scripts FILESDIR=/NetBSD/cross/crossppc-1.1/files  PORTSDIR=/NetBSD/pkgsrc DEPENDS=""  PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/X11R6 /bin/sh  /NetBSD/cross/crossppc-1.1/scripts/post-configure;  fi
/bin/touch -f /NetBSD/cross/crossppc-1.1/work/.configure_done


root@harry  14:02:02/980815(...cross/crossppc-1.1)# bsd-make  -n do-configure
(/bin/mkdir -p /NetBSD/cross/crossppc-1.1/work/build)
(cd /NetBSD/cross/crossppc-1.1/work/build && /NetBSD/cross/crossppc-1.1/work/src/configure --prefix=/usr/local --target=powerpc-netbsd --with-gnu-as --with-gnu-ld --prefix=/usr/local)


root@harry  14:02:16/980815(...cross/crossppc-1.1)# (cd /NetBSD/cross/crossppc-1.1/work/build && /NetBSD/cross/crossppc-1.1/work/src/configure --prefix=/usr/local --target=powerpc-netbsd --with-gnu-as --with-gnu-ld --prefix=/usr/local)


checking how to run the C preprocessor... (cached) gcc -E
checking lex output file root... /NetBSD/cross/crossppc-1.1/work/src/binutils/configure: lex: command not found
configure: error: cannot find output from lex; giving up
Configure in /NetBSD/cross/crossppc-1.1/work/build/binutils failed, exiting.
root@harry  14:04:59/980815(...cross/crossppc-1.1)# 

flex を入れようとすると yacc がないという。
bison-1.25a
flex-2.5.4a 
を入れる。

もう一度次のところから。
root@harry  14:06:59/980815(...cross/crossppc-1.1)# ( cd /NetBSD/cross/crossppc-1.1/work/build && /NetBSD/cross/crossppc-1.1/work/src/configure --prefix=/usr/local --target=powerpc-netbsd --with-gnu-as --with-gnu-ld --prefix=/usr/local )


Using `/NetBSD/cross/crossppc-1.1/work/src/gcc/config/rs6000/rs6000.c' to output insns.
Using `/NetBSD/cross/crossppc-1.1/work/src/gcc/config/rs6000/rs6000.md' as machine description file.
Using `/NetBSD/cross/crossppc-1.1/work/src/gcc/config/rs6000/netbsd.h' as target machine macro file.
Using `/NetBSD/cross/crossppc-1.1/work/src/gcc/config/rs6000/xm-sysv4.h' as host machine macro file.
Using `/NetBSD/cross/crossppc-1.1/work/src/gcc/objc/thr-single.c' as Objective-C Runtime thread file.
Links are now set up to build a cross-compiler for powerpc-unknown-netbsd
  from powerpc-unknown-linux-gnulibc1.
updating cache ../config.cache
creating ./config.status
creating Makefile
creating cp/Makefile
creating config.h
Merged x-linux.
Merged t-libc-ok.
Created `f/Makefile'.
Merged x-linux.
Merged t-libc-ok.
Created `objc/Makefile'.
Configuring etc...
loading cache ../config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
root@harry  14:20:04/980815(...cross/crossppc-1.1)#


root@harry  14:20:04/980815(...cross/crossppc-1.1)# bsd-make real-configure
したらもう一度やってしまった。

root@harry  14:25:50/980815(...cross/crossppc-1.1)# bsd-make real-build
===>  Building for crossppc-1.1
/bin/sh: /bin/env: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
root@harry  14:25:58/980815(...cross/crossppc-1.1)# 

root@harry  14:26:35/980815(...cross/crossppc-1.1)# ln -s /usr/bin/env /bin/env

In file included from /NetBSD/cross/crossppc-1.1/work/src/gcc/libgcc2.c:37:
include/stddef.h:28: machine/ansi.h: No such file or directory
gmake[1]: *** [libgcc2.a] Error 1
gmake[1]: Leaving directory `/NetBSD/cross/crossppc-1.1/work/build/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2

(history)
     1  14:00   bsd-make "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install

     3  14:01   bsd-make -n "PREFIX=/usr/C TARGET_MACHINE=macppc ALLSRC=/NetBSD/usr/src  TARGET_ROOT=/usr/tmp/root" install
     4  14:02   bsd-make -n real-configure
     5  14:02   bsd-make -n do-configure
     6  14:02   ( cd /NetBSD/cross/crossppc-1.1/work/build && /NetBSD/cross/crossppc-1.1/work/src/configure --prefix=/usr/local --target=powerpc-netbsd --with-gnu-as --with-gn
u-ld --prefix=/usr/local )

    15  14:22   bsd-make real-configure
    16  14:25   bsd-make real-build
    17  14:26   which env
    18  14:26   ln -s /usr/bin/env /bin/env
    19  14:27   bsd-make real-build

root@harry  14:51:08/980815(...cross/crossppc-1.1)# find /NetBSD -name ansi.h
/NetBSD/usr/src/sys/arch/alpha/include/ansi.h
/NetBSD/usr/src/sys/arch/amiga/include/ansi.h
/NetBSD/usr/src/sys/arch/arm32/include/ansi.h
/NetBSD/usr/src/sys/arch/atari/include/ansi.h
/NetBSD/usr/src/sys/arch/bebox/include/ansi.h
/NetBSD/usr/src/sys/arch/hp300/include/ansi.h
/NetBSD/usr/src/sys/arch/i386/include/ansi.h
/NetBSD/usr/src/sys/arch/m68k/include/ansi.h
/NetBSD/usr/src/sys/arch/mac68k/include/ansi.h
/NetBSD/usr/src/sys/arch/mips/include/ansi.h
/NetBSD/usr/src/sys/arch/mvme68k/include/ansi.h
/NetBSD/usr/src/sys/arch/pc532/include/ansi.h
/NetBSD/usr/src/sys/arch/pica/include/ansi.h
/NetBSD/usr/src/sys/arch/pmax/include/ansi.h
/NetBSD/usr/src/sys/arch/powerpc/include/ansi.h
/NetBSD/usr/src/sys/arch/sparc/include/ansi.h
/NetBSD/usr/src/sys/arch/sun3/include/ansi.h
/NetBSD/usr/src/sys/arch/sun3x/include/ansi.h
/NetBSD/usr/src/sys/arch/vax/include/ansi.h
/NetBSD/usr/src/sys/arch/x68k/include/ansi.h
root@harry  14:58:08/980815(...cross/crossppc-1.1)# 

---
(藤原)