CPU実験室

誰も見向きもしない古いCPUをいじって動かしてみようというプロジェクトです

DSPクロス開発環境(2)

binutilsのコンフィギュアが通ったのでmake。
 
$ make
Configuring in libiberty
configure: loading cache ./config.cache
configure: error: `target_alias' has changed since the previous run:
configure:   former value:  m68k-coff
configure:   current value: tic4x-coff
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
Makefile:5650: recipe for target 'configure-libiberty' failed
make: *** [configure-libiberty] Error 1
 
binutilsのフォルダで前回m68k用をビルドしたファイルが残っているのがいけないようです。全メイクをかけろとかキャッシュを消せとメッセージが出ていますがここではきれいさっぱりソースツリーを削除し、再解凍、リビルドをかけ、無事ビルド成功。
 
続いてインストール。
 
$ make install
.././ld/ld.texinfo:1592: @itemx must follow @item
.././ld/ld.texinfo:6259: unknown command `colophon'
.././ld/ld.texinfo:6270: unknown command `cygnus'
Makefile:2361: recipe for target 'ld.info' failed
make[2]: *** [ld.info] Error 1
make[2]: Leaving directory '/home/・・・/binutils-2.16.1/ld'
Makefile:910: recipe for target 'install-info-recursive' failed
make[1]: *** [install-info-recursive] Error 1
make[1]: Leaving directory '/home/・・・/binutils-2.16.1/ld'
Makefile:5308: recipe for target 'install-ld' failed
make: *** [install-ld] Error 2
 
またもやエラー。
もうここらへんになるとスクリプトファイルのエラーの起きた場所を見ても何が何だかです。しかしネット社会の素晴らしいところ・・エラーメッセージをコピペして検索をかけると、同じよう引っかかった人がいて
 > @colophon となっているのをちゃんと @@colophon などとするだけ
らしいのでこれを修正。
@itemx はよくわからないのでそのまま@itemにしたらインストールは通っちゃいました
 
とりあえずアセンブラ、リンカ類は動きそうです
 
$ tic4x-coff-as -help
Usage: tic4x-coff-as [option...] [asmfile...]
Options:
  -a[sub-option...]       turn on listings
                          Sub-options [default hls]:
                          c      omit false conditionals
                          d      omit debugging directives
                          h      include high-level source
                          l      include assembly
                          m      include macro expansions
                          n      omit forms processing
                          s      include symbols
                          =FILE  list to FILE (must be last sub-option)
  --alternate             initially turn on alternate macro syntax
  -D                      produce assembler debugging messages
  --defsym SYM=VAL        define symbol SYM to given value
  -f                      skip whitespace and comment preprocessing
  -g --gen-debug          generate debugging information
  --gstabs                generate STABS debugging information
  --gstabs+               generate STABS debug info with GNU extensions
  --gdwarf-2              generate DWARF2 debugging information
  --help                  show this message and exit
  --target-help           show target specific options
  -I DIR                  add DIR to search list for .include directives
  -J                      don't warn about signed overflow
  -K                      warn when differences altered for long displacements
  -L,--keep-locals        keep local symbols (e.g. starting with `L')
  -M,--mri                assemble in MRI compatibility mode
  --MD FILE               write dependency information in FILE (default none)
  -nocpp                  ignored
  -o OBJFILE              name the object-file output OBJFILE (default a.out)
  -R                      fold data section into text section
  --statistics            print various measured statistics from execution
  --strip-local-absolute  strip local absolute symbols
  --traditional-format    Use same format as native assembler when possible
  --version               print assembler version number and exit
  -W  --no-warn           suppress warnings
  --warn                  don't suppress warnings
  --fatal-warnings        treat warnings as errors
  --itbl INSTTBL          extend instruction set to include instructions
                          matching the specifications defined in file INSTTBL
  -w                      ignored
  -X                      ignored
  -Z                      generate object file even after errors
  --listing-lhs-width     set the width in words of the output data column of
                          the listing
  --listing-lhs-width2    set the width in words of the continuation lines
                          of the output data column; ignored if smaller than
                          the width of the first line
  --listing-rhs-width     set the max width in characters of the lines from
                          the source file
  --listing-cont-lines    set the maximum number of continuation lines used
                          for the output data column of the listing
 
TIC4X options:
  -mcpu=CPU  -mCPU        select architecture variant. CPU can be:
                            30 - TMS320C30
                            31 - TMS320C31, TMS320LC31
                            32 - TMS320C32
                            33 - TMS320VC33
                            40 - TMS320C40
                            44 - TMS320C44
  -mrev=REV               set cpu hardware revision (integer numbers).
                          Combinations of -mcpu and -mrev will enable/disable
                          the appropriate options (-midle2, -mlowpower and
                          -menhanced) according to the selected type
  -mbig                   select big memory model
  -msmall                 select small memory model (default)
  -mregparm               select register parameters (default)
  -mmemparm               select memory parameters
  -midle2                 enable IDLE2 support
  -mlowpower              enable LOPOWER and MAXSPEED support
  -menhanced              enable enhanced opcode support