[Armadillo:03558] Re: emdebianによるeabiビルド

橋本 佳己 email@hidden
2008年 10月 17日 (金) 15:48:36 JST


竹之下 様

いつもお世話になっております。
SFTの橋本です。

先日、お送りしたエラーについては
何とか解決しました。
新たに下記のエラーが発生したので
/home/bagside/Desktop/kernel/atmark-dist-20080617/user/opensshのMakefileを
以下のように修正しました。
しかし、別のエラーが発生してしまい対応内容を調べましたが
判りませんでした。
もし、竹之下様の方で情報がありましたら
教えて頂けないでしょうか?

【前回送付したエラー内容】
make[2]: Entering directory `/home/bagside/Desktop/kernel/atmark-dist-20080617/user/busybox'
sh ./mkconfig > .config.tmp
if cmp -s .config.mkconfig .config.tmp ; \
        then \
                rm -f .config.tmp ; \
        else \
                mv -f .config.tmp .config.mkconfig ; \
        fi
make[2]: *** No rule to make target `/home/bagside/Desktop/kernel/atmark-dist-20080617/user/busybox/.config', needed by
`/home/bagside/Desktop/kernel/atmark-dist-20080617/user/busybox/applets/applets.o'.  Stop.
make[2]: Leaving directory `/home/bagside/Desktop/kernel/atmark-dist-20080617/user/busybox'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bagside/Desktop/kernel/atmark-dist-20080617/user'
make: *** [subdirs] Error 1
★このエラーについては、対処できました。(「.config.tmp」が「.config.config.tmp」になっていました。)

【新規エラー内容】
make[2]: Entering directory 
`/home/bagside/Desktop/kernel/atmark-dist-20080617/user/openssh'
(cd openssh-4.3p2; \
         ./configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabi-gnu \
                      );\

checking for arm-linux-gnueabi-gnu-gcc... arm-linux-gnueabi-gcc 
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabi-gcc  accepts -g... yes
checking for arm-linux-gnueabi-gcc  option to accept ISO C89... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `arm-linux-gnueabi-gnu': machine `arm-linux-gnueabi' not recognized
configure: error: /bin/sh ./config.sub arm-linux-gnueabi-gnu failed
make[2]: *** [openssh-4.3p2/Makefile] Error 1
make[2]: Leaving directory 
`/home/bagside/Desktop/kernel/atmark-dist-20080617/user/openssh'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/bagside/Desktop/kernel/atmark-dist-20080617/user'
make: *** [subdirs] Error 1

【Makefileの修正内容】
MAKEHOST = $(shell $(SRC_DIR)/config.guess)
MAKETARGET = $(CROSS)gnu <-------------------------- この部分をarm-linux-gnueabiに変更
CONF_OPT = 
CONF_OPT_MISC =

【修正後のエラー内容】
checking whether system supports SO_PEERCRED getsockopt... yes
checking for (overly) strict mkstemp... yes
checking if openpty correctly handles controlling tty... cross-compiling
checking whether getpgrp requires zero arguments... yes
configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***
make[2]: *** [openssh-4.3p2/Makefile] Error 1
make[2]: Leaving directory 
`/home/bagside/Desktop/kernel/atmark-dist-20080617/user/openssh'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/bagside/Desktop/kernel/atmark-dist-20080617/user'
make: *** [subdirs] Error 1

エラー内容から、ライブラリ(libcrypto)が見付からない為にエラーが発生している
ようですが、このライブラリの入手先等をご存知でしたら教えて頂けないでしょうか?

以上、宜しくお願い致します。


/------------------------------------------------------/
  株式会社エス・エフ・ティー 秋田開発センター
           橋本 佳己

     Mail: email@hidden
     Tel: 018-825-5530 Fax: 018-825-5531

    〒010-0001
    秋田県秋田市中通2丁目2番32号 住友生命秋田ビル7階
/------------------------------------------------------/
 

> -----Original Message-----
> From: email@hidden 
> [mailto:email@hidden] On Behalf 
> Of Takenoshita Koyo
> Sent: Thursday, October 09, 2008 2:01 PM
> To: Armadillo series general discussion list
> Subject: [Armadillo:03526] Re:emdebianによるeabiビルド
> 
> > 次にカーネルをインストールしたのですが、「make menuconfig」ができませ
> ん。
> > 「make config」は正常に動作しました。
> > エラーの内容「/usr/bin/ld: crt1.o: No such file: No such file or 
> directory」から
> > "crtl.o"ファイルが存在しない為だと考えられます。
> おしいところまでいっていると思うのです。
> エラーメッセージまで分かっているのですから、まずは検索してみませんか?
> 
> 「/usr/bin/ld: crt1.o: No such file: No such file or directory」
> でgoogle検索してみると、一番始めに
> http://www.machu.jp/diary/20050414.html#p01
> というページがでてきました。
> 
> さらに、
> 「debian /usr/bin/ld: crt1.o: No such file: No such file or directory」
> で検索すると、その検索結果では一番始めに
> http://q.hatena.ne.jp/1193035971
> というページもでてきました。
> 
> 2008-10-09 (木) の 12:52 +0900 に 橋本 佳己 さんは書きました:
> > To:竹之下 様
> > 
> > SFTの橋本です。
> > いつもお世話になっております。
> > 
> > 下記サイトの通り実行して正常にインストールできました。
> > 
> > > http://www.emdebian.org/tools/crosstools.html
> > > emdebianのツールチェインをインストールする手順は、
> > > このサイトに書いてあるままです。
> > > apt-get するまえに、/etc/apt/source.listも書き換えてください。
> > 
> > 次にカーネルをインストールしたのですが、「make menuconfig」ができません。
> > 「make config」は正常に動作しました。
> > エラーの内容「/usr/bin/ld: crt1.o: No such file: No such file or 
> directory」から
> > "crtl.o"ファイルが存在しない為だと考えられます。
> > 
> > 自己責任で「Debian Lnny」を使用するように言われていたので
> > このような質問をするのは、大変恐縮ですが・・・
> > もし、何か情報がありましたらご教示お願い致します。
> > 
> > 【エラー内容】
> > bagvapp:/home/bagside/Desktop/kernel/atmark-dist-20080617# make 
> > menuconfig config/mkconfig > config.in make -C 
> > 
> /home/bagside/Desktop/kernel/atmark-dist-20080617/config/scripts/lxdia
> > log all
> > make[1]: Entering directory 
> `/home/bagside/Desktop/kernel/atmark-dist-20080617/config/scri
> pts/lxdialog'
> > /usr/bin/ld: crt1.o: No such file: No such file or directory
> > collect2: ld returned 1 exit status
> > 
> > >> Unable to find the Ncurses libraries.
> > >>
> > >> You must have Ncurses installed in order to use 'make menuconfig'
> > 
> > make[1]: *** [ncurses] Error 1
> > make[1]: Leaving directory 
> `/home/bagside/Desktop/kernel/atmark-dist-20080617/config/scri
> pts/lxdialog'
> > make: *** [menuconfig] Error 2
> > 
> > 当然ですが、下記の対応も行っております。
> > > > > > 1. クロスコンパイル用のツールチェインをインストール
> > > > > > email@hidden:~/$ sudo apt-get install libc6-armel-cross 
> > > > > > libc6-dev-armel-cross binutils-arm-linux-gnueabi 
> > > > > > gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi 
> > > > > > linux-kernel-headers-arm-cross
> > > > > > 
> > > > > > 2. arm-linux-gnuの代わりに、arm-linux-gnueabi-*を使うようにatmark-dist修
> > > > > > 正
> > > > > > 
> > > > > > diff --git a/vendors/AtmarkTechno/Armadillo-500/config.arch
> > > > > > b/vendors/AtmarkTechno/Armadillo-500/config.arch
> > > > > > index 962d142..ae56b5a 100644
> > > > > > --- a/vendors/AtmarkTechno/Armadillo-500/config.arch
> > > > > > +++ b/vendors/AtmarkTechno/Armadillo-500/config.arch
> > > > > > @@ -20,7 +20,7 @@ CONSOLE_BAUD_RATE = 9600  # 
> STRIP_EXTRA_OPT 
> > > > > > := --remove-section=.note --remove-section=.comment  # 
> > > > > > STRIP_EXTRA_LIBOPT := --remove-section=.note 
> > > > > > --remove-section=.comment --strip-unneeded
> > > > > > 
> > > > > > -VENDOR_CFLAGS = -I/usr/arm-linux/include 
> -I$(GCC_DIR)/include
> > > > > > +VENDOR_CFLAGS = -I/usr/arm-linux-gnueabi/include 
> > > > > > +-I$(GCC_DIR)/include
> > > > > > 
> > > > > > 
> > > > > > 
> ##############################################################
> > > > > > ##############
> > > > > > 
> > > > > > diff --git a/vendors/config/arm/config.arch 
> > > > > > b/vendors/config/arm/config.arch index 
> 2385eb7..55129ca 100644
> > > > > > --- a/vendors/config/arm/config.arch
> > > > > > +++ b/vendors/config/arm/config.arch
> > > > > > @@ -57,7 +57,7 @@ endif
> > > > > > 
> > > > > >  MACHINE       = arm
> > > > > >  ARCH          = arm
> > > > > > -CROSS_COMPILE = arm-linux-
> > > > > > +CROSS_COMPILE = arm-linux-gnueabi-
> > > > > >  CROSS         = $(CROSS_COMPILE)
> > > > > > 
> > > > > >  CC        = $(CROSS_COMPILE)gcc $(CPUCFLAGS)
> > 
> > 以上、宜しくお願い致します。
> > 
> > /------------------------------------------------------/
> >   株式会社エス・エフ・ティー 秋田開発センター
> >            橋本 佳己
> > 
> >      Mail: email@hidden
> >      Tel: 018-825-5530 Fax: 018-825-5531
> > 
> >     〒010-0001
> >     秋田県秋田市中通2丁目2番32号 住友生命秋田ビル7階
> > /------------------------------------------------------/
> >  
> > 
> > > -----Original Message-----
> > > From: email@hidden
> > > [mailto:email@hidden] On Behalf Of 
> > > Takenoshita Koyo
> > > Sent: Wednesday, October 08, 2008 6:21 PM
> > > To: Armadillo series general discussion list
> > > Subject: [Armadillo:03517] Re:emdebianによるeabiビルド
> > > 
> > > すみません。一手抜けていました。
> > > 
> > > http://www.emdebian.org/tools/crosstools.html
> > > emdebianのツールチェインをインストールする手順は、
> > > このサイトに書いてあるままです。
> > > apt-get するまえに、/etc/apt/source.listも書き換えてください。
> > > 
> > > 2008-10-08 (水) の 18:13 +0900 に 橋本 佳己 さんは書きました:
> > > > To:竹之下 様
> > > > 
> > > > SFTの橋本です。
> > > > いつもお世話になっております。
> > > > 
> > > > 教えて頂いたサイトから、「Debian Lenny」をダウンロードを行い
> > > > クロスコンパイル用のツールチェインをインストールを実行したら
> > > > 下記の様なエラーが発生しました。
> > > > 
> > > > bagvapp:/home/bagside# sudo apt-get install libc6-armel-cross 
> > > > libc6-dev-armel-cross binutils-arm-linux-gnueabi 
> > > > gcc-4.3-arm-linux-gnueabi g++-4.3-arm-linux-gnueabi
> > > linux-kernel-headers-arm-cross Reading package lists... Done
> > > > Building dependency tree       
> > > > Reading state information... Done
> > > > E: Couldn't find package libc6-armel-cross ← エラー内容
> > > > 
> > > > 下記の作業は実行してませんが、直接「Debian Lenny」をダウンロードして
> > > > インストールを行ったので必要ないと考えています。
> > > > > /etc/apt/source.list
> > > > > のetchとなっているところを、lennyに書き換え、
> > > > > 
> > > > > $ sudo apt-get update
> > > > > $ sudo apt-get dist-upgade
> > > > > で、etchからlennyへのアップグレードが(普通なら)できます。
> > > > 
> > > > 以上、宜しくお願い致します。
> > > > 
> > > > /------------------------------------------------------/
> > > >   株式会社エス・エフ・ティー 秋田開発センター
> > > >            橋本 佳己
> > > > 
> > > >      Mail: email@hidden
> > > >      Tel: 018-825-5530 Fax: 018-825-5531
> > > > 
> > > >     〒010-0001
> > > >     秋田県秋田市中通2丁目2番32号 住友生命秋田ビル7階
> > > > /------------------------------------------------------/
> > > >  
> > > > 
> > > > > -----Original Message-----
> > > > > From: email@hidden
> > > > > [mailto:email@hidden] On 
> Behalf Of 
> > > > > Takenoshita Koyo
> > > > > Sent: Wednesday, October 08, 2008 3:22 PM
> > > > > To: Armadillo series general discussion list
> > > > > Subject: [Armadillo:03514] Re:emdebianによるeabiビルド
> > > > > 
> > > > > > http://www.vmware.com/appliances/directory/1000
> > > > > の方は試されましたでしょうか?
> > > > > 
> > > > > 正直、ATDE2をdist-upgradeするのは、お薦めできません。
> > > > > 
> > > > > 
> > > > > 
> > > > > > 1./etc/apt/sources.listの"etch"を"lenny"へ置換
> > > > > > 2.$sudo apt-get updateを実行
> > > > > >   下記の様に実行されて、一部エラーが起きてますが、
> > > > > >   問題ないのでしょうか?
> > > > > >   atmark-techno.comには、lenny/ Packagesは無いみたいですが・・・
> > > > > atmark-techno.comのダウンロードサイトに
> > > > > lenny用のパッケージは置いてありません。
> > > > > emdebianのツールチェインに切替えるつもりでしたので、
> > > > > /etc/apt/source.listの該当行をコメントアウトしました。
> > > > > 
> > > > > ※このあとも、色々エラーが出てきます。
> > > > > 途中でGUIやマウスが使えなくなるということは、先のメールで書いた通りで
> > > > > す。
> > > > > また、docbook-xmlのupgradeに失敗します。
> > > > > その場合は、
> > > > > dpkg --purge docbook-xml
> > > > > してからdist-upgradeしました。
> > > > > 
> > > > > その他、vmwareやDebian etch/lennyに関するエラーは、
> > > > > 検索エンジンやそれぞれのMLがあると思いますので、
> > > > > そちらをご活用下さい。
> > > > > 
> > > > > --
> > > > > Takenoshita Koyo
> > > > > 
> > > > > _______________________________________________
> > > > > armadillo mailing list
> > > > > email@hidden 
> > > > > 
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadill
> > > > > o
> > > > > 
> > > > 
> > > > 
> > > --
> > > Takenoshita Koyo
> > > 
> > > _______________________________________________
> > > armadillo mailing list
> > > email@hidden
> > > http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> > > 
> > 
> > 
> --
> Takenoshita Koyo
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
> 





armadillo メーリングリストの案内