H8,SH,マイコン,ぼやき川柳,ダウンロード


 ポチはgccではなくHEW派なのですが、Interface誌のLCDサンプルがgccで出来ておりcygwinをインストールしています
 想像以上に苦労しています。CソースをHEW用にコンバートしたほうが早かったかも!?
 発売された頃は確か出来たと思ったのですが、いきなり訂正記事(arm→sh:相変わらずムカつく。何で確認してないのか?)
 があり、説明もかなり不親切なので本当に昔動いていたか怪しい・・?

 Cygwinは32bit版をインストールする必要がある(gcc makeで失敗)
 Cygwinのパッケージオプションは参考させていただきました

sh-toolsって何?


 パブロフの犬の如く書いてある通り入力するのみ。右も左も分からないので記事を盲信するしかない。その肝心の記事が間違いだらけでは、何処に連れて行かれるやら・・・?
 Interfaceのダウンロードページ、2010年7月号6章「ビルド済みGCCおよび各種ツール一式」をダウンロード。本誌の記述では sh2a-gnu.tar.gz となっていますが、実際にダウンロードされるのは sh-tools20100424.tar.bz2 。
 解凍すると gmp-4.3.0、mpfr-2.4.1、sh-toolsの3つのデレクトリが出来るみたいです

 
s@s-VAIO ~
$ ls -l
合計 63560
-rwxr-xr-x 1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$ tar jxvf sh-tools20100424.tar.bz2
sh-tools/
sh-tools/info/
sh-tools/info/dir
sh-tools/info/binutils.info
sh-tools/info/as.info
sh-tools/info/gprof.info
sh-tools/info/ld.info
sh-tools/info/cpp.info
sh-tools/info/gcc.info
   :
   :
   :
mpfr-2.4.1/share/info/mpfr.info
mpfr-2.4.1/share/info/dir
gmp-4.3.0/
gmp-4.3.0/info/
gmp-4.3.0/info/gmp.info
gmp-4.3.0/info/gmp.info-1
gmp-4.3.0/info/gmp.info-2
gmp-4.3.0/info/dir
gmp-4.3.0/lib/
gmp-4.3.0/lib/libgmp.la
gmp-4.3.0/lib/libgmp.a
gmp-4.3.0/include/
gmp-4.3.0/include/gmp.h

s@s-VAIO ~
$ ls -l
合計 63564
drwxr-xr-x+ 1 s None        0 4月  24  2009 gmp-4.3.0
drwxr-xr-x+ 1 s None        0 4月  24  2009 mpfr-2.4.1
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~

 libiconv をインストール(64bit版のCygwinには入っているみたい)





s@s-VAIO ~
$ find / -name libiconv.la -print
/lib/libiconv.la
/usr/lib/libiconv.la

s@s-VAIO ~
$

binutils-000: tar jxvf binutils-2.23.1.tar.bz2


binutils はネットからダウンロードする必要がある
binutils-2.19.tar.bz2は意味不明のmakeエラー

s@s-VAIO ~
$ ls
binutils-2.23.1.tar.bz2  gmp-4.3.0          mpfr-2.4.1          sh-tools
gcc-4.4.0.tar.bz2        gmp-4.3.0.tar.bz2  mpfr-2.4.1.tar.bz2  sh-tools20100424.tar.bz2

s@s-VAIO ~
$ tar jxvf binutils-2.23.1.tar.bz2
binutils-2.23.1/bfd/.gitignore
binutils-2.23.1/bfd/acinclude.m4
binutils-2.23.1/bfd/aclocal.m4
binutils-2.23.1/bfd/aix386-core.c
binutils-2.23.1/bfd/aix5ppc-core.c
  :
  :
binutils-2.23.1/setup.com
binutils-2.23.1/src-release
binutils-2.23.1/symlink-tree
binutils-2.23.1/texinfo/texinfo.tex
binutils-2.23.1/ylwrap

s@s-VAIO ~
$

s@s-VAIO ~
$ ls -l
合計 148668
drwxr-xr-x+ 1 s None        0 8月  25 08:58 binutils-2.23.1
-rwxr-xr-x  1 s None 21455321 8月  19 22:22 binutils-2.23.1.tar.bz2
-rwxr-xr-x  1 s None 62708198 8月  25 07:48 gcc-4.4.0.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  24  2009 gmp-4.3.0
-rwxr-xr-x  1 s None  1897926 8月  25 07:46 gmp-4.3.0.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  24  2009 mpfr-2.4.1
-rwxr-xr-x  1 s None  1064281 8月  20 07:35 mpfr-2.4.1.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$

ツールの組み合わせ


 余りにも沢山やり直したので、確かではありませんが以下のバージョンの組み合わせかと・・?
 全く自信ありません。微妙な違いで簡単に失敗します
■ ツール バージョン  備考 
■ Cygwin    1.7.25  32bitバージョン   
■ gcc 4.8.1  
■ gmp 4.3.2  
■ mpc 1.0.1  
■ mpfr 2.4.2  



binutils 001 ./configure --target=sh-elf --prefix=/usr/local/sh-tools


s@s-VAIO ~/binutils-2.23.1
$ ./configure --target=sh-elf --prefix=/usr/local/sh-tools
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... sh-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
  :
  :
checking where to find the target windmc... just compiled
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile

s@s-VAIO ~/binutils-2.23.1
$

s@s-VAIO ~/binutils-2.23.1
$ ls
bfd           config.status  COPYING3.LIB  include         ltmain.sh     Makefile.tpl    README
binutils      config.sub     cpu           install-sh      ltoptions.m4  makefile.vms    README-maintainer-mode
ChangeLog     config-ml.in   depcomp       intl            ltsugar.m4    md5.sum         serdep.tmp
compile       configure      elfcpp        ld              ltversion.m4  missing         setup.com
config        configure.ac   etc           libiberty       MAINTAINERS   mkdep           src-release
config.guess  COPYING        gas           libtool.m4      Makefile      mkinstalldirs   symlink-tree
config.log    COPYING.LIB    gold          lt~obsolete.m4  Makefile.def  move-if-change  texinfo
config.rpath  COPYING3       gprof         ltgcc.m4        Makefile.in   opcodes         ylwrap

s@s-VAIO ~/binutils-2.23.1
$


binutils 002


 makeは結構時間掛かります

s@s-VAIO ~/binutils-2.23.1
$ make
make[1]: ディレクトリ `/home/s/binutils-2.23.1' に入ります
Configuring in ./libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) makeinfo --split-size=5000000
checking for perl... (cached) perl
checking build system type... (cached) i686-pc-cygwin
checking host system type... (cached) i686-pc-cygwin
checking for i686-pc-cygwin-ar... (cached) ar
  :
  :
ake[1]: `all-target' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/binutils-2.23.1' から出ます

s@s-VAIO ~/binutils-2.23.1
$ ^C

s@s-VAIO ~/binutils-2.23.1
$ ^C

s@s-VAIO ~/binutils-2.23.1
$

s@s-VAIO ~/binutils-2.23.1
$ ls
bfd           config.status  COPYING3.LIB  include         ltmain.sh     Makefile.tpl    README
binutils      config.sub     cpu           install-sh      ltoptions.m4  makefile.vms    README-maintainer-mode
ChangeLog     config-ml.in   depcomp       intl            ltsugar.m4    md5.sum         serdep.tmp
compile       configure      elfcpp        ld              ltversion.m4  missing         setup.com
config        configure.ac   etc           libiberty       MAINTAINERS   mkdep           src-release
config.guess  COPYING        gas           libtool.m4      Makefile      mkinstalldirs   symlink-tree
config.log    COPYING.LIB    gold          lt~obsolete.m4  Makefile.def  move-if-change  texinfo
config.rpath  COPYING3       gprof         ltgcc.m4        Makefile.in   opcodes         ylwrap

s@s-VAIO ~/binutils-2.23.1
$

binutils-003: make install


s@s-VAIO ~/binutils-2.23.1
$ ls /usr/local/
bin  etc  lib

s@s-VAIO ~/binutils-2.23.1
$ make install
make[1]: ディレクトリ `/home/s/binutils-2.23.1' に入ります
/bin/sh ./mkinstalldirs /usr/local/sh-tools  /usr/local/sh-tools
mkdir -p -- /usr/local/sh-tools /usr/local/sh-tools
make[2]: ディレクトリ `/home/s/binutils-2.23.1/bfd' に入ります
make  install-recursive
make[3]: ディレクトリ `/home/s/binutils-2.23.1/bfd' に入ります
Making install in doc
  :
  :
  :
    /usr/bin/install -c -m 644 $h ${thd}; \
  done; \
fi
make[3]: ディレクトリ `/home/s/binutils-2.23.1/libiberty/testsuite' に入ります
make[3]: `install' に対して行うべき事はありません.
make[3]: ディレクトリ `/home/s/binutils-2.23.1/libiberty/testsuite' から出ます
make[2]: ディレクトリ `/home/s/binutils-2.23.1/libiberty' から出ます
make[1]: `install-target' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/binutils-2.23.1' から出ます

s@s-VAIO ~/binutils-2.23.1
$ ls -l /usr/local/
合計 0
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 09:34 sh-tools

s@s-VAIO ~/binutils-2.23.1
$

s@s-VAIO ~/binutils-2.23.1
$

binutils 004






gmp-000: ./configure --prefix=/usr/local/gmp-4.3.0


gmpが先でしょう!


s@s-VAIO ~
$ ls -l
合計 84504
-rwxr-xr-x  1 s None 21440347 8月  19 21:56 binutils-2.23.2.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  24  2009 gmp-4.3.0
drwxr-xr-x+ 1 s None        0 4月  24  2009 mpfr-2.4.1
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$ cd gmp-4.3.0/

s@s-VAIO ~/gmp-4.3.0
$ ls
include  info  lib

s@s-VAIO ~/gmp-4.3.0
$ ./configure --prefix=/usr/local/gmp-4.3.0
-bash: ./configure: No such file or directory

s@s-VAIO ~/gmp-4.3.0
$ cd ..

s@s-VAIO ~
$ ls -l
合計 86648
-rwxr-xr-x  1 s None 21440347 8月  19 21:56 binutils-2.23.2.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  24  2009 gmp-4.3.0
-rwxr-xr-x  1 s None  2194495 8月  20 07:18 gmp-5.1.2.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  24  2009 mpfr-2.4.1
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$ tar jxvf gmp-5.1.2.tar.bz2
gmp-5.1.2/
gmp-5.1.2/nextprime.c
gmp-5.1.2/mp_get_fns.c
gmp-5.1.2/assert.c
gmp-5.1.2/doc/
  :
  :




gmp 001: ./configure --prefix=/usr/local/gmp-4.3.0


gmpが先でしょう!

s@s-VAIO ~
$ cd gmp-4.3.0

s@s-VAIO ~/gmp-4.3.0
$ ls
acinclude.m4  configfsf.guess  extract-dbl.c  INSTALL.autoconf  missing        mpq         randmt.c        tal-reent.c
aclocal.m4    configfsf.sub    gen-bases.c    install-sh        mp_bpl.c       mpz         randmt.h        tests
ansi2knr.1    configure        gen-fac_ui.c   invalid.c         mp_clz_tab.c   NEWS        randmts.c       tune
ansi2knr.c    configure.in     gen-fib.c      lib               mp_dv_tab.c    printf      randmui.c       version.c
assert.c      COPYING          gen-psqr.c     libmp.sym         mp_get_fns.c   rand.c      rands.c
AUTHORS       COPYING.LIB      gmp-h.in       longlong.h        mp_minv_tab.c  randbui.c   randsd.c
ChangeLog     cxx              gmp-impl.h     ltmain.sh         mp_set_fns.c   randclr.c   randsdui.c
compat.c      demos            gmpxx.h        macos             mpbsd          randdef.c   README
config.guess  doc              include        Makefile.am       mpf            randiset.c  scanf
config.in     dumbmp.c         info           Makefile.in       mp-h.in        randlc2s.c  tal-debug.c
config.sub    errno.c          INSTALL        memory.c          mpn            randlc2x.c  tal-notreent.c

s@s-VAIO ~/gmp-4.3.0
$ ./configure --prefix=/usr/local/gmp-4.3.0
checking build system type... atom-pc-cygwin
checking host system type... atom-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=64
  :
  :
config.status: linking ./mpn/x86/umul.asm to mpn/umul.asm
config.status: linking ./mpn/x86/udiv.asm to mpn/udiv.asm
config.status: linking ./mpn/x86/copyi.asm to mpn/copyi.asm
config.status: linking ./mpn/x86/copyd.asm to mpn/copyd.asm
config.status: linking ./mpn/generic/addsub_n.c to mpn/addsub_n.c
config.status: linking ./mpn/x86/gmp-mparam.h to gmp-mparam.h

s@s-VAIO ~/gmp-4.3.0
$

s@s-VAIO ~/gmp-4.3.0
$ ls
acinclude.m4  config.m4        dumbmp.c       include           Makefile       mpbsd      randiset.c  stamp-h1
aclocal.m4    config.status    errno.c        info              Makefile.am    mpf        randlc2s.c  tal-debug.c
ansi2knr.1    config.sub       extract-dbl.c  INSTALL           Makefile.in    mp-h.in    randlc2x.c  tal-notreent.c
ansi2knr.c    configfsf.guess  gen-bases.c    INSTALL.autoconf  memory.c       mpn        randmt.c    tal-reent.c
assert.c      configfsf.sub    gen-fac_ui.c   install-sh        missing        mpq        randmt.h    tests
AUTHORS       configure        gen-fib.c      invalid.c         mp.h           mpz        randmts.c   tune
ChangeLog     configure.in     gen-psqr.c     lib               mp_bpl.c       NEWS       randmui.c   version.c
compat.c      COPYING          gmp.h          libmp.sym         mp_clz_tab.c   printf     rands.c
config.guess  COPYING.LIB      gmp-h.in       libtool           mp_dv_tab.c    rand.c     randsd.c
config.h      cxx              gmp-impl.h     longlong.h        mp_get_fns.c   randbui.c  randsdui.c
config.in     demos            gmp-mparam.h   ltmain.sh         mp_minv_tab.c  randclr.c  README
config.log    doc              gmpxx.h        macos             mp_set_fns.c   randdef.c  scanf

s@s-VAIO ~/gmp-4.3.0
$





gmp 002: make


s@s-VAIO ~/gmp-4.3.0
$ ls
acinclude.m4  config.m4        dumbmp.c       include           Makefile       mpbsd      randiset.c  stamp-h1
aclocal.m4    config.status    errno.c        info              Makefile.am    mpf        randlc2s.c  tal-debug.c
ansi2knr.1    config.sub       extract-dbl.c  INSTALL           Makefile.in    mp-h.in    randlc2x.c  tal-notreent.c
ansi2knr.c    configfsf.guess  gen-bases.c    INSTALL.autoconf  memory.c       mpn        randmt.c    tal-reent.c
assert.c      configfsf.sub    gen-fac_ui.c   install-sh        missing        mpq        randmt.h    tests
AUTHORS       configure        gen-fib.c      invalid.c         mp.h           mpz        randmts.c   tune
ChangeLog     configure.in     gen-psqr.c     lib               mp_bpl.c       NEWS       randmui.c   version.c
compat.c      COPYING          gmp.h          libmp.sym         mp_clz_tab.c   printf     rands.c
config.guess  COPYING.LIB      gmp-h.in       libtool           mp_dv_tab.c    rand.c     randsd.c
config.h      cxx              gmp-impl.h     longlong.h        mp_get_fns.c   randbui.c  randsdui.c
config.in     demos            gmp-mparam.h   ltmain.sh         mp_minv_tab.c  randclr.c  README
config.log    doc              gmpxx.h        macos             mp_set_fns.c   randdef.c  scanf

s@s-VAIO ~/gmp-4.3.0
$

s@s-VAIO ~/gmp-4.3.0
$ make
gcc `test -f 'gen-fac_ui.c' || echo './'`gen-fac_ui.c -o gen-fac_ui.exe
./gen-fac_ui 32 0 >mpz/fac_ui.h || (rm -f mpz/fac_ui.h; exit 1)
gcc `test -f 'gen-fib.c' || echo './'`gen-fib.c -o gen-fib.exe
./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1)
./gen-fib table 32 0 >mpn/fib_table.c || (rm -f mpn/fib_table.c; exit 1)
gcc `test -f 'gen-bases.c' || echo './'`gen-bases.c -o gen-bases.exe -lm
./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1)
./gen-bases table 32 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1)
gcc `test -f 'gen-psqr.c' || echo './'`gen-psqr.c -o gen-psqr.exe -lm
./gen-psqr 32 0 >mpn/perfsqr.h || (rm -f mpn/perfsqr.h; exit 1)
make  all-recursive
make[1]: ディレクトリ `/home/s/gmp-4.3.0' に入ります
Making all in tests
make[2]: ディレクトリ `/home/s/gmp-4.3.0/tests' に入ります
Making all in .
make[3]: ディレクトリ `/home/s/gmp-4.3.0/tests' に入ります
make[3]: `all-am' に対して行うべき事はありません.
make[3]: ディレクトリ `/home/s/gmp-4.3.0/tests' から出ます
Making all in devel
make[3]: ディレクトリ `/home/s/gmp-4.3.0/tests/devel' に入ります
  :
  :
ranlib .libs/libgmp.a
rm -fr .libs/libgmp.lax
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
make[2]: ディレクトリ `/home/s/gmp-4.3.0' から出ます
make[1]: ディレクトリ `/home/s/gmp-4.3.0' から出ます

s@s-VAIO ~/gmp-4.3.0
$

gmp 003: make check


s@s-VAIO ~/gmp-4.3.0
$ make check
make  check-recursive
make[1]: ディレクトリ `/home/s/gmp-4.3.0' に入ります
Making check in tests
make[2]: ディレクトリ `/home/s/gmp-4.3.0/tests' に入ります
  :
PASS: t-gmpmax.exe
PASS: t-hightomask.exe
PASS: t-modlinv.exe
PASS: t-popc.exe
PASS: t-parity.exe
PASS: t-sub.exe
==================
All 9 tests passed
==================
  :
PASS: t-hgcd.exe
PASS: t-matrix22.exe
===================
All 12 tests passed
===================
  :
PASS: t-pprime_p.exe
PASS: t-nextprime.exe
===================
All 58 tests passed
===================
  :
PASS: t-set_f.exe
PASS: t-set_str.exe
===================
All 11 tests passed
===================
  :
PASS: t-trunc.exe
PASS: t-ui_div.exe
===================
All 26 tests passed
===================
  :
PASS: t-urndmm.exe
==================
All 7 tests passed
==================
  :
PASS: t-printf.exe
PASS: t-scanf.exe
PASS: t-locale.exe
==================
All 3 tests passed
==================
  :
make[1]: ディレクトリ `/home/s/gmp-4.3.0' から出ます

s@s-VAIO ~/gmp-4.3.0
$

gmp 004: make install


s@s-VAIO ~/gmp-4.3.0
$ ls -l /usr/local/
合計 0
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 09:34 sh-tools

s@s-VAIO ~/gmp-4.3.0
$ make install
make  install-recursive
make[1]: ディレクトリ `/home/s/gmp-4.3.0' に入ります
Making install in tests
  :
  :
chmod 644 /usr/local/gmp-4.3.0/lib/libgmp.a
ranlib /usr/local/gmp-4.3.0/lib/libgmp.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/gmp-4.3.0/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/gmp-4.3.0/include" || mkdir -p -- . "/usr/local/gmp-4.3.0/include"
 /usr/bin/install -c -m 644 'gmp.h' '/usr/local/gmp-4.3.0/include/gmp.h'
test -z "/usr/local/gmp-4.3.0/include" || mkdir -p -- . "/usr/local/gmp-4.3.0/include"
make  install-data-hook
make[4]: ディレクトリ `/home/s/gmp-4.3.0' に入ります

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+

make[4]: ディレクトリ `/home/s/gmp-4.3.0' から出ます
make[3]: ディレクトリ `/home/s/gmp-4.3.0' から出ます
make[2]: ディレクトリ `/home/s/gmp-4.3.0' から出ます
make[1]: ディレクトリ `/home/s/gmp-4.3.0' から出ます

s@s-VAIO ~/gmp-4.3.0
$ ls -l /usr/local/
合計 0
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 10:09 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 09:34 sh-tools

s@s-VAIO ~/gmp-4.3.0















mpfr-000: tar jxvf mpfr-2.4.1.tar.bz2


s@s-VAIO ~
$ ls
binutils-2.23.1.tar.bz2  gmp-4.3.0.tar.bz2  mpfr-2.4.1.tar.bz2  sh-tools20100424.tar.bz2
gcc-4.4.0.tar.bz2        mpfr-2.4.1         sh-tools

s@s-VAIO ~
$ ls mpfr-2.4.1
include  lib  share

s@s-VAIO ~
$ tar jxvf mpfr-2.4.1.tar.bz2
mpfr-2.4.1/
mpfr-2.4.1/fits_uintmax.c
mpfr-2.4.1/cmp.c
mpfr-2.4.1/clears.c
mpfr-2.4.1/aclocal.m4
  :
  :
mpfr-2.4.1/texinfo.tex
mpfr-2.4.1/const_euler.c

s@s-VAIO ~
$ ls mpfr-2.4.1
abort_prec_max.c  constant.c     fits_uintmax.c   lib              print_raw.c          share
acinclude.m4      COPYING        fits_ulong.c     lngamma.c        print_rnd_mode.c     si_op.c
aclocal.m4        COPYING.LIB    fits_ushort.c    log.c            printf.c             signbit.c
acos.c            copysign.c     fma.c            log10.c          random.c             sin.c
acosh.c           cos.c          fms.c            log1p.c          random2.c            sin_cos.c
add.c             cosh.c         frac.c           log2.c           README               sinh.c
add_d.c           cot.c          free_cache.c     logging.c        rec_sqrt.c           sinh_cosh.c
add_ui.c          coth.c         gamma.c          ltmain.sh        reldiff.c            sqr.c
add1.c            csc.c          gen_inverse.h    m4               rem1.c               sqrt.c
add1sp.c          csch.c         get_d.c          Makefile.am      rint.c               sqrt_ui.c
agm.c             d_div.c        get_d64.c        Makefile.in      root.c               stack_interface.c
ansi2knr.1        d_sub.c        get_exp.c        minmax.c         round_near_x.c       strtofr.c
ansi2knr.c        depcomp        get_f.c          missing          round_p.c            sub.c
asin.c            dim.c          get_ld.c         modf.c           round_prec.c         sub_d.c
asinh.c           div.c          get_patches.c    mp_clz_tab.c     round_raw_generic.c  sub_ui.c
atan.c            div_2exp.c     get_patches.sh   mparam_h.in      sec.c                sub1.c
atan2.c           div_2si.c      get_si.c         mpf2mpfr.h       sech.c               sub1sp.c
atanh.c           div_2ui.c      get_sj.c         mpfr.h           set.c                subnormal.c
AUTHORS           div_d.c        get_str.c        mpfr.info        set_d.c              sum.c
BUGS              div_ui.c       get_ui.c         mpfr.texi        set_d64.c            swap.c
cache.c           dump.c         get_uj.c         mpfr-gmp.c       set_dfl_prec.c       tan.c
cbrt.c            eint.c         get_z.c          mpfr-gmp.h       set_exp.c            tanh.c
ChangeLog         eq.c           get_z_exp.c      mpfr-impl.h      set_f.c              tests
check.c           erf.c          gmp_op.c         mpfr-longlong.h  set_inf.c            texinfo.tex
clear.c           erfc.c         hypot.c          mpfr-thread.h    set_ld.c             TODO
clears.c          exceptions.c   include          mpn_exp.c        set_nan.c            tuneup.c
cmp.c             exp.c          init.c           mul.c            set_prc_raw.c        uceil_exp2.c
cmp_abs.c         exp_2.c        init2.c          mul_2exp.c       set_prec.c           uceil_log2.c
cmp_d.c           exp10.c        inits.c          mul_2si.c        set_q.c              ufloor_log2.c
cmp_ld.c          exp2.c         inits2.c         mul_2ui.c        set_rnd.c            ui_div.c
cmp_si.c          exp3.c         inp_str.c        mul_d.c          set_si.c             ui_pow.c
cmp_ui.c          expm1.c        INSTALL          mul_ui.c         set_si_2exp.c        ui_pow_ui.c
cmp2.c            extract.c      install-sh       mulders.c        set_sj.c             ui_sub.c
comparisons.c     factorial.c    int_ceil_log2.c  neg.c            set_str.c            urandomb.c
compile           FAQ.html       isinf.c          NEWS             set_str_raw.c        vasprintf.c
config.guess      fdl.texi       isinteger.c      next.c           set_ui.c             VERSION
config.sub        fits_intmax.c  isnan.c          out_str.c        set_ui_2exp.c        version.c
configure         fits_s.h       isnum.c          PATCHES          set_uj.c             volatile.c
configure.in      fits_sint.c    isqrt.c          pow.c            set_z.c              yn.c
const_catalan.c   fits_slong.c   iszero.c         pow_si.c         setmax.c             zeta.c
const_euler.c     fits_sshort.c  jn.c             pow_ui.c         setmin.c             zeta_ui.c
const_log2.c      fits_u.h       jyn_asympt.c     pow_z.c          setsign.c
const_pi.c        fits_uint.c    li2.c            powerof2.c       sgn.c

s@s-VAIO ~
$

gmp-5.1.2 000: ./configure --prefix=/usr/local/gmp-5.1.2


gmp-5.1.2/doc/gmp.texi
gmp-5.1.2/doc/configuration
gmp-5.1.2/doc/gmp.info
gmp-5.1.2/doc/Makefile.in

s@s-VAIO ~
$ cd gmp-5.1.2

s@s-VAIO ~/gmp-5.1.2
$ ./configure --prefix=/usr/local/gmp-5.1.2
checking build system type... coreisbr-pc-cygwin
checking host system type... coreisbr-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
  :
  :
config.status: linking mpn/x86/udiv.asm to mpn/udiv.asm
config.status: linking mpn/generic/add_n_sub_n.c to mpn/add_n_sub_n.c
config.status: linking mpn/x86/coreisbr/gmp-mparam.h to gmp-mparam.h
config.status: executing libtool commands
configure: summary of build options:

  Version:           GNU MP 5.1.2
  Host type:         coreisbr-pc-cygwin
  ABI:               32
  Install prefix:    /usr/local/gmp-5.1.2
  Compiler:          gcc -std=gnu99
  Static libraries:  yes
  Shared libraries:  no


s@s-VAIO ~/gmp-5.1.2
$

gmp-5.1.2 001: make


s@s-VAIO ~/gmp-5.1.2
$ make
gcc -std=gnu99 `test -f 'gen-fac.c' || echo './'`gen-fac.c -o gen-fac.exe
./gen-fac 32 0 >fac_table.h || (rm -f fac_table.h; exit 1)
gcc -std=gnu99 `test -f 'gen-fib.c' || echo './'`gen-fib.c -o gen-fib.exe
./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1)
./gen-fib table 32 0 >mpn/fib_table.c || (rm -f mpn/fib_table.c; exit 1)
gcc -std=gnu99 `test -f 'gen-bases.c' || echo './'`gen-bases.c -o gen-bases.exe -lm
./gen-bases header 32 0 >mp_bases.h || (rm -f mp_bases.h; exit 1)
./gen-bases table 32 0 >mpn/mp_bases.c || (rm -f mpn/mp_bases.c; exit 1)
  :
  :
libtool: link: ln mpn/remove.o .libs/libgmp.lax/lt105-remove.o || cp mpn/remove.o .libs/libgmp.lax/lt105-remove.o
libtool: link: ar cq .libs/libgmp.a @.libs/libgmp.libcmd
libtool: link: ranlib .libs/libgmp.a
libtool: link: rm -fr .libs/libgmp.lax
libtool: link: ( cd ".libs" && rm -f "libgmp.la" && ln -s "../libgmp.la" "libgmp.la" )
make[2]: ディレクトリ `/home/s/gmp-5.1.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-5.1.2' から出ます

s@s-VAIO ~/gmp-5.1.2
$


gmp-5.1.2 002: make check & make install


s@s-VAIO ~/gmp-5.1.2
$ make check
make  check-recursive
make[1]: ディレクトリ `/home/s/gmp-5.1.2' に入ります
Making check in tests
make[2]: ディレクトリ `/home/s/gmp-5.1.2/tests' に入ります
Making check in .
  :
  :
make[2]: ディレクトリ `/home/s/gmp-5.1.2/doc' に入ります
make[2]: `check' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/gmp-5.1.2/doc' から出ます
make[2]: ディレクトリ `/home/s/gmp-5.1.2' に入ります
make[2]: ディレクトリ `/home/s/gmp-5.1.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-5.1.2' から出ます

s@s-VAIO ~/gmp-5.1.2
$

s@s-VAIO ~/gmp-5.1.2
$ make install
make  install-recursive
make[1]: ディレクトリ `/home/s/gmp-5.1.2' に入ります
Making install in tests
make[2]: ディレクトリ `/home/s/gmp-5.1.2/tests' に入ります
Making install in .
make[3]: ディレクトリ `/home/s/gmp-5.1.2/tests' に入ります
  :
  :


gmp-5.1.2 002: make install 後半


libtool: install: /usr/bin/install -c .libs/libgmp.lai /usr/local/gmp-5.1.2/lib/libgmp.la
libtool: install: /usr/bin/install -c .libs/libgmp.a /usr/local/gmp-5.1.2/lib/libgmp.a
libtool: install: chmod 644 /usr/local/gmp-5.1.2/lib/libgmp.a
libtool: install: ranlib /usr/local/gmp-5.1.2/lib/libgmp.a
 /usr/bin/mkdir -p '/usr/local/gmp-5.1.2/include'
 /usr/bin/install -c -m 644 gmp.h '/usr/local/gmp-5.1.2/include'
make  install-data-hook
make[4]: ディレクトリ `/home/s/gmp-5.1.2' に入ります

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+

make[4]: ディレクトリ `/home/s/gmp-5.1.2' から出ます
make[3]: ディレクトリ `/home/s/gmp-5.1.2' から出ます
make[2]: ディレクトリ `/home/s/gmp-5.1.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-5.1.2' から出ます

s@s-VAIO ~/gmp-5.1.2
$ ^C


mpc-1.0.1 000: ./configure --prefix=/usr/local/mpc-1.0.1 .....


s@s-VAIO ~
$ ls -l
合計 174948
-rwxr-xr-x  1 s None 21455321 8月  19 22:22 binutils-2.23.1.tar.bz2
drwxr-xr-x+ 1 s None        0 5月  31 19:13 gcc-4.8.1
-rwxr-xr-x  1 s None 86753166 8月  25 05:15 gcc-4.8.1.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  25 10:50 gcc-elf-sh
-rwxr-xr-x  1 s None  1897926 8月  25 07:46 gmp-4.3.0.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  25 21:12 gmp-5.1.2
-rwxr-xr-x  1 s None  2194495 8月  20 07:18 gmp-5.1.2.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  25 20:48 mpc-1.0.1
-rwxr-xr-x  1 s None   624125 8月  24 05:27 mpc-1.0.1.tar.tar
-rwxr-xr-x  1 s None  1064281 8月  20 07:35 mpfr-2.4.1.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$ rm -rf gmp-5.1.2

s@s-VAIO ~
$ cd mpc-1.0.1

s@s-VAIO ~/mpc-1.0.1
$ ls -l /usr/local/
合計 4
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 10:09 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 21:29 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 10:41 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  25 11:23 sh-tools

s@s-VAIO ~/mpc-1.0.1
$ ./configure --prefix=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-5.1.2 -with-mpfr=/usr/local/mpfr-2.4.1 --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
  :
  :
checking for gettimeofday... yes
checking for localeconv... yes
checking for setlocale... yes
checking for dup... yes
checking for dup2... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including static vs shared).

s@s-VAIO ~/mpc-1.0.1
$ ^C

s@s-VAIO ~/mpc-1.0.1
$

s@s-VAIO ~/mpc-1.0.1
$ ls
aclocal.m4  ChangeLog     config.log  configure.ac    doc         ltmain.sh    Makefile.in  NEWS    tests
ar-lib      config.guess  config.sub  COPYING.LESSER  INSTALL     m4           Makefile.vc  README  TODO
AUTHORS     config.h.in   configure   depcomp         install-sh  Makefile.am  missing      src

s@s-VAIO ~/mpc-1.0.1
$


gmp-4.3.2 00x: make install


ranlib /usr/local/gmp-4.3.0/lib/libgmp.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/gmp-4.3.0/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/gmp-4.3.0/include" || mkdir -p -- . "/usr/local/gmp-4.3.0/include"
 /usr/bin/install -c -m 644 'gmp.h' '/usr/local/gmp-4.3.0/include/gmp.h'
test -z "/usr/local/gmp-4.3.0/include" || mkdir -p -- . "/usr/local/gmp-4.3.0/include"
make  install-data-hook
make[4]: ディレクトリ `/home/s/gmp-4.3.2' に入ります

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+

make[4]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[3]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[2]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-4.3.2' から出ます

s@s-VAIO ~/gmp-4.3.2
$ cd

s@s-VAIO ~
$ ls
binutils-2.23.1.tar.bz2  gcc-elf-sh         gmp-4.3.2.tar.bz2  mpc-1.0.1.tar.tar   sh-tools20100424.tar.bz2
gcc-4.8.1                gmp-4.3.0.tar.bz2  gmp-5.1.2.tar.bz2  mpfr-2.4.1.tar.bz2
gcc-4.8.1.tar.bz2        gmp-4.3.2          mpc-1.0.1          sh-tools

s@s-VAIO ~
$ cd mpc-1.0.1

s@s-VAIO ~/mpc-1.0.1
$


gmp-4.3.2 000: ./configure --prefix=/usr/local/gmp-4.3.2


test "" = "" || rm -f *_.c
rm -f *.lo
make[1]: ディレクトリ `/home/s/gmp-4.3.2' から出ます

s@s-VAIO ~/gmp-4.3.2
$ ./configure --prefix=/usr/local/gmp-4.3.2
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
  :
  :
config.status: linking ./mpn/x86/umul.asm to mpn/umul.asm
config.status: linking ./mpn/x86/udiv.asm to mpn/udiv.asm
config.status: linking ./mpn/x86/copyi.asm to mpn/copyi.asm
config.status: linking ./mpn/x86/p6/copyd.asm to mpn/copyd.asm
config.status: linking ./mpn/generic/addsub_n.c to mpn/addsub_n.c
config.status: linking ./mpn/x86/p6/gmp-mparam.h to gmp-mparam.h

s@s-VAIO ~/gmp-4.3.2
$

s@s-VAIO ~/gmp-4.3.2
$ ls
acinclude.m4   config.sub       gen-bases.c     INSTALL.autoconf  mp_bases.h     printf      randsdui.c
aclocal.m4     configfsf.guess  gen-bases.exe   install-sh        mp_bpl.c       rand.c      README
ansi2knr.1     configfsf.sub    gen-fac_ui.c    invalid.c         mp_clz_tab.c   randbui.c   scanf
ansi2knr.c     configure        gen-fac_ui.exe  libmp.sym         mp_dv_tab.c    randclr.c   stamp-h1
assert.c       configure.in     gen-fib.c       libtool           mp_get_fns.c   randdef.c   tal-debug.c
AUTHORS        COPYING          gen-fib.exe     longlong.h        mp_minv_tab.c  randiset.c  tal-notreent.c
ChangeLog      COPYING.LIB      gen-psqr.c      ltmain.sh         mp_set_fns.c   randlc2s.c  tal-reent.c
compat.c       cxx              gen-psqr.exe    macos             mpbsd          randlc2x.c  tests
config.guess   demos            gmp.h           Makefile          mpf            randmt.c    tune
config.h       doc              gmp-h.in        Makefile.am       mp-h.in        randmt.h    version.c
config.in      dumbmp.c         gmp-impl.h      Makefile.in       mpn            randmts.c
config.log     errno.c          gmp-mparam.h    memory.c          mpq            randmui.c
config.m4      extract-dbl.c    gmpxx.h         missing           mpz            rands.c
config.status  fib_table.h      INSTALL         mp.h              NEWS           randsd.c

s@s-VAIO ~/gmp-4.3.2
$


gmp-4.3.2 001: make


s@s-VAIO ~/gmp-4.3.2
$ make
make  all-recursive
make[1]: ディレクトリ `/home/s/gmp-4.3.2' に入ります
Making all in tests
make[2]: ディレクトリ `/home/s/gmp-4.3.2/tests' に入ります
Making all in .
make[3]: ディレクトリ `/home/s/gmp-4.3.2/tests' に入ります
make[3]: `all-am' に対して行うべき事はありません.
make[3]: ディレクトリ `/home/s/gmp-4.3.2/tests' から出ます
Making all in devel
  :
  :
mpn/copyi.o mpn/copyd.o mpn/addsub_n.o printf/asprintf.o printf/asprntffuns.o printf/doprnt.o printf/doprntf.o printf/doprnti.o printf/fprintf.o printf/obprintf.o printf/obvprintf.o printf/obprntffuns.o printf/printf.o printf/printffuns.o printf/snprintf.o printf/snprntffuns.o printf/sprintf.o printf/sprintffuns.o printf/vasprintf.o printf/vfprintf.o printf/vprintf.o printf/vsnprintf.o printf/vsprintf.o printf/repl-vsnprintf.o scanf/doscan.o scanf/fscanf.o scanf/fscanffuns.o scanf/scanf.o scanf/sscanf.o scanf/sscanffuns.o scanf/vfscanf.o scanf/vscanf.o scanf/vsscanf.o
ranlib .libs/libgmp.a
rm -fr .libs/libgmp.lax
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
make[2]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-4.3.2' から出ます

s@s-VAIO ~/gmp-4.3.2
$


gmp-4.3.2 001: make check


s@s-VAIO ~/gmp-4.3.2
$ make check
make  check-recursive
make[1]: ディレクトリ `/home/s/gmp-4.3.2' に入ります
Making check in tests
make[2]: ディレクトリ `/home/s/gmp-4.3.2/tests' に入ります
Making check in .
  :
  :
make[2]: ディレクトリ `/home/s/gmp-4.3.2' に入ります
make[2]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-4.3.2' から出ます

s@s-VAIO ~/gmp-4.3.2
$


gmp-4.3.2 001: make install


s@s-VAIO ~/gmp-4.3.2
$ ls /usr/local/
bin  etc  gmp-4.3.0  gmp-5.1.2  lib  mpfr-2.4.1  sh-tools

s@s-VAIO ~/gmp-4.3.2
$ make install
make  install-recursive
make[1]: ディレクトリ `/home/s/gmp-4.3.2' に入ります
Making install in tests
make[2]: ディレクトリ `/home/s/gmp-4.3.2/tests' に入ります
Making install in .
  :
  :
ranlib /usr/local/gmp-4.3.2/lib/libgmp.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/gmp-4.3.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/gmp-4.3.2/include" || mkdir -p -- . "/usr/local/gmp-4.3.2/include"
 /usr/bin/install -c -m 644 'gmp.h' '/usr/local/gmp-4.3.2/include/gmp.h'
test -z "/usr/local/gmp-4.3.2/include" || mkdir -p -- . "/usr/local/gmp-4.3.2/include"
make  install-data-hook
make[4]: ディレクトリ `/home/s/gmp-4.3.2' に入ります

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+

make[4]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[3]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[2]: ディレクトリ `/home/s/gmp-4.3.2' から出ます
make[1]: ディレクトリ `/home/s/gmp-4.3.2' から出ます

s@s-VAIO ~/gmp-4.3.2
$ ls -l /usr/local/
合計 4
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 22:36 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 23:12 gmp-4.3.2
drwxr-xr-x+ 1 s None 0 8月  25 21:29 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 10:41 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  25 11:23 sh-tools

s@s-VAIO ~/gmp-4.3.2


mpc-1.0.1 001: ./configure --prefix=/usr/local/mpc-1.0.1 .....


s@s-VAIO ~/mpc-1.0.1
$ make clean
make: *** ターゲット `clean' を make するルールがありません.  中止.

s@s-VAIO ~/mpc-1.0.1
$ ./configure --prefix=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-4.3.2 -with-mpfr=/usr/local/mpfr-2.4.1 --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
  :
  :
checking for setlocale... yes
checking for dup... yes
checking for dup2... yes
checking for __gmpz_init in -lgmp... yes
checking for MPFR... yes
checking for recent GMP... yes
checking for recent MPFR... no
configure: error: MPFR version >= 2.4.2 required

s@s-VAIO ~/mpc-1.0.1
$


mpc-1.0.1 001: make


s@s-VAIO ~/mpc-1.0.1
$ make
make  all-recursive
make[1]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
Making all in src
make[2]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
/bin/sh ../libtool --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..    -I/usr/local/gmp-4.3.2/include -I/usr/local/mpfr-2.4.2/include   -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro -MT abs.lo -MD -MP -MF .deps/abs.Tpo -c -o abs.lo abs.c
  :
  :
Making all in doc
make[2]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[2]: `all' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[2]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' から出ます

s@s-VAIO ~/mpc-1.0.1
$


mpc-1.0.1 001: make check


s@s-VAIO ~/mpc-1.0.1
$ make check
Making check in src
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' から出ます
Making check in tests
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
make  libmpc-tests.la tabs.exe tacos.exe tacosh.exe  tadd.exe tadd_fr.exe tadd_si.exe  tadd_ui.exe targ.exe tasin.exe tasinh.exe  tatan.exe tatanh.exe tconj.exe tcos.exe  tcosh.exe tdiv.exe
  :
  :
C compiler: gcc -std=gnu99
GCC: yes
GCC version: 4.7.3
PASS: tget_version.exe
===================
All 64 tests passed
===================
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
Making check in doc
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[1]: ディレクトリ `/home/s/mpc-1.0.1' から出ます

s@s-VAIO ~/mpc-1.0.1
$


mpc-1.0.1 001: make install


s@s-VAIO ~/mpc-1.0.1
$ make install
Making install in src
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
 /usr/bin/mkdir -p '/usr/local/mpc-1.0.1/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libmpc.la '/usr/local/mpc-1.0.1/lib'
libtool: install: /usr/bin/install -c .libs/libmpc.lai /usr/local/mpc-1.0.1/lib/libmpc.la
libtool: install: /usr/bin/install -c .libs/libmpc.a /usr/local/mpc-1.0.1/lib/libmpc.a
libtool: install: chmod 644 /usr/local/mpc-1.0.1/lib/libmpc.a
libtool: install: ranlib /usr/local/mpc-1.0.1/lib/libmpc.a
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpc-1.0.1/src' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' から出ます
Making install in tests
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
Making install in doc
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
 /usr/bin/mkdir -p '/usr/local/mpc-1.0.1/share/info'
 /usr/bin/install -c -m 644 ./mpc.info '/usr/local/mpc-1.0.1/share/info'
 install-info --info-dir='/usr/local/mpc-1.0.1/share/info' '/usr/local/mpc-1.0.1/share/info/mpc.info'
make[2]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
 /usr/bin/mkdir -p '/usr/local/mpc-1.0.1/include'
 /usr/bin/install -c -m 644 src/mpc.h '/usr/local/mpc-1.0.1/include'
make[2]: ディレクトリ `/home/s/mpc-1.0.1' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' から出ます

s@s-VAIO ~/mpc-1.0.1
$ ls -l /usr/local/
合計 4
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 22:36 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 23:12 gmp-4.3.2
drwxr-xr-x+ 1 s None 0 8月  25 21:29 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 23:58 mpc-1.0.1
drwxr-xr-x+ 1 s None 0 8月  25 10:41 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  25 23:45 mpfr-2.4.2
drwxr-xr-x+ 1 s None 0 8月  25 11:23 sh-tools

s@s-VAIO ~/mpc-1.0.1


gmp-4.3.2 001: make





mpfr-001: ./configure ......


s@s-VAIO ~/mpfr-2.4.1
$ ls /usr/local/
bin  etc  gmp-4.3.0  lib  sh-tools

s@s-VAIO ~/mpfr-2.4.1
$ ./configure --prefix=/usr/local/mpfr-2.4.1 CFLAGS=-I/usr/local/gmp-4.3.0/include LDFLAGS=-L/usr/local/gmp-4.3.0/lib  checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gcc... gcc
  :
  :
checking if gmp_printf supports "%lld"... yes
checking if gmp_printf supports "%.0Lf"... yes
checking if gmp_printf supports "%td"... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating mparam.h
config.status: executing depfiles commands
config.status: executing libtool commands

s@s-VAIO ~/mpfr-2.4.1
$

s@s-VAIO ~/mpfr-2.4.1
$ ls
abort_prec_max.c  const_pi.c     fits_uintmax.c   libtool          powerof2.c           share
acinclude.m4      constant.c     fits_ulong.c     lngamma.c        print_raw.c          si_op.c
aclocal.m4        COPYING        fits_ushort.c    log.c            print_rnd_mode.c     signbit.c
acos.c            COPYING.LIB    fma.c            log10.c          printf.c             sin.c
acosh.c           copysign.c     fms.c            log1p.c          random.c             sin_cos.c
add.c             cos.c          frac.c           log2.c           random2.c            sinh.c
add_d.c           cosh.c         free_cache.c     logging.c        README               sinh_cosh.c
add_ui.c          cot.c          gamma.c          ltmain.sh        rec_sqrt.c           sqr.c
add1.c            coth.c         gen_inverse.h    m4               reldiff.c            sqrt.c
add1sp.c          csc.c          get_d.c          Makefile         rem1.c               sqrt_ui.c
agm.c             csch.c         get_d64.c        Makefile.am      rint.c               stack_interface.c
ansi2knr.1        d_div.c        get_exp.c        Makefile.in      root.c               strtofr.c
ansi2knr.c        d_sub.c        get_f.c          minmax.c         round_near_x.c       sub.c
asin.c            depcomp        get_ld.c         missing          round_p.c            sub_d.c
asinh.c           dim.c          get_patches.c    modf.c           round_prec.c         sub_ui.c
atan.c            div.c          get_patches.sh   mp_clz_tab.c     round_raw_generic.c  sub1.c
atan2.c           div_2exp.c     get_si.c         mparam.h         sec.c                sub1sp.c
atanh.c           div_2si.c      get_sj.c         mparam_h.in      sech.c               subnormal.c
AUTHORS           div_2ui.c      get_str.c        mpf2mpfr.h       set.c                sum.c
BUGS              div_d.c        get_ui.c         mpfr.h           set_d.c              swap.c
cache.c           div_ui.c       get_uj.c         mpfr.info        set_d64.c            tan.c
cbrt.c            dump.c         get_z.c          mpfr.texi        set_dfl_prec.c       tanh.c
ChangeLog         eint.c         get_z_exp.c      mpfr-gmp.c       set_exp.c            tests
check.c           eq.c           gmp_op.c         mpfr-gmp.h       set_f.c              texinfo.tex
clear.c           erf.c          hypot.c          mpfr-impl.h      set_inf.c            TODO
clears.c          erfc.c         include          mpfr-longlong.h  set_ld.c             tuneup.c
cmp.c             exceptions.c   init.c           mpfr-thread.h    set_nan.c            uceil_exp2.c
cmp_abs.c         exp.c          init2.c          mpn_exp.c        set_prc_raw.c        uceil_log2.c
cmp_d.c           exp_2.c        inits.c          mul.c            set_prec.c           ufloor_log2.c
cmp_ld.c          exp10.c        inits2.c         mul_2exp.c       set_q.c              ui_div.c
cmp_si.c          exp2.c         inp_str.c        mul_2si.c        set_rnd.c            ui_pow.c
cmp_ui.c          exp3.c         INSTALL          mul_2ui.c        set_si.c             ui_pow_ui.c
cmp2.c            expm1.c        install-sh       mul_d.c          set_si_2exp.c        ui_sub.c
comparisons.c     extract.c      int_ceil_log2.c  mul_ui.c         set_sj.c             urandomb.c
compile           factorial.c    isinf.c          mulders.c        set_str.c            vasprintf.c
config.guess      FAQ.html       isinteger.c      neg.c            set_str_raw.c        VERSION
config.log        fdl.texi       isnan.c          NEWS             set_ui.c             version.c
config.status     fits_intmax.c  isnum.c          next.c           set_ui_2exp.c        volatile.c
config.sub        fits_s.h       isqrt.c          out_str.c        set_uj.c             yn.c
configure         fits_sint.c    iszero.c         PATCHES          set_z.c              zeta.c
configure.in      fits_slong.c   jn.c             pow.c            setmax.c             zeta_ui.c
const_catalan.c   fits_sshort.c  jyn_asympt.c     pow_si.c         setmin.c
const_euler.c     fits_u.h       li2.c            pow_ui.c         setsign.c
const_log2.c      fits_uint.c    lib              pow_z.c          sgn.c

s@s-VAIO ~/mpfr-2.4.1
$


mpfr-002: make


s@s-VAIO ~/mpfr-2.4.1
$ make
Making all in tests
make[1]: ディレクトリ `/home/s/mpfr-2.4.1/tests' に入ります
make[1]: `all' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpfr-2.4.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.1' に入ります
/bin/sh ./libtool --tag=CC    --mode=compile gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDINT_H=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_DENORMS=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DHAVE_LDOUBLE_IEEE_EXT_LITTLE=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1
  :
  :
l_d.o div_d.o d_div.o li2.o rec_sqrt.o
libtool: link: ranlib .libs/libmpfr.a
libtool: link: ( cd ".libs" && rm -f "libmpfr.la" && ln -s "../libmpfr.la" "libmpfr.la" )
make[1]: ディレクトリ `/home/s/mpfr-2.4.1' から出ます

s@s-VAIO ~/mpfr-2.4.1
$

s@s-VAIO ~/mpfr-2.4.1
$ ls
abort_prec_max.c   copysign.lo      fits_ulong.lo     lib                random2.o            si_op.lo
abort_prec_max.lo  copysign.o       fits_ulong.o      libmpfr.la         README               si_op.o
abort_prec_max.o   cos.c            fits_ushort.c     libtool            rec_sqrt.c           signbit.c
acinclude.m4       cos.lo           fits_ushort.lo    lngamma.c          rec_sqrt.lo          signbit.lo
aclocal.m4         cos.o            fits_ushort.o     lngamma.lo         rec_sqrt.o           signbit.o
acos.c             cosh.c           fma.c             lngamma.o          reldiff.c            sin.c
acos.lo            cosh.lo          fma.lo            log.c              reldiff.lo           sin.lo
acos.o             cosh.o           fma.o             log.lo             reldiff.o            sin.o
acosh.c            cot.c            fms.c             log.o              rem1.c               sin_cos.c
acosh.lo           cot.lo           fms.lo            log10.c            rem1.lo              sin_cos.lo
acosh.o            cot.o            fms.o             log10.lo           rem1.o               sin_cos.o
add.c              coth.c           frac.c            log10.o            rint.c               sinh.c
add.lo             coth.lo          frac.lo           log1p.c            rint.lo              sinh.lo
add.o              coth.o           frac.o            log1p.lo           rint.o               sinh.o
add_d.c            csc.c            free_cache.c      log1p.o            root.c               sinh_cosh.c
add_d.lo           csc.lo           free_cache.lo     log2.c             root.lo              sinh_cosh.lo
add_d.o            csc.o            free_cache.o      log2.lo            root.o               sinh_cosh.o
add_ui.c           csch.c           gamma.c           log2.o             round_near_x.c       sqr.c
add_ui.lo          csch.lo          gamma.lo          logging.c          round_near_x.lo      sqr.lo
add_ui.o           csch.o           gamma.o           logging.lo         round_near_x.o       sqr.o
add1.c             d_div.c          gen_inverse.h     logging.o          round_p.c            sqrt.c
add1.lo            d_div.lo         get_d.c           ltmain.sh          round_p.lo           sqrt.lo
add1.o             d_div.o          get_d.lo          m4                 round_p.o            sqrt.o
add1sp.c           d_sub.c          get_d.o           Makefile           round_prec.c         sqrt_ui.c
add1sp.lo          d_sub.lo         get_d64.c         Makefile.am        round_prec.lo        sqrt_ui.lo
add1sp.o           d_sub.o          get_d64.lo        Makefile.in        round_prec.o         sqrt_ui.o
agm.c              depcomp          get_d64.o         minmax.c           round_raw_generic.c  stack_interface.c
agm.lo             dim.c            get_exp.c         minmax.lo          sec.c                stack_interface.lo
agm.o              dim.lo           get_exp.lo        minmax.o           sec.lo               stack_interface.o
ansi2knr.1         dim.o            get_exp.o         missing            sec.o                strtofr.c
ansi2knr.c         div.c            get_f.c           modf.c             sech.c               strtofr.lo
asin.c             div.lo           get_f.lo          modf.lo            sech.lo              strtofr.o
asin.lo            div.o            get_f.o           modf.o             sech.o               sub.c
asin.o             div_2exp.c       get_ld.c          mp_clz_tab.c       set.c                sub.lo
asinh.c            div_2exp.lo      get_ld.lo         mp_clz_tab.lo      set.lo               sub.o
asinh.lo           div_2exp.o       get_ld.o          mp_clz_tab.o       set.o                sub_d.c
asinh.o            div_2si.c        get_patches.c     mparam.h           set_d.c              sub_d.lo
atan.c             div_2si.lo       get_patches.lo    mparam_h.in        set_d.lo             sub_d.o
atan.lo            div_2si.o        get_patches.o     mpf2mpfr.h         set_d.o              sub_ui.c
atan.o             div_2ui.c        get_patches.sh    mpfr.h             set_d64.c            sub_ui.lo
atan2.c            div_2ui.lo       get_si.c          mpfr.info          set_d64.lo           sub_ui.o
atan2.lo           div_2ui.o        get_si.lo         mpfr.texi          set_d64.o            sub1.c
atan2.o            div_d.c          get_si.o          mpfr-gmp.c         set_dfl_prec.c       sub1.lo
atanh.c            div_d.lo         get_sj.c          mpfr-gmp.h         set_dfl_prec.lo      sub1.o
atanh.lo           div_d.o          get_sj.lo         mpfr-gmp.lo        set_dfl_prec.o       sub1sp.c
atanh.o            div_ui.c         get_sj.o          mpfr-gmp.o         set_exp.c            sub1sp.lo
AUTHORS            div_ui.lo        get_str.c         mpfr-impl.h        set_exp.lo           sub1sp.o
BUGS               div_ui.o         get_str.lo        mpfr-longlong.h    set_exp.o            subnormal.c
cache.c            dump.c           get_str.o         mpfr-thread.h      set_f.c              subnormal.lo
cache.lo           dump.lo          get_ui.c          mpn_exp.c          set_f.lo             subnormal.o
cache.o            dump.o           get_ui.lo         mpn_exp.lo         set_f.o              sum.c
cbrt.c             eint.c           get_ui.o          mpn_exp.o          set_inf.c            sum.lo
cbrt.lo            eint.lo          get_uj.c          mul.c              set_inf.lo           sum.o
cbrt.o             eint.o           get_uj.lo         mul.lo             set_inf.o            swap.c
ChangeLog          eq.c             get_uj.o          mul.o              set_ld.c             swap.lo
check.c            eq.lo            get_z.c           mul_2exp.c         set_ld.lo            swap.o
check.lo           eq.o             get_z.lo          mul_2exp.lo        set_ld.o             tan.c
check.o            erf.c            get_z.o           mul_2exp.o         set_nan.c            tan.lo
clear.c            erf.lo           get_z_exp.c       mul_2si.c          set_nan.lo           tan.o
clear.lo           erf.o            get_z_exp.lo      mul_2si.lo         set_nan.o            tanh.c
clear.o            erfc.c           get_z_exp.o       mul_2si.o          set_prc_raw.c        tanh.lo
clears.c           erfc.lo          gmp_op.c          mul_2ui.c          set_prc_raw.lo       tanh.o
clears.lo          erfc.o           gmp_op.lo         mul_2ui.lo         set_prc_raw.o        tests
clears.o           exceptions.c     gmp_op.o          mul_2ui.o          set_prec.c           texinfo.tex
cmp.c              exceptions.lo    hypot.c           mul_d.c            set_prec.lo          TODO
cmp.lo             exceptions.o     hypot.lo          mul_d.lo           set_prec.o           tuneup.c
cmp.o              exp.c            hypot.o           mul_d.o            set_q.c              uceil_exp2.c
cmp_abs.c          exp.lo           include           mul_ui.c           set_q.lo             uceil_exp2.lo
cmp_abs.lo         exp.o            init.c            mul_ui.lo          set_q.o              uceil_exp2.o
cmp_abs.o          exp_2.c          init.lo           mul_ui.o           set_rnd.c            uceil_log2.c
cmp_d.c            exp_2.lo         init.o            mulders.c          set_rnd.lo           uceil_log2.lo
cmp_d.lo           exp_2.o          init2.c           mulders.lo         set_rnd.o            uceil_log2.o
cmp_d.o            exp10.c          init2.lo          mulders.o          set_si.c             ufloor_log2.c
cmp_ld.c           exp10.lo         init2.o           neg.c              set_si.lo            ufloor_log2.lo
cmp_ld.lo          exp10.o          inits.c           neg.lo             set_si.o             ufloor_log2.o
cmp_ld.o           exp2.c           inits.lo          neg.o              set_si_2exp.c        ui_div.c
cmp_si.c           exp2.lo          inits.o           NEWS               set_si_2exp.lo       ui_div.lo
cmp_si.lo          exp2.o           inits2.c          next.c             set_si_2exp.o        ui_div.o
cmp_si.o           exp3.c           inits2.lo         next.lo            set_sj.c             ui_pow.c
cmp_ui.c           exp3.lo          inits2.o          next.o             set_sj.lo            ui_pow.lo
cmp_ui.lo          exp3.o           inp_str.c         out_str.c          set_sj.o             ui_pow.o
cmp_ui.o           expm1.c          inp_str.lo        out_str.lo         set_str.c            ui_pow_ui.c
cmp2.c             expm1.lo         inp_str.o         out_str.o          set_str.lo           ui_pow_ui.lo
cmp2.lo            expm1.o          INSTALL           PATCHES            set_str.o            ui_pow_ui.o
cmp2.o             extract.c        install-sh        pow.c              set_str_raw.c        ui_sub.c
comparisons.c      extract.lo       int_ceil_log2.c   pow.lo             set_str_raw.lo       ui_sub.lo
comparisons.lo     extract.o        int_ceil_log2.lo  pow.o              set_str_raw.o        ui_sub.o
comparisons.o      factorial.c      int_ceil_log2.o   pow_si.c           set_ui.c             urandomb.c
compile            factorial.lo     isinf.c           pow_si.lo          set_ui.lo            urandomb.lo
config.guess       factorial.o      isinf.lo          pow_si.o           set_ui.o             urandomb.o
config.log         FAQ.html         isinf.o           pow_ui.c           set_ui_2exp.c        vasprintf.c
config.status      fdl.texi         isinteger.c       pow_ui.lo          set_ui_2exp.lo       vasprintf.lo
config.sub         fits_intmax.c    isinteger.lo      pow_ui.o           set_ui_2exp.o        vasprintf.o
configure          fits_intmax.lo   isinteger.o       pow_z.c            set_uj.c             VERSION
configure.in       fits_intmax.o    isnan.c           pow_z.lo           set_uj.lo            version.c
const_catalan.c    fits_s.h         isnan.lo          pow_z.o            set_uj.o             version.lo
const_catalan.lo   fits_sint.c      isnan.o           powerof2.c         set_z.c              version.o
const_catalan.o    fits_sint.lo     isnum.c           powerof2.lo        set_z.lo             volatile.c
const_euler.c      fits_sint.o      isnum.lo          powerof2.o         set_z.o              volatile.lo
const_euler.lo     fits_slong.c     isnum.o           print_raw.c        setmax.c             volatile.o
const_euler.o      fits_slong.lo    isqrt.c           print_raw.lo       setmax.lo            yn.c
const_log2.c       fits_slong.o     isqrt.lo          print_raw.o        setmax.o             yn.lo
const_log2.lo      fits_sshort.c    isqrt.o           print_rnd_mode.c   setmin.c             yn.o
const_log2.o       fits_sshort.lo   iszero.c          print_rnd_mode.lo  setmin.lo            zeta.c
const_pi.c         fits_sshort.o    iszero.lo         print_rnd_mode.o   setmin.o             zeta.lo
const_pi.lo        fits_u.h         iszero.o          printf.c           setsign.c            zeta.o
const_pi.o         fits_uint.c      jn.c              printf.lo          setsign.lo           zeta_ui.c
constant.c         fits_uint.lo     jn.lo             printf.o           setsign.o            zeta_ui.lo
constant.lo        fits_uint.o      jn.o              random.c           sgn.c                zeta_ui.o
constant.o         fits_uintmax.c   jyn_asympt.c      random.lo          sgn.lo
COPYING            fits_uintmax.lo  li2.c             random.o           sgn.o
COPYING.LIB        fits_uintmax.o   li2.lo            random2.c          share
copysign.c         fits_ulong.c     li2.o             random2.lo         si_op.c

s@s-VAIO ~/mpfr-2.4.1
$

mpfr-003: make check


s@s-VAIO ~/mpfr-2.4.1
$ make check
Making check in tests
make[1]: ディレクトリ `/home/s/mpfr-2.4.1/tests' に入ります
make  libfrtests.la tversion.exe tinternals.exe tinits.exe  tisqrt.exe tsgn.exe tcheck.exe tisnan.exe  texceptions.exe tset_exp.exe tset.exe  tabs.exe tset_d.exe tset_f.exe tset_q.exe  tset_si.exe tset_str.exe tset_z.exe  tset_ld.exe tset_sj.exe tswap.exe  tcopysign.exe tcmp.exe tcmp2.exe  tcmpabs.exe tcmp_d.exe tcmp_ld.exe  tcomparisons.exe teq.exe tadd.exe tsub.exe  tmul.exe tdiv.exe tsub1sp.exe tadd1sp.exe  tadd_ui.exe tsub_ui.exe tcmp_ui.exe  tdiv_ui.exe tmul_ui.exe tsqrt_ui.exe  tui_div.exe tui_sub.exe tadd_d.exe  tsub_d.exe td_sub.exe tmul_d.exe  tdiv_d.exe td_div.exe tgmpop.exe  tsi_op.exe tmul_2exp.exe tfma.exe tfms.exe  tsum.exe tdim.exe tminmax.exe tnext.exe  tfits.exe tget_d.exe tget_d_2exp.exe  tget_z.exe tget_str.exe tget_sj.exe  tout_str.exe tinp_str.exe toutimpl.exe  tcan_round.exe tround_prec.exe tsqrt.exe  tconst_log2.exe tconst_pi.exe tconst_euler.exe  trandom.exe ttrunc.exe trint.exe tfrac.exe  tmodf.exe texp.exe texp2.exe texp10.exe  texpm1.exe tlog.exe tlog2.exe tlog10.exe  tlog1p.exe tpow.exe tui_pow.exe tpow3.exe  tcosh.exe tsinh.exe ttanh.exe  tsinh_cosh.exe tacosh.exe tasinh.exe  tatanh.exe thyperbolic.exe tasin.exe  tacos.exe tcos.exe tatan.exe tsin.exe  ttan.exe tsin_cos.exe tagm.exe thypot.exe  tfactorial.exe tgamma.exe terf.exe  tcbrt.exe tzeta.exe mpf_compat.exe  mpfr_compat.exe reuse.exe tsqr.exe  tstrtofr.exe tpow_z.exe tget_f.exe  tconst_catalan.exe troot.exe tsec.exe  tcsc.exe tcot.exe teint.exe tcoth.exe  tcsch.exe tsech.exe tstckintc.exe  tsubnormal.exe tlngamma.exe tlgamma.exe  tzeta_ui.exe tget_ld_2exp.exe tget_set_d64.exe  tj0.exe tj1.exe tjn.exe ty0.exe  ty1.exe tyn.exe tremquo.exe tfmod.exe  tl2b.exe tli2.exe tprintf.exe tsprintf.exe  tfprintf.exe trec_sqrt.exe tpow_all.exe
  :
  :
PASS: trec_sqrt.exe
PASS: tpow_all.exe
====================
All 148 tests passed
====================
make[2]: ディレクトリ `/home/s/mpfr-2.4.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.1' に入ります
make[1]: `check-am' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpfr-2.4.1' から出ます

s@s-VAIO ~/mpfr-2.4.1
$

mpfr-004: make install


s@s-VAIO ~/mpfr-2.4.1
$ make install
Making install in tests
make[1]: ディレクトリ `/home/s/mpfr-2.4.1/tests' に入ります
make[2]: ディレクトリ `/home/s/mpfr-2.4.1/tests' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpfr-2.4.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.1' に入ります
make[2]: ディレクトリ `/home/s/mpfr-2.4.1' に入ります
test -z "/usr/local/mpfr-2.4.1/lib" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.1/lib"
 /bin/sh ./libtool   --mode=install /usr/bin/install -c  'libmpfr.la' '/usr/local/mpfr-2.4.1/lib/libmpfr.la'
libtool: install: /usr/bin/install -c .libs/libmpfr.lai /usr/local/mpfr-2.4.1/lib/libmpfr.la
libtool: install: /usr/bin/install -c .libs/libmpfr.a /usr/local/mpfr-2.4.1/lib/libmpfr.a
libtool: install: chmod 644 /usr/local/mpfr-2.4.1/lib/libmpfr.a
libtool: install: ranlib /usr/local/mpfr-2.4.1/lib/libmpfr.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/mpfr-2.4.1/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/mpfr-2.4.1/include" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.1/include"
 /usr/bin/install -c -m 644 'mpfr.h' '/usr/local/mpfr-2.4.1/include/mpfr.h'
 /usr/bin/install -c -m 644 'mpf2mpfr.h' '/usr/local/mpfr-2.4.1/include/mpf2mpfr.h'
test -z "/usr/local/mpfr-2.4.1/share/info" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.1/share/info"
 /usr/bin/install -c -m 644 './mpfr.info' '/usr/local/mpfr-2.4.1/share/info/mpfr.info'
 install-info --info-dir='/usr/local/mpfr-2.4.1/share/info' '/usr/local/mpfr-2.4.1/share/info/mpfr.info'
make[2]: ディレクトリ `/home/s/mpfr-2.4.1' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.1' から出ます

s@s-VAIO ~/mpfr-2.4.1
$



mpfr-2.4.2 001: ./configure --prefix=/usr/local/mpfr-2.4.2 ...


s@s-VAIO ~/mpfr-2.4.2
$ ./configure --prefix=/usr/local/mpfr-2.4.2 CFLAGS=-I/usr/local/gmp-4.3.2/include LDFLAGS=-L/usr/local/gmp-4.3.2/lib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to disable maintainer-specific portions of Makefiles... yes
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
  :
  :
checking for __gmpz_init in -lgmp... yes
checking if gmp.h version and libgmp version are the same... (4.3.2/4.3.2) yes
checking if gmp_printf supports "%jd"... yes
checking if gmp_printf supports "%hhd"... yes
checking if gmp_printf supports "%lld"... yes
checking if gmp_printf supports "%Lf"... yes
checking if gmp_printf supports "%td"... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tests/Makefile
config.status: creating mparam.h
config.status: executing depfiles commands
config.status: executing libtool commands

s@s-VAIO ~/mpfr-2.4.2
$


mpfr-2.4.2 006: make


s@s-VAIO ~/mpfr-2.4.2
$ make
Making all in tests
make[1]: ディレクトリ `/home/s/mpfr-2.4.2/tests' に入ります
make[1]: `all' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpfr-2.4.2/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.2' に入ります
/bin/sh ./libtool --tag=CC    --mode=compile gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDINT_H=1 -DHAVE_VA_COPY=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_DENORMS=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DHAVE_LDOUBLE_IEEE_EXT_LITTLE=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE_ALLOCA_H=1 -I.      -I/usr/local/gmp-4.3.2/include -MT exceptions.lo -MD -MP -MF .deps/exceptions.Tpo -c -o exceptions.lo exceptions.c
  :
  :
l_d.o div_d.o d_div.o li2.o rec_sqrt.o
libtool: link: ranlib .libs/libmpfr.a
libtool: link: ( cd ".libs" && rm -f "libmpfr.la" && ln -s "../libmpfr.la" "libmpfr.la" )
make[1]: ディレクトリ `/home/s/mpfr-2.4.2' から出ます

s@s-VAIO ~/mpfr-2.4.2
$













mpfr-2.4.2 000: make check

 
 
s@s-VAIO ~/mpfr-2.4.2
$ make check
Making check in tests
make[1]: ディレクトリ `/home/s/mpfr-2.4.2/tests' に入ります
make  libfrtests.la tversion.exe tinternals.exe tinits.exe  tisqrt.exe tsgn.exe tcheck.exe tisnan.exe  texceptions.exe tset_exp.exe tset.exe  tabs.exe tset_d.exe tset_f.exe tset_q.exe  tset_si.exe tset_str.exe tset_z.exe  tset_ld.exe tset_sj.exe tswap.exe  tcopysign.exe tcmp.exe tcmp2.exe  tcmpabs.exe tcmp_d.exe tcmp_ld.exe  tcomparisons.exe teq.exe tadd.exe tsub.exe  tmul.exe tdiv.exe tsub1sp.exe tadd1sp.exe  tadd_ui.exe tsub_ui.exe tcmp_ui.exe  tdiv_ui.exe tmul_ui.exe tsqrt_ui.exe  tui_div.exe tui_sub.exe tadd_d.exe  tsub_d.exe td_sub.exe tmul_d.exe  tdiv_d.exe td_div.exe tgmpop.exe  tsi_op.exe tmul_2exp.exe tfma.exe tfms.exe  tsum.exe tdim.exe tminmax.exe tnext.exe  tfits.exe tget_d.exe tget_d_2exp.exe
  :
  :
PASS: trec_sqrt.exe
PASS: tpow_all.exe
====================
All 148 tests passed
====================
make[2]: ディレクトリ `/home/s/mpfr-2.4.2/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.2/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.2' に入ります
make[1]: `check-am' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpfr-2.4.2' から出ます

s@s-VAIO ~/mpfr-2.4.2
$
 

mpfr-2.4.2 001: make install

 
s@s-VAIO ~/mpfr-2.4.2
$ make install
Making install in tests
make[1]: ディレクトリ `/home/s/mpfr-2.4.2/tests' に入ります
make[2]: ディレクトリ `/home/s/mpfr-2.4.2/tests' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpfr-2.4.2/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.2/tests' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.2' に入ります
make[2]: ディレクトリ `/home/s/mpfr-2.4.2' に入ります
test -z "/usr/local/mpfr-2.4.2/lib" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.2/lib"
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libmpfr.la '/usr/local/mpfr-2.4.2/lib'
libtool: install: /usr/bin/install -c .libs/libmpfr.lai /usr/local/mpfr-2.4.2/lib/libmpfr.la
libtool: install: /usr/bin/install -c .libs/libmpfr.a /usr/local/mpfr-2.4.2/lib/libmpfr.a
libtool: install: chmod 644 /usr/local/mpfr-2.4.2/lib/libmpfr.a
libtool: install: ranlib /usr/local/mpfr-2.4.2/lib/libmpfr.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/mpfr-2.4.2/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/mpfr-2.4.2/include" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.2/include"
 /usr/bin/install -c -m 644 mpfr.h mpf2mpfr.h '/usr/local/mpfr-2.4.2/include'
test -z "/usr/local/mpfr-2.4.2/share/info" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.2/share/info"
 /usr/bin/install -c -m 644 ./mpfr.info '/usr/local/mpfr-2.4.2/share/info'
 install-info --info-dir='/usr/local/mpfr-2.4.2/share/info' '/usr/local/mpfr-2.4.2/share/info/mpfr.info'
test -z "/usr/local/mpfr-2.4.2/share/doc/mpfr" || /usr/bin/mkdir -p "/usr/local/mpfr-2.4.2/share/doc/mpfr"
/usr/bin/mkdir -p '/usr/local/mpfr-2.4.2/share/doc/mpfr/examples'
 /usr/bin/install -c -m 644  examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c '/usr/local/mpfr-2.4.2/share/doc/mpfr/examples'
 /usr/bin/install -c -m 644  AUTHORS BUGS COPYING COPYING.LIB FAQ.html NEWS TODO '/usr/local/mpfr-2.4.2/share/doc/mpfr/.'
make[2]: ディレクトリ `/home/s/mpfr-2.4.2' から出ます
make[1]: ディレクトリ `/home/s/mpfr-2.4.2' から出ます

s@s-VAIO ~/mpfr-2.4.2
$ ls -l /usr/local/
合計 4
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 22:36 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 23:12 gmp-4.3.2
drwxr-xr-x+ 1 s None 0 8月  25 21:29 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 10:41 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  25 23:45 mpfr-2.4.2
drwxr-xr-x+ 1 s None 0 8月  25 11:23 sh-tools

s@s-VAIO ~/mpfr-2.4.2
$
 
 

mpc-1.0.1 000: ./configure --prefix=/usr/local/mpc-1.0.1 .....

 

s@s-VAIO ~/mpc-1.0.1
$ ls -l /usr/local/
合計 4
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 22:36 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 23:12 gmp-4.3.2
drwxr-xr-x+ 1 s None 0 8月  25 21:29 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 10:41 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  25 23:45 mpfr-2.4.2
drwxr-xr-x+ 1 s None 0 8月  25 11:23 sh-tools

s@s-VAIO ~/mpc-1.0.1
$ ./configure --prefix=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-4.3.2 -with-mpfr=/usr/local/mpfr-2.4.2 --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-cygwin
  :
  :
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

s@s-VAIO ~/mpc-1.0.1
$

s@s-VAIO ~/mpc-1.0.1
$

s@s-VAIO ~/mpc-1.0.1
$ ls
aclocal.m4  config.guess  config.status  COPYING.LESSER  install-sh  Makefile     missing  stamp-h1
ar-lib      config.h      config.sub     depcomp         libtool     Makefile.am  NEWS     tests
AUTHORS     config.h.in   configure      doc             ltmain.sh   Makefile.in  README   TODO
ChangeLog   config.log    configure.ac   INSTALL         m4          Makefile.vc  src

s@s-VAIO ~/mpc-1.0.1
$
 

MPFR 003

 
s@s-VAIO ~/mpfr-3.1.2
$ ls /usr/local/
bin  etc  gmp-5.1.2  lib  sh-tools

s@s-VAIO ~/mpfr-3.1.2
$ make install
Making install in doc
make[1]: ディレクトリ `/home/s/mpfr-3.1.2/doc' に入ります
make[2]: ディレクトリ `/home/s/mpfr-3.1.2/doc' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
 /usr/bin/mkdir -p '/usr/local/mpfr-2.4.1/share/doc/mpfr'
 /usr/bin/install -c -m 644 FAQ.html '/usr/local/mpfr-2.4.1/share/doc/mpfr'
 /usr/bin/mkdir -p '/usr/local/mpfr-2.4.1/share/info'
  :
  :
make[2]: ディレクトリ `/home/s/mpfr-3.1.2' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
 /usr/bin/mkdir -p '/usr/local/mpfr-2.4.1/share/doc/mpfr'
 /usr/bin/mkdir -p '/usr/local/mpfr-2.4.1/share/doc/mpfr/examples'
 /usr/bin/install -c -m 644  examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c examples/version.c '/usr/local/mpfr-2.4.1/share/doc/mpfr/examples'
 /usr/bin/install -c -m 644  AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO '/usr/local/mpfr-2.4.1/share/doc/mpfr/.'
make[2]: ディレクトリ `/home/s/mpfr-3.1.2' から出ます
make[1]: ディレクトリ `/home/s/mpfr-3.1.2' から出ます

s@s-VAIO ~/mpfr-3.1.2
$ ls /usr/local/
bin  etc  gmp-5.1.2  lib  mpfr-2.4.1  sh-tools

s@s-VAIO ~/mpfr-3.1.2
$

s@s-VAIO ~/mpfr-3.1.2
$
 

gcc 000 失敗(mpc無し)

 
s@s-VAIO ~/gcc-elf-sh
$ ls -l /usr/local/
合計 0
drwxr-xr-x+ 1 s None 0 8月  23 23:06 bin
drwxr-xr-x+ 1 s None 0 8月  23 23:06 etc
drwxr-xr-x+ 1 s None 0 8月  24 01:17 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  23 23:06 lib
drwxr-xr-x+ 1 s None 0 8月  24 01:53 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  24 00:14 sh-tools

s@s-VAIO ~/gcc-elf-sh
$ ../gcc-4.8.0/configure --target=sh-elf --with-gmp=/usr/local/gmp-5.1.2 --with-mpfr=/usr/local/mpfr-2.4.1 --prefix=/usr/local/sh-tools --enable-languages=c --disable-libssp
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... sh-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... no
checking for libitm support... no
checking for libsanitizer support... no
checking to see if cat works as expected... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.

s@s-VAIO ~/gcc-elf-sh
$
 
  

mpc 001 失敗

 
s@s-VAIO ~
$ tar xf mpc-1.0.1.tar.tar

s@s-VAIO ~
$ ls -l
合計 258291
-rw-r--r--  1 s None      550 4月  18 03:22 4.5-java-FIONREAD.patch
  :
  :
-rwxr-xr-x  1 s None  2194495 8月  20 07:18 gmp-5.1.2.tar.bz2
drwxr-xr-x+ 1 s None        0 9月   6  2012 mpc-1.0.1
-rwxr-xr-x  1 s None   624125 8月  24 05:27 mpc-1.0.1.tar.tar
drwxr-xr-x+ 1 s None        0 4月  24  2009 mpfr-2.4.1
-rwxr-xr-x  1 s None  1225496 8月  20 07:15 mpfr-3.1.2.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$ cd mpc-1.0.1

s@s-VAIO ~/mpc-1.0.1
$ ls
aclocal.m4  ChangeLog     config.sub    COPYING.LESSER  INSTALL     m4           Makefile.vc  README  TODO
ar-lib      config.guess  configure     depcomp         install-sh  Makefile.am  missing      src
AUTHORS     config.h.in   configure.ac  doc             ltmain.sh   Makefile.in  NEWS         tests

s@s-VAIO ~/mpc-1.0.1
$ ls /usr/local/
bin  etc  gmp-5.1.2  lib  mpfr-2.4.1  sh-tools

s@s-VAIO ~/mpc-1.0.1
$ ./configure --prefix=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-5.1.2 -with-mpfr=/usr/local/mpfr-2.4.1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
  :
  :
checking for recent MPFR... yes
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for DLL/static gmp... static
configure: error: gmp is not available as a DLL: use --enable-static --disable-shared

s@s-VAIO ~/mpc-1.0.1
$
 
  

mpc 002

 
s@s-VAIO ~/mpc-1.0.1
$ ./configure --prefix=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-5.1.2 -with-mpfr=/usr/local/mpfr-2.4.1 --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for CC and CFLAGS in gmp.h... yes CC=gcc -std=gnu99 CFLAGS=-O2 -pedantic -fomit-frame-pointer -m64 -mtune=corei7 -march=corei7
checking for CC=gcc -std=gnu99 and CFLAGS=-O2 -pedantic -fomit-frame-pointer -m64 -mtune=corei7 -march=corei7... yes
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
 
  

mpc 003 失敗

 
s@s-VAIO ~/mpc-1.0.1
$ ./configure --prefix=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-4.3.0 -with-mpfr=/usr/local/mpfr-2.4.1 --enable-static --disable-shared
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
  :
  :
checking for __gmpz_init in -lgmp... yes
checking for MPFR... yes
checking for recent GMP... no
configure: error: GMP version >= 4.3.2 required

s@s-VAIO ~/mpc-1.0.1
$ cd

s@s-VAIO ~
$ ls -l
合計 172772
-rwxr-xr-x  1 s None 21455321 8月  19 22:22 binutils-2.23.1.tar.bz2
drwxr-xr-x+ 1 s None        0 5月  31 19:13 gcc-4.8.1
-rwxr-xr-x  1 s None 86753166 8月  25 05:15 gcc-4.8.1.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  25 10:50 gcc-elf-sh
-rwxr-xr-x  1 s None  1897926 8月  25 07:46 gmp-4.3.0.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  25 20:48 mpc-1.0.1
-rwxr-xr-x  1 s None   624125 8月  24 05:27 mpc-1.0.1.tar.tar
-rwxr-xr-x  1 s None  1064281 8月  20 07:35 mpfr-2.4.1.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2
 
  

mpc 004

 
s@s-VAIO ~/mpc-1.0.1
$ make check
Making check in src
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' から出ます
Making check in tests
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
make  libmpc-tests.la tabs.exe tacos.exe tacosh.exe  tadd.exe tadd_fr.exe tadd_si.exe  tadd_ui.exe targ.exe tasin.exe tasinh.exe  tatan.exe tatanh.exe tconj.exe tcos.exe  tcosh.exe tdiv.exe tdiv_2si.exe  tdiv_2ui.exe tdiv_fr.exe tdiv_ui.exe  texp.exe tfma.exe tfr_div.exe tfr_sub.exe  timag.exe tio_str.exe tlog.exe tlog10.exe  tmul.exe tmul_2si.exe tmul_2ui.exe  tmul_fr.exe tmul_i.exe tmul_si.exe  tmul_ui.exe tneg.exe tnorm.exe tpow.exe  tpow_ld.exe tpow_d.exe tpow_fr.exe  tpow_si.exe tpow_ui.exe tpow_z.exe  tprec.exe tproj.exe treal.exe treimref.exe  tset.exe tsin.exe tsin_cos.exe tsinh.exe  tsqr.exe tsqrt.exe tstrtoc.exe tsub.exe  tsub_fr.exe tsub_ui.exe tswap.exe ttan.exe  ttanh.exe tui_div.exe tui_ui_sub.exe  tget_version.exe
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
/bin/sh ../libtool --tag=CC    --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..   -I../src -I/usr/local/gmp-5.1.2/include -I/usr/local/mpfr-2.4.1/include   -O2 -pedantic -fomit-frame-pointer -m64 -mtune=corei7 -march=corei7 -MT random.lo -MD -MP -MF .deps/random.Tpo -c -o random.lo random.c
  :
  :
MPFR: include 3.1.2, lib 3.1.2
MPC: include 1.0.1, lib 1.0.1
C compiler: gcc -std=gnu99
GCC: yes
GCC version: 4.8.1
PASS: tget_version.exe
===================
All 64 tests passed
===================
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
Making check in doc
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[1]: `check' に対して行うべき事はありません.
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[1]: ディレクトリ `/home/s/mpc-1.0.1' から出ます

s@s-VAIO ~/mpc-1.0.1
$
 
  

mpc 005

 
s@s-VAIO ~/mpc-1.0.1
$ make install
Making install in src
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1/src' に入ります
 /usr/bin/mkdir -p '/usr/local/mpc-1.0.1/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libmpc.la '/usr/local/mpc-1.0.1/lib'
libtool: install: /usr/bin/install -c .libs/libmpc.lai /usr/local/mpc-1.0.1/lib/libmpc.la
libtool: install: /usr/bin/install -c .libs/libmpc.a /usr/local/mpc-1.0.1/lib/libmpc.a
libtool: install: chmod 644 /usr/local/mpc-1.0.1/lib/libmpc.a
libtool: install: ranlib /usr/local/mpc-1.0.1/lib/libmpc.a
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpc-1.0.1/src' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/src' から出ます
Making install in tests
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
make[2]: `install-data-am' に対して行うべき事はありません.
make[2]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/tests' から出ます
Making install in doc
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1/doc' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
 /usr/bin/mkdir -p '/usr/local/mpc-1.0.1/share/info'
 /usr/bin/install -c -m 644 ./mpc.info '/usr/local/mpc-1.0.1/share/info'
 install-info --info-dir='/usr/local/mpc-1.0.1/share/info' '/usr/local/mpc-1.0.1/share/info/mpc.info'
make[2]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1/doc' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[2]: ディレクトリ `/home/s/mpc-1.0.1' に入ります
make[2]: `install-exec-am' に対して行うべき事はありません.
 /usr/bin/mkdir -p '/usr/local/mpc-1.0.1/include'
 /usr/bin/install -c -m 644 src/mpc.h '/usr/local/mpc-1.0.1/include'
make[2]: ディレクトリ `/home/s/mpc-1.0.1' から出ます
make[1]: ディレクトリ `/home/s/mpc-1.0.1' から出ます

s@s-VAIO ~/mpc-1.0.1
$ ls /usr/local/
bin  etc  gmp-5.1.2  lib  mpc-1.0.1  mpfr-2.4.1  sh-tools

s@s-VAIO ~/mpc-1.0.1
$
 
  

gcc-001: ../gcc-4.4.0/configure

 
s@s-VAIO ~
$ mkdir gcc-elf-sh

s@s-VAIO ~
$ ls
binutils-2.23.1.tar.bz2  gcc-4.4.0.tar.bz2  gmp-4.3.0.tar.bz2   sh-tools
gcc-4.4.0                gcc-elf-sh         mpfr-2.4.1.tar.bz2  sh-tools20100424.tar.bz2

s@s-VAIO ~
$ cd gcc-4.4.0

s@s-VAIO ~/gcc-4.4.0
$

s@s-VAIO ~/gcc-4.4.0
$

s@s-VAIO ~/gcc-4.4.0
$ ls /usr/local/
bin  etc  gmp-4.3.0  lib  mpfr-2.4.1  sh-tools

s@s-VAIO ~/gcc-4.4.0
s@s-VAIO ~/gcc-4.4.0
$ ../gcc-4.4.0/configure --target=sh-elf --prefix=/usr/local/sh-tools --with-gmp=/usr/local/gmp-4.3.0 -with-mpfr=/usr/local/mpfr-2.4.1 --enable-languages=c --disable-libssp
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... sh-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
  :
  :
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile

s@s-VAIO ~/gcc-4.4.0
$

s@s-VAIO ~/gcc-4.4.0
$ ls
ABOUT-NLS           config.sub       depcomp       libcpp        libssp           MAINTAINERS         move-if-change
boehm-gc            config-ml.in     fixincludes   libdecnumber  libstdc++-v3     maintainer-scripts  NEWS
ChangeLog           configure        gcc           libffi        libtool.m4       Makefile            README
ChangeLog.tree-ssa  configure.ac     gnattools     libgcc        libtool-ldflags  Makefile.def        serdep.tmp
compile             contrib          include       libgfortran   lt~obsolete.m4   Makefile.in         symlink-tree
config              COPYING          INSTALL       libgomp       ltgcc.m4         Makefile.tpl        ylwrap
config.guess        COPYING.LIB      install-sh    libiberty     ltmain.sh        MD5SUMS             zlib
config.log          COPYING.RUNTIME  intl          libjava       ltoptions.m4     missing
config.rpath        COPYING3         LAST_UPDATED  libmudflap    ltsugar.m4       mkdep
config.status       COPYING3.LIB     libada        libobjc       ltversion.m4     mkinstalldirs

s@s-VAIO ~/gcc-4.4.0
$
 
  

gcc-002:

 
$
config.status: executing default commands
Adding multilib support to Makefile in ../../../.././libgcc
with_multisubdir=ml/m4
make[2]: ディレクトリ `/home/s/gcc-4.4.0/sh-elf/libgcc' に入ります
Makefile:143: ../.././gcc/libgcc.mvars: No such file or directory
make[2]: *** ターゲット `../.././gcc/libgcc.mvars' を make するルールがありません.  中止.
make[2]: ディレクトリ `/home/s/gcc-4.4.0/sh-elf/libgcc' から出ます
Makefile:10885: recipe for target `all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: ディレクトリ `/home/s/gcc-4.4.0' から出ます
Makefile:743: recipe for target `all' failed
make: *** [all] Error 2

s@s-VAIO ~/gcc-4.4.0
$
 
  

gcc 003

 

 
  

gcc-4.8.1 0001: configure --target=sh-elf ...........

 
$ cd gcc-elf-sh

s@s-VAIO ~/gcc-elf-sh
$ export PATH=/usr/local/sh-tools/bin:$PATH

s@s-VAIO ~/gcc-elf-sh
$ echo $PATH
/usr/local/sh-tools/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/PROGRAM FILES (X86)/NVIDIA CORPORATION/PHYSX/COMMON:/cygdrive/c/Windows/SYSTEM32:/cygdrive/c/Windows:/cygdrive/c/Windows/SYSTEM32/WBEM:/cygdrive/c/Windows/SYSTEM32/WINDOWSPOWERSHELL/V1.0:/cygdrive/c/PROGRAM FILES (X86)/JUSTSYSTEMS/JSLIB32:/cygdrive/c/PROGRAM FILES (X86)/SONY/VAIO STARTUP SETTING TOOL:/cygdrive/c/PROGRAM FILES (X86)/COMMON FILES/ROXIO SHARED/10.0/DLLSHARED:/cygdrive/c/PROGRAM FILES (X86)/COMMON FILES/ROXIO SHARED/DLLSHARED:/cygdrive/c/PROGRAM FILES/TREND MICRO/AMSP:/cygdrive/c/PROGRAM FILES (X86)/WINDOWS LIVE/SHARED:/cygdrive/c/PROGRAM FILES/WIDCOMM/BLUETOOTH SOFTWARE:/cygdrive/c/PROGRAM FILES/WIDCOMM/BLUETOOTH SOFTWARE/SYSWOW64:/cygdrive/c/Program Files/Broadcom/WHL:/cygdrive/c/Program Files/Broadcom/WHL/syswow64:/cygdrive/c/Program Files/Broadcom/WHL/SysWow64:/cygdrive/c/Program Files/Broadcom/WHL/SysWow64/syswow64:/cygdrive/e/Program Files/SlikSvn/bin:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/Program Files (x86)/Sony/Giga Pocket Digital:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Common Files/Sony Shared/FeliCaLibrary:/cygdrive/c/Program Files/Common Files/Sony Shared/FeliCaLibrary:/cygdrive/c/Program Files (x86)/Common Files/Sony Shared/FeliCaNFCLibrary:/cygdrive/c/Program Files/Common Files/Sony Shared/FeliCaNFCLibrary:/cygdrive/c/Ruby187/bin

s@s-VAIO ~/gcc-elf-sh
$ ls /usr/local/
bin  etc  gmp-4.3.0  gmp-4.3.2  gmp-5.1.2  lib  mpc-1.0.1  mpfr-2.4.1  mpfr-2.4.2  sh-tools

s@s-VAIO ~/gcc-elf-sh
$ ^C

s@s-VAIO ~/gcc-elf-sh
$ ../gcc-4.8.1/configure --target=sh-elf  --with-mpc=/usr/local/mpc-1.0.1 --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --prefix=/usr/local/sh-tools --enable-languages=c --disable-libssp
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... sh-unknown-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... no
checking for libitm support... no
checking for libsanitizer support... no
checking to see if cat works as expected... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
*** This configuration is not supported in the following subdirectories:
     target-libmudflap target-libgomp target-libatomic target-libitm target-libsanitizer gnattools target-libada target-libstdc++-v3 target-libgfortran target-libgo target-libffi target-libbacktrace target-zlib target-libjava target-libobjc target-libssp target-boehm-gc
    (Any other directories should still work fine.)
checking for default BUILD_CONFIG...
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... (cached) /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/bin/ld.exe
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... windres
checking for windmc... windmc
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for sh-elf-cc... no
checking for sh-elf-gcc... sh-elf-gcc
checking for sh-elf-c++... no
checking for sh-elf-g++... no
checking for sh-elf-cxx... no
checking for sh-elf-gxx... no
checking for sh-elf-gcc... sh-elf-gcc
checking for sh-elf-gcj... no
checking for sh-elf-gfortran... no
checking for sh-elf-gccgo... no
checking for ar... /usr/local/sh-tools/sh-elf/bin/ar
checking for as... /usr/local/sh-tools/sh-elf/bin/as
checking for dlltool... no
checking for sh-elf-dlltool... no
checking for ld... /usr/local/sh-tools/sh-elf/bin/ld
checking for lipo... no
checking for sh-elf-lipo... no
checking for nm... /usr/local/sh-tools/sh-elf/bin/nm
checking for objdump... /usr/local/sh-tools/sh-elf/bin/objdump
checking for ranlib... /usr/local/sh-tools/sh-elf/bin/ranlib
checking for readelf... no
checking for sh-elf-readelf... sh-elf-readelf
checking for strip... /usr/local/sh-tools/sh-elf/bin/strip
checking for windres... no
checking for sh-elf-windres... no
checking for windmc... no
checking for sh-elf-windmc... no
checking where to find the target ar... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target as... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target cc... just compiled
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... just compiled
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target gccgo... pre-installed
checking where to find the target ld... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target objdump... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target ranlib... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target readelf... pre-installed
checking where to find the target strip... pre-installed in /usr/local/sh-tools/sh-elf/bin
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

s@s-VAIO ~/gcc-elf-sh
$
 
  

gcc-4.8.1 005: make

 
s@s-VAIO ~/gcc-elf-sh
$ ls
config.log  config.status  Makefile  serdep.tmp

s@s-VAIO ~/gcc-elf-sh
$ ls -l
合計 477
-rw-r--r-- 1 s None  34425 8月  26 04:41 config.log
-rwxr-xr-x 1 s None  32593 8月  26 04:41 config.status
-rw-r--r-- 1 s None 414222 8月  26 04:41 Makefile
-rw-r--r-- 1 s None     13 8月  26 04:41 serdep.tmp

s@s-VAIO ~/gcc-elf-sh
$ make
make[1]: ディレクトリ `/home/s/gcc-elf-sh' に入ります
mkdir -p -- ./fixincludes
Configuring in ./fixincludes
configure: creating cache ./config.cache
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... sh-unknown-elf
checking for i686-pc-cygwin-gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
  :
  :
make  all-am
make[3]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' に入ります
make  DO=all multi-do # make
make[4]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' に入ります
if [ -z "ml m2 m2e m4 m4-single m4-single-only m2a m2a-single ml/m2 ml/m2e ml/m4 ml/m4-single ml/m4-single-only" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../gcc-4.8.1/libquadmath; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/s/gcc-elf-sh/./gcc/xgcc -B/home/s/gcc-elf-sh/./gcc/ -B/usr/local/sh-tools/sh-elf/bin/ -B/usr/local/sh-tools/sh-elf/lib/ -isystem /usr/local/sh-tools/sh-elf/include -isystem /usr/local/sh-tools/sh-elf/sys-include   "; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make  \
                        CFLAGS="-g -O2 ${flags}" \
                        CCASFLAGS=" ${flags}" \
                        FCFLAGS=" ${flags}" \
                        FFLAGS=" ${flags}" \
                        ADAFLAGS=" ${flags}" \
                        prefix="/usr/local/sh-tools" \
                        exec_prefix="/usr/local/sh-tools" \
                        GCJFLAGS=" ${flags}" \
                        GOCFLAGS="-O2 -g ${flags}" \
                        CXXFLAGS="-g -O2 ${flags}" \
                        LIBCFLAGS="-g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \
                        LDFLAGS=" ${flags}" \
                        MULTIFLAGS="${flags}" \
                        DESTDIR="" \
                        INSTALL="/usr/bin/install -c" \
                        INSTALL_DATA="/usr/bin/install -c -m 644" \
                        INSTALL_PROGRAM="/usr/bin/install -c" \
                        INSTALL_SCRIPT="/usr/bin/install -c" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2e/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2e/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2e/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2e/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single-only/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single-only/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single-only/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m4-single-only/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a-single/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a-single/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a-single/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/m2a-single/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2e/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2e/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2e/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m2e/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' に入ります
make  all-am
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' に入ります
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' から出ます
make[4]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' から出ます
make[3]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' から出ます
make[2]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' から出ます
make[1]: ディレクトリ `/home/s/gcc-elf-sh' から出ます

s@s-VAIO ~/gcc-elf-sh
$

s@s-VAIO ~/gcc-elf-sh
$
 
  

gcc-4.8.1 006: make install

 
s@s-VAIO ~/gcc-elf-sh
$ make install
make[1]: ディレクトリ `/home/s/gcc-elf-sh' に入ります
/bin/sh ../gcc-4.8.1/mkinstalldirs /usr/local/sh-tools  /usr/local/sh-tools
make[2]: ディレクトリ `/home/s/gcc-elf-sh/fixincludes' に入ります
rm -rf /usr/local/sh-tools/libexec/gcc/sh-elf/4.8.1/install-tools
/bin/sh ../../gcc-4.8.1/fixincludes/../mkinstalldirs /usr/local/sh-tools/libexec/gcc/sh-elf/4.8.1/install-tools
mkdir -p -- /usr/local/sh-tools/libexec/gcc/sh-elf/4.8.1/install-tools
/bin/sh ../../gcc-4.8.1/fixincludes/../mkinstalldirs /usr/local/sh-tools/lib/gcc/sh-elf/4.8.1/install-tools/include
mkdir -p -- /usr/local/sh-tools/lib/gcc/sh-elf/4.8.1/install-tools/include
/usr/bin/install -c -m 644 ../../gcc-4.8.1/fixincludes/README-fixinc \
  /usr/local/sh-tools/lib/gcc/sh-elf/4.8.1/install-tools/include/README
/usr/bin/install -c fixinc.sh /usr/local/sh-tools/libexec/gcc/sh-elf/4.8.1/install-tools/fixinc.sh
/usr/bin/install -c fixincl.exe \
  /usr/local/sh-tools/libexec/gcc/sh-elf/4.8.1/install-tools/fixincl.exe
  :
  :
true  DO=all multi-do # make
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' に入ります
true  DO=install multi-do # make
test -z "/usr/local/sh-tools/sh-elf/lib/ml/m4-single-only" || /usr/bin/mkdir -p "/usr/local/sh-tools/sh-elf/lib/ml/m4-single-only"
test -z "/usr/local/sh-tools/share/info" || /usr/bin/mkdir -p "/usr/local/sh-tools/share/info"
 /usr/bin/install -c -m 644 ../../../../../gcc-4.8.1/libquadmath/libquadmath.info '/usr/local/sh-tools/share/info'
 install-info --info-dir='/usr/local/sh-tools/share/info' '/usr/local/sh-tools/share/info/libquadmath.info'
test -z "" || /usr/bin/mkdir -p ""
make[6]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' から出ます
make[5]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/ml/m4-single-only/libquadmath' から出ます
make[4]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' から出ます
test -z "/usr/local/sh-tools/sh-elf/lib" || /usr/bin/mkdir -p "/usr/local/sh-tools/sh-elf/lib"
test -z "/usr/local/sh-tools/share/info" || /usr/bin/mkdir -p "/usr/local/sh-tools/share/info"
 /usr/bin/install -c -m 644 ../../../gcc-4.8.1/libquadmath/libquadmath.info '/usr/local/sh-tools/share/info'
 install-info --info-dir='/usr/local/sh-tools/share/info' '/usr/local/sh-tools/share/info/libquadmath.info'
test -z "" || /usr/bin/mkdir -p ""
make[3]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' から出ます
make[2]: ディレクトリ `/home/s/gcc-elf-sh/sh-elf/libquadmath' から出ます
make[1]: ディレクトリ `/home/s/gcc-elf-sh' から出ます

s@s-VAIO ~/gcc-elf-sh
$

s@s-VAIO ~/gcc-elf-sh
$ cd

s@s-VAIO ~
$ ls
binutils-2.23.1.tar.bz2  gcc-elf-sh         gmp-5.1.2.tar.bz2  mpfr-2.4.1.tar.bz2  sh-tools
gcc-4.8.1                gmp-4.3.0.tar.bz2  mpc-1.0.1          mpfr-2.4.2          sh-tools20100424.tar.bz2
gcc-4.8.1.tar.bz2        gmp-4.3.2.tar.bz2  mpc-1.0.1.tar.tar  mpfr-2.4.2.tar.bz2

s@s-VAIO ~
$ ls -l /usr/local/
合計 4
drwxr-xr-x+ 1 s None 0 8月  25 07:09 bin
drwxr-xr-x+ 1 s None 0 8月  25 07:09 etc
drwxr-xr-x+ 1 s None 0 8月  25 22:36 gmp-4.3.0
drwxr-xr-x+ 1 s None 0 8月  25 23:12 gmp-4.3.2
drwxr-xr-x+ 1 s None 0 8月  25 21:29 gmp-5.1.2
drwxr-xr-x+ 1 s None 0 8月  25 07:09 lib
drwxr-xr-x+ 1 s None 0 8月  25 23:58 mpc-1.0.1
drwxr-xr-x+ 1 s None 0 8月  25 10:41 mpfr-2.4.1
drwxr-xr-x+ 1 s None 0 8月  25 23:45 mpfr-2.4.2
drwxr-xr-x+ 1 s None 0 8月  25 11:23 sh-tools

s@s-VAIO ~
$ ls -l /usr/local/sh-tools/
合計 12
drwxr-xr-x+ 1 s None 0 8月  26 05:54 bin
drwxr-xr-x+ 1 s None 0 8月  25 11:23 include
drwxr-xr-x+ 1 s None 0 8月  25 11:23 info
drwxr-xr-x+ 1 s None 0 8月  26 05:54 lib
drwxr-xr-x+ 1 s None 0 8月  25 11:22 libexec
drwxr-xr-x+ 1 s None 0 8月  25 11:23 man
drwxr-xr-x+ 1 s None 0 8月  25 09:33 share
drwxr-xr-x+ 1 s None 0 8月  25 09:34 sh-elf

s@s-VAIO ~
$ ls -l /usr/local/sh-tools/sh-elf/
合計 8
drwxr-xr-x+ 1 s None 0 8月  26 05:54 bin
drwxr-xr-x+ 1 s None 0 8月  26 05:55 lib

s@s-VAIO ~
$ ls -l /usr/local/sh-tools/sh-elf/bin
合計 66620
-rwxr-xr-x 2 s None 6379479 8月  25 09:33 ar.exe
-rwxr-xr-x 2 s None 8138545 8月  25 09:33 as.exe
-rwxr-xr-x 1 s None 2767338 8月  26 05:54 gcc.exe
-rwxr-xr-x 4 s None 8244905 8月  25 09:34 ld.bfd.exe
-rwxr-xr-x 4 s None 8244905 8月  25 09:34 ld.exe
-rwxr-xr-x 2 s None 6128199 8月  25 09:33 nm.exe
-rwxr-xr-x 2 s None 7077220 8月  25 09:33 objcopy.exe
-rwxr-xr-x 2 s None 7766785 8月  25 09:33 objdump.exe
-rwxr-xr-x 2 s None 6379479 8月  25 09:33 ranlib.exe
-rwxr-xr-x 2 s None 7077220 8月  25 09:33 strip.exe

s@s-VAIO ~
$ cd ..

s@s-VAIO /home
$ ls -l /usr/local/sh-tools/bin
合計 106356
-rwxr-xr-x 1 s None 6103876 8月  25 09:33 sh-elf-addr2line.exe
-rwxr-xr-x 2 s None 6379479 8月  25 09:33 sh-elf-ar.exe
-rwxr-xr-x 2 s None 8138545 8月  25 09:33 sh-elf-as.exe
-rwxr-xr-x 1 s None 6010024 8月  25 09:33 sh-elf-c++filt.exe
-rwxr-xr-x 1 s None 2794109 8月  26 05:54 sh-elf-cpp.exe
-rwxr-xr-x 1 s None  157374 8月  25 09:33 sh-elf-elfedit.exe
-rwxr-xr-x 2 s None 2767338 8月  26 05:54 sh-elf-gcc.exe
-rwxr-xr-x 1 s None  616416 8月  25 11:23 sh-elf-gcc-4.4.0.exe
-rwxr-xr-x 2 s None 2767338 8月  26 05:54 sh-elf-gcc-4.8.1.exe
-rwxr-xr-x 1 s None  171651 8月  26 05:54 sh-elf-gcc-ar.exe
-rwxr-xr-x 1 s None   15912 8月  25 11:23 sh-elf-gccbug
-rwxr-xr-x 1 s None  171651 8月  26 05:54 sh-elf-gcc-nm.exe
-rwxr-xr-x 1 s None  171651 8月  26 05:54 sh-elf-gcc-ranlib.exe
-rwxr-xr-x 1 s None 1372301 8月  26 05:54 sh-elf-gcov.exe
-rwxr-xr-x 1 s None 7121492 8月  25 09:33 sh-elf-gprof.exe
-rwxr-xr-x 4 s None 8244905 8月  25 09:34 sh-elf-ld.bfd.exe
-rwxr-xr-x 4 s None 8244905 8月  25 09:34 sh-elf-ld.exe
-rwxr-xr-x 2 s None 6128199 8月  25 09:33 sh-elf-nm.exe
-rwxr-xr-x 2 s None 7077220 8月  25 09:33 sh-elf-objcopy.exe
-rwxr-xr-x 2 s None 7766785 8月  25 09:33 sh-elf-objdump.exe
-rwxr-xr-x 2 s None 6379479 8月  25 09:33 sh-elf-ranlib.exe
-rwxr-xr-x 1 s None  946904 8月  25 09:33 sh-elf-readelf.exe
-rwxr-xr-x 1 s None 6157748 8月  25 09:33 sh-elf-size.exe
-rwxr-xr-x 1 s None 6082361 8月  25 09:33 sh-elf-strings.exe
-rwxr-xr-x 2 s None 7077220 8月  25 09:33 sh-elf-strip.exe

s@s-VAIO /home
$
 
  

gcc 007

 

 
  

LCDSample 000

 
$ ls -l
合計 8
drwxr-xr-x+ 1 s None 0 8月  26 06:32 s

s@s-VAIO /home
$ cd s

s@s-VAIO ~
$ ls -l
合計 177964
-rwxr-xr-x  1 s None 21455321 8月  19 22:22 binutils-2.23.1.tar.bz2
drwxr-xr-x+ 1 s None        0 5月  31 19:13 gcc-4.8.1
-rwxr-xr-x  1 s None 86753166 8月  25 05:15 gcc-4.8.1.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  26 05:04 gcc-elf-sh
-rwxr-xr-x  1 s None  1897926 8月  25 07:46 gmp-4.3.0.tar.bz2
-rwxr-xr-x  1 s None  1897483 8月  25 22:15 gmp-4.3.2.tar.bz2
-rwxr-xr-x  1 s None  2194495 8月  20 07:18 gmp-5.1.2.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  26 06:32 LCDsample
drwxr-xr-x+ 1 s None        0 8月  25 23:49 mpc-1.0.1
-rwxr-xr-x  1 s None   624125 8月  24 05:27 mpc-1.0.1.tar.tar
-rwxr-xr-x  1 s None  1064281 8月  20 07:35 mpfr-2.4.1.tar.bz2
drwxr-xr-x+ 1 s None        0 8月  25 23:34 mpfr-2.4.2
-rwxr-xr-x  1 s None  1077886 8月  25 23:19 mpfr-2.4.2.tar.bz2
drwxr-xr-x+ 1 s None        0 4月  25  2009 sh-tools
-rwxr-xr-x  1 s None 65081859 8月  19 21:35 sh-tools20100424.tar.bz2

s@s-VAIO ~
$ cd LCDsample/

s@s-VAIO ~/LCDsample
$ ls
LCDtest1  LCDtest2  LCDtest3  LCDtest4  LCDtest5  readme.txt

s@s-VAIO ~/LCDsample
$ cd LCDtest1

s@s-VAIO ~/LCDsample/LCDtest1
$ ls -l
合計 146
-rwxr-xr-x 1 s None 13428 3月  10  2010 cpu.h
-rwxr-xr-x 1 s None  1956 2月  11  2010 cpu_init.c
-rwxr-xr-x 1 s None   398 8月   1  2007 cpu_init.h
-rwxr-xr-x 1 s None  2896 3月  12  2010 cpu_init.o
-rwxr-xr-x 1 s None  5387 3月   3  2010 cpu_uart.c
-rwxr-xr-x 1 s None   829 1月  26  2010 cpu_uart.h
-rwxr-xr-x 1 s None  4020 3月  12  2010 cpu_uart.o
-rwxr-xr-x 1 s None  6624 3月  12  2010 LCDtest1.bin
-rwxr-xr-x 1 s None  4105 3月  12  2010 LCDtest1.c
-rwxr-xr-x 1 s None 15801 3月  12  2010 LCDtest1.elf
-rwxr-xr-x 1 s None  6600 3月  12  2010 LCDtest1.map
-rwxr-xr-x 1 s None 19940 3月  12  2010 LCDtest1.mot
-rwxr-xr-x 1 s None  2716 3月  12  2010 LCDtest1.o
-rwxr-xr-x 1 s None   740 3月  12  2010 Makefile
-rwxr-xr-x 1 s None   432 3月  10  2010 memory.def
-rwxr-xr-x 1 s None  3116 3月  12  2010 startup.o
-rwxr-xr-x 1 s None  2076 2月  10  2010 startup.s
-rwxr-xr-x 1 s None 10750 8月   1  2007 tinylib.c
-rwxr-xr-x 1 s None  1042 8月   1  2007 tinylib.h
-rwxr-xr-x 1 s None 10376 3月  12  2010 tinylib.o

s@s-VAIO ~/LCDsample/LCDtest1
$ make
/usr/local/sh-tools/bin/sh-elf-ld -Map LCDtest1.map -T memory.def startup.o LCDtest1.o cpu_init.o cpu_uart.o tinylib.o -L/usr/local/sh-tools/lib/gcc/sh-elf/3.4.5/m2 -lgcc -o LCDtest1.elf
/usr/local/sh-tools/bin/sh-elf-ld: -lgcc が見つかりません
Makefile:14: recipe for target `all' failed
make: *** [all] Error 1

s@s-VAIO ~/LCDsample/LCDtest1
$ man ld

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$ find / -name gcc.a -print


s@s-VAIO ~/LCDsample/LCDtest1
$ ls -l
合計 126
-rwxr-xr-x 1 s None 13428 3月  10  2010 cpu.h
-rwxr-xr-x 1 s None  1956 2月  11  2010 cpu_init.c
-rwxr-xr-x 1 s None   398 8月   1  2007 cpu_init.h
-rwxr-xr-x 1 s None  2896 3月  12  2010 cpu_init.o
-rwxr-xr-x 1 s None  5387 3月   3  2010 cpu_uart.c
-rwxr-xr-x 1 s None   829 1月  26  2010 cpu_uart.h
-rwxr-xr-x 1 s None  4020 3月  12  2010 cpu_uart.o
-rwxr-xr-x 1 s None  6624 3月  12  2010 LCDtest1.bin
-rwxr-xr-x 1 s None  4105 3月  12  2010 LCDtest1.c
-rwxr-xr-x 1 s None     0 8月  26 06:35 LCDtest1.map
-rwxr-xr-x 1 s None 19940 3月  12  2010 LCDtest1.mot
-rwxr-xr-x 1 s None  2716 3月  12  2010 LCDtest1.o
-rwxr-xr-x 1 s None   740 3月  12  2010 Makefile
-rwxr-xr-x 1 s None   734 8月  26 06:47 Makefile.old
-rwxr-xr-x 1 s None   432 3月  10  2010 memory.def
-rwxr-xr-x 1 s None  3116 3月  12  2010 startup.o
-rwxr-xr-x 1 s None  2076 2月  10  2010 startup.s
-rwxr-xr-x 1 s None 10750 8月   1  2007 tinylib.c
-rwxr-xr-x 1 s None  1042 8月   1  2007 tinylib.h
-rwxr-xr-x 1 s None 10376 3月  12  2010 tinylib.o

s@s-VAIO ~/LCDsample/LCDtest1
$ make
/usr/local/sh-tools/bin/sh-elf-ld -Map LCDtest1.map -T memory.def startup.o LCDtest1.o cpu_init.o cpu_uart.o tinylib.o -L/usr/local/sh-tools/lib/gcc/sh-elf/3.4.5/m2 -o LCDtest1.elf
tinylib.o: 関数 `ntorstru' 内:
/home/nanashino/sh/CQ/LCDtest1/tinylib.c:267: `__udivsi3' に対する定義されていない参照です
Makefile:14: recipe for target `all' failed
make: *** [all] Error 1

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$

s@s-VAIO ~/LCDsample/LCDtest1
$ cat Makefile
CSRCS    = LCDtest1.c cpu_init.c cpu_uart.c tinylib.c
TARGET   = LCDtest1
ASMSRCS  = startup.s
OBJS     = $(ASMSRCS:%.s=%.o) $(CSRCS:%.c=%.o)
LDSCRIPT = memory.def

GCC = /usr/local/sh-tools/bin/sh-elf-gcc
LD = /usr/local/sh-tools/bin/sh-elf-ld
AS = /usr/local/sh-tools/bin/sh-elf-as
OBJCOPY = /usr/local/sh-tools/bin/sh-elf-objcopy
GCCLIB = /usr/local/sh-tools/lib/gcc/sh-elf/3.4.5/m2

all: $(OBJS) $(LDSCRIPT)
        $(LD) -Map $(TARGET).map -T $(LDSCRIPT) $(OBJS) -L$(GCCLIB) -o $(TARGET).elf
        $(OBJCOPY) -O srec $(TARGET).elf $(TARGET).mot
        $(OBJCOPY) -O binary $(TARGET).elf $(TARGET).bin
.c.o:
        $(GCC) -c -g -m2 $<
.s.o:
        $(AS) $< -g -o $@
clean:
        rm *.o $(TARGET).elf $(TARGET).map $(TARGET).mot $(TARGET).bin

s@s-VAIO ~/LCDsample/LCDtest1
$

 

  
  • lgccがエラー。gcc.aとかgcc.soとか探しましたが(find / ・・・)有りません。ぬぬっ!実は、libgcc.aを見つけられなかったみたいです。makeのサーチしている場所がgccのバージョンを意識したパスになっていたので、バージョンを正しくしました
GCCLIB = /usr/local/sh-tools/lib/gcc/sh-elf/3.4.5/m2




gcc 009 


 
  

PaintALine Test ( Call Counter )

 

/* ペイント描画 */

/* Pain sub (再帰的に呼ばれる) */
void PaintALine(int x, int y, PIXEL c, PIXEL bc)
{
	PIXEL	*leftscanp, *rightscanp;
	int		sx, ex;

	t_printf("PAL %d\n", ++PALine);


	/* 左右方向に指定色をScanする */
	leftscanp = rightscanp = (PIXEL *)(GRPH_Buffer) + x + y * GRPH_width;
	
	/* 指定位置(x,y)は、bcと同色が前提なので、
	   その部分のチェックは省き、(x-1, y)と(x+1,y)からscanする。
	*/
	leftscanp--;
	for (sx = x-1; sx >= GRPH_clip_window_sx ; sx--)
	{
		if (*leftscanp != bc) break;
		leftscanp--;
	}
	leftscanp++;
	sx++;

	rightscanp++;
	for (ex = x+1; ex <= GRPH_clip_window_ex; ex++)
	{
		if (*rightscanp != bc) break;
		rightscanp++;
	}
	ex--;

	/* Scan結果を元に、指定色の部分を塗りつぶす */
	HorizontalLine(sx, y, ex, c);

	/* 上部ライン(sx, y-1) to (ex, y-1)と
	   下部ライン(sx, y+1) to (ex, y+1)の指定色部分を探し、
	   そこを起点として再びペイント開始する*/
	for (; sx <= ex ; sx++)
	{
		if (y > GRPH_clip_window_sy)
		{
			if (*(leftscanp-GRPH_width) == bc) PaintALine(sx, y-1, c, bc);
		}
		if (y < GRPH_clip_window_ey)
		{
			if (*(leftscanp+GRPH_width) == bc) PaintALine(sx, y+1, c, bc);
		}
		leftscanp++;
	}
}

/* Paint Main */
void GRPH_Paint(int x, int y, PIXEL c)
{
	PIXEL	*scanp;
	PIXEL	backcolor;

	if ((x < GRPH_clip_window_sx) ||
	    (x > GRPH_clip_window_ex) ||
	    (y < GRPH_clip_window_sy) ||
	    (y > GRPH_clip_window_ey)) return;
	backcolor = *((PIXEL *)(GRPH_Buffer) + x + y * GRPH_width);
	PALine = 0;
	PaintALine(x, y, c, backcolor);
	return;
}




PAL 7538
PAL 7539
PAL 7540
PAL 7541
PAL 7542
PAL 7543
PAL 7544
PAL 7545
PAL 7546
PAL 7547
PAL 7548
PAL 7549
PAL 7550
PAL 7551
PAL 7552
PAL 7553
PAL 7554
PAL 7555
PAL 7556
PAL 7557
PAL 7558
PAL 7559
PAL 7560
PAL 7561
PAL 7562
PAL 7563
PAL 7564
PAL 7565
PAL 7566
PAL 7567
PAL 469786569
PAL 1
PAL 401
PAL 469786517
PAL 469785377
PAL 469785378
PAL 469785379
PAL 4697
 
  

PaintALine recursive call permanently


PAL times x y
 
PAL 1668 214 62
PAL 1669 214 63
PAL 1670 214 62
PAL 1671 214 63
PAL 1672 214 62
PAL 1673 214 63
PAL 1674 214 62
PAL 1675 214 63
PAL 1676 214 62
PAL 1677 214 63
PAL 1678 214 62
PAL 1679 214 63
PAL 1680 214 62
PAL 1681 214 63
PAL 1682 214 62
PAL 1683 214 63
PAL 1684 214 62
PAL 1685 214 63
PAL 1686 214 62
PAL 1687 214 63
PAL 1688 214 62
PAL 1689 214 63
PAL 1690 214 62
PAL 1691 214 63
PAL 1692 214 62
PAL 1693 214 63
PAL 1694 214 62
PAL 1695 214 63
PAL 1696 214 62
PAL 1697 214 63
PAL 1698 214 62
PAL 1699 214 63
PAL 1700 214 62
PAL 1701 214 63


Tiny Dump Monitor
=========================================================================================
PAL 1196 215 62
PAL 1197 215 63
PAL 1198 215 62
PAL 1199 215 63
PAL 1200 215 62
PAL 1201 215 63
PAL 1202 215 62
PAL 1203 215 63
PAL 1204 215 62
PAL 1205 215 63
PAL 1206 215 62
PAL 1207 215 63
PAL 1208 215 62
PAL 1209 215 63
PAL 1210 215 62
PAL 1211 215 63
PAL 1212 215 62
PAL 1213 215 63
PAL 1214 215 62
PAL 1215 215 63
PAL 1216 215 62
PAL 1217 215 63
PAL 1218 215 62
PAL 1219 215 63
PAL 1220 215 62
PAL 1221 215 63
PAL 1222 215 62
PAL 1223 215 63
PAL 1224 215 62
PAL 1225 215 63
PAL 1226 215 62
PAL 1227 215 63
PAL 1228 215 62
PAL 1229 215 63
PAL 1230 215 62
PAL 1231 215 63
PAL 1232 215 62
PAL 1233 215 63
PAL 1234 215 62


Tiny Dump Monitor
==========================================================================
PAL 657 216 63
PAL 658 216 62
PAL 659 216 63
PAL 660 216 62
PAL 661 216 63
PAL 662 216 62
PAL 663 216 63
PAL 664 216 62
PAL 665 216 63
PAL 666 216 62
PAL 667 216 63
PAL 668 216 62
PAL 669 216 63
PAL 670 216 62
PAL 671 216 63
PAL 672 216 62
PAL 673 216 63
PAL 674 216 62
PAL 675 216 63
PAL 676 216 62
PAL 677 216 63
PAL 678 216 62
PAL 679 216 63
PAL 680 216 62
PAL 681 216 63
PAL 682 216 62
PAL 683 216 63
PAL 684 216 62
PAL 685 216 63
PAL 686 216 62
PAL 687 216 63
PAL 688 216 62
PAL 689 216 63
PAL 690 216 62
PAL 691 216 63
PAL 692 216 62
PAL 693 216 63
PAL 694 216 62
 
  

gcc 012

 

 
  

gcc 007

 

 
  

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

Menu

管理人/副管理人のみ編集できます