MPFR, gccエラー

64bitCPUへの道 (1)V850 gcc 64bit
https://qiita.com/kaizen_nagoya/items/9934c0f9911ad29779b5

で、binutils, gmpはエラーなくコンパイルできた。

```
#  ../configure --target=v850-linux-elf --prefix=/usr/local/v850 --disable-nls
#  make
#  make install

# cd ../gmp
#./configure --enable-cxx --prefix=/usr/local/
# make
# make check
# make install
```
mpfrでfailになった。

```
# ./configure --with-gmp=/usr/local  --prefix=/usr/local/
# make
# make check

FAIL: tversion
...
SKIP: tget_set_d64
...
Testsuite summary for MPFR 3.1.4
============================================================================
# TOTAL: 160
# PASS:  158
# SKIP:  1
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
```

mpfr log(1 Fail, 1 Skip)
https://bit.ly/2CSblgH
make installはまだしていない。

gcc build failed with mpfr failure #349
https://github.com/Linuxbrew/legacy-linuxbrew/issues/349


Build error: GMP header and library version do not match
https://github.com/JuliaLang/julia/issues/6527


そこで、すべてv850というフォルダを作ってやることにした。

```
# mkdir v850
# cd v850
#  ../configure --target=v850-linux-elf --prefix=/usr/local/v850 --disable-nls
#  make
#  make install
# cd ../../gmp
# mkdir v850
# cd v850
#./configure --enable-cxx --prefix=/usr/local/v850
# make
# make check
# make install
# cd ../../
# mkdir v850
# cd v850
# ../configure --with-gmp=/usr/local/v850  --prefix=/usr/local/v850
# make
# make check

...

PASS: tversion
PASS: tinternals
PASS: tinits
PASS: tisqrt
PASS: tsgn
PASS: tcheck
PASS: tisnan
PASS: texceptions
PASS: tset_exp
PASS: tset
PASS: mpf_compat
PASS: mpfr_compat
PASS: reuse
PASS: tabs
PASS: tacos
PASS: tacosh
PASS: tadd
PASS: tadd1sp
PASS: tadd_d
PASS: tadd_ui
PASS: tagm
PASS: tai
PASS: tasin
PASS: tasinh
PASS: tatan
PASS: tatanh
PASS: taway
PASS: tbuildopt
PASS: tcan_round
PASS: tcbrt
PASS: tcmp
PASS: tcmp2
PASS: tcmp_d
PASS: tcmp_ld
PASS: tcmp_ui
PASS: tcmpabs
PASS: tcomparisons
PASS: tconst_catalan
PASS: tconst_euler
PASS: tconst_log2
PASS: tconst_pi
PASS: tcopysign
PASS: tcos
PASS: tcosh
PASS: tcot
PASS: tcoth
PASS: tcsc
PASS: tcsch
PASS: td_div
PASS: td_sub
PASS: tdigamma
PASS: tdim
PASS: tdiv
PASS: tdiv_d
PASS: tdiv_ui
PASS: teint
PASS: teq
PASS: terf
PASS: texp
PASS: texp10
PASS: texp2
PASS: texpm1
PASS: tfactorial
PASS: tfits
PASS: tfma
PASS: tfmod
PASS: tfms
PASS: tfprintf
PASS: tfrac
PASS: tfrexp
PASS: tgamma
PASS: tget_flt
PASS: tget_d
PASS: tget_d_2exp
PASS: tget_f
PASS: tget_ld_2exp
SKIP: tget_set_d64
PASS: tget_sj
PASS: tget_str
PASS: tget_z
PASS: tgmpop
PASS: tgrandom
PASS: thyperbolic
PASS: thypot
PASS: tinp_str
PASS: tj0
PASS: tj1
PASS: tjn
PASS: tl2b
PASS: tlgamma
PASS: tli2
PASS: tlngamma
PASS: tlog
PASS: tlog10
PASS: tlog1p
PASS: tlog2
PASS: tmin_prec
PASS: tminmax
PASS: tmodf
PASS: tmul
PASS: tmul_2exp
PASS: tmul_d
PASS: tmul_ui
PASS: tnext
PASS: tout_str
PASS: toutimpl
PASS: tpow
PASS: tpow3
PASS: tpow_all
PASS: tpow_z
PASS: tprintf
PASS: trandom
PASS: trec_sqrt
PASS: tremquo
PASS: trint
PASS: troot
PASS: tround_prec
PASS: tsec
PASS: tsech
PASS: tset_d
PASS: tset_f
PASS: tset_ld
PASS: tset_q
PASS: tset_si
PASS: tset_sj
PASS: tset_str
PASS: tset_z
PASS: tset_z_exp
PASS: tsi_op
PASS: tsin
PASS: tsin_cos
PASS: tsinh
PASS: tsinh_cosh
PASS: tsprintf
PASS: tsqr
PASS: tsqrt
PASS: tsqrt_ui
PASS: tstckintc
PASS: tstdint
PASS: tstrtofr
PASS: tsub
PASS: tsub1sp
PASS: tsub_d
PASS: tsub_ui
PASS: tsubnormal
PASS: tsum
PASS: tswap
PASS: ttan
PASS: ttanh
PASS: ttrunc
PASS: tui_div
PASS: tui_pow
PASS: tui_sub
PASS: turandom
PASS: tvalist
PASS: ty0
PASS: ty1
PASS: tyn
PASS: tzeta
PASS: tzeta_ui
============================================================================
Testsuite summary for MPFR 3.1.4
============================================================================
# TOTAL: 160
# PASS:  159
# SKIP:  1
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
cat tversion.log 2> /dev/null || true
[tversion] MPFR 3.1.4
[tversion] Compiler: GCC 8.2.0
[tversion] GMP: header 6.1.0, library 6.1.0
[tversion] TLS = yes, decimal = no, GMP internals = no
[tversion] intmax_t = yes, printf = yes
[tversion] gmp_printf: hhd = yes, lld = yes, jd = yes, td = yes, Ld = yes
[tversion] MPFR tuning parameters from src/amd/k8/mparam.h
PASS tversion (exit status: 0)
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
Making check in tune
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850'
make[1]: Nothing to be done for 'check-am'.
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850'
root@a06d58840d37:/usr/src/gcc/mpfr/v850# make
Making all in doc
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/doc'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/doc'
Making all in src
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make  all-am
make[2]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
Making all in tests
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
Making all in tune
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850'
root@a06d58840d37:/usr/src/gcc/mpfr/v850# make install
Making install in doc
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/doc'
make[2]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/doc'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/v850/share/doc/mpfr'
 /usr/bin/install -c -m 644 ../../doc/FAQ.html '/usr/local/v850/share/doc/mpfr'
 /bin/mkdir -p '/usr/local/v850/share/info'
 /usr/bin/install -c -m 644 ../../doc/mpfr.info '/usr/local/v850/share/info'
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/doc'
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/doc'
Making install in src
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make  install-am
make[2]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make[3]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
 /bin/mkdir -p '/usr/local/v850/lib'
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libmpfr.la '/usr/local/v850/lib'
libtool: install: /usr/bin/install -c .libs/libmpfr.so.4.1.4 /usr/local/v850/lib/libmpfr.so.4.1.4
libtool: install: (cd /usr/local/v850/lib && { ln -s -f libmpfr.so.4.1.4 libmpfr.so.4 || { rm -f libmpfr.so.4 && ln -s libmpfr.so.4.1.4 libmpfr.so.4; }; })
libtool: install: (cd /usr/local/v850/lib && { ln -s -f libmpfr.so.4.1.4 libmpfr.so || { rm -f libmpfr.so && ln -s libmpfr.so.4.1.4 libmpfr.so; }; })
libtool: install: /usr/bin/install -c .libs/libmpfr.lai /usr/local/v850/lib/libmpfr.la
libtool: install: /usr/bin/install -c .libs/libmpfr.a /usr/local/v850/lib/libmpfr.a
libtool: install: chmod 644 /usr/local/v850/lib/libmpfr.a
libtool: install: ranlib /usr/local/v850/lib/libmpfr.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/v850/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/v850/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 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/v850/include'
 /usr/bin/install -c -m 644 ../../src/mpfr.h ../../src/mpf2mpfr.h '/usr/local/v850/include'
make[3]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/src'
Making install in tests
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
make[2]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tests'
Making install in tune
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[2]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850/tune'
make[1]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850'
make[2]: Entering directory '/usr/src/gcc/mpfr-3.1.4/v850'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/v850/share/doc/mpfr'
 /bin/mkdir -p '/usr/local/v850/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/v850/share/doc/mpfr/examples'
 /usr/bin/install -c -m 644  ../AUTHORS ../BUGS ../COPYING ../COPYING.LESSER ../NEWS ../TODO '/usr/local/v850/share/doc/mpfr/.'
make[2]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850'
make[1]: Leaving directory '/usr/src/gcc/mpfr-3.1.4/v850'
```


やった。エラーは取れた。

versionの違いから、
すべてv850というフォルダを作り、
そこに生成するようにした。



```
# ../configure --target=v850-elf --enable-languages=c --with-gmp=/usr/local/v850 --with-mpfr=/usr/local/v850 --with-mpc=/usr/local/v850 --without-ppl, --without-cloog --prefix=/usr/local/v850 --disable-nls --disable-multilib --disable-libssp --with-newlib  --with-headers=/usr/src/gcc/newlib/libc/include
configure: error: invalid package name: ppl,
```
without-ppl,を外してみた。


```
# ../configure --target=v850-elf --enable-languages=c --with-gmp=/usr/local/v850 --with-mpfr=/usr/local/v850 --with-mpc=/usr/local/v850 --prefix=/usr/local/v850 --disable-nls --disable-multilib --disable-libssp --with-newlib  --with-headers=/usr/src/gcc/newlib/libc/include

# make 
checking for v850-elf-gcc... /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include   
checking for suffix of object files... configure: error: in `/usr/src/gcc/v850/v850-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:13186: recipe for target 'configure-target-libgcc' failed
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory '/usr/src/gcc/v850'
Makefile:890: recipe for target 'all' failed
make: *** [all] Error 2
```
config.log

```
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ /usr/src/gcc/libgcc/configure --srcdir=../../../libgcc --cache-file=./config.cache --with-newlib --with-cross-host=x86_64-pc-linux-gnu --prefix=/usr/local/v850 --disable-nls --disable-multilib --disable-libssp --with-newlib --with-headers=/usr/src/gcc/newlib/libc/include --enable-languages=c,lto --program-transform-name=s&^&v850-elf-& --disable-option-checking --with-target-subdir=v850-elf --build=x86_64-pc-linux-gnu --host=v850-elf --target=v850-elf

## --------- ##
## Platform. ##
## --------- ##

hostname = a06d58840d37
uname -m = x86_64
uname -r = 4.9.93-linuxkit-aufs
uname -s = Linux
uname -v = #1 SMP Wed Jun 6 16:55:56 UTC 2018

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/v850/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2036: creating cache ./config.cache
configure:2242: checking build system type
configure:2256: result: x86_64-pc-linux-gnu
configure:2276: checking host system type
configure:2289: result: v850-unknown-elf
configure:2392: checking for --enable-version-specific-runtime-libs
configure:2405: result: no
configure:2453: checking for a BSD-compatible install
configure:2521: result: /usr/bin/install -c
configure:2537: checking for gawk
configure:2564: result: mawk
configure:2664: checking for v850-elf-ar
configure:2691: result: v850-elf-ar
configure:2756: checking for v850-elf-lipo
configure:2783: result: v850-elf-lipo
configure:2848: checking for v850-elf-nm
configure:2875: result: /usr/src/gcc/v850/./gcc/nm
configure:2940: checking for v850-elf-ranlib
configure:2967: result: v850-elf-ranlib
configure:3032: checking for v850-elf-strip
configure:3059: result: v850-elf-strip
configure:3121: checking whether ln -s works
configure:3125: result: yes
configure:3142: checking for v850-elf-gcc
configure:3169: result: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include   
configure:3438: checking for C compiler version
configure:3447: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include    --version >&5
xgcc (GCC) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3458: $? = 0
configure:3447: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include    -v >&5
Reading specs from /usr/src/gcc/v850/./gcc/specs
COLLECT_GCC=/usr/src/gcc/v850/./gcc/xgcc
COLLECT_LTO_WRAPPER=/usr/src/gcc/v850/./gcc/lto-wrapper
Target: v850-elf
Configured with: ../configure --target=v850-elf --enable-languages=c --with-gmp=/usr/local/v850 --with-mpfr=/usr/local/v850 --with-mpc=/usr/local/v850 --prefix=/usr/local/v850 --disable-nls --disable-multilib --disable-libssp --with-newlib --with-headers=/usr/src/gcc/newlib/libc/include
Thread model: single
gcc version 8.2.0 (GCC) 
configure:3458: $? = 0
configure:3447: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include    -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3458: $? = 1
configure:3447: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
xgcc: fatal error: no input files
compilation terminated.
configure:3458: $? = 1
configure:3474: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include    -o conftest -g -O2   conftest.c  >&5
/usr/src/gcc/v850/./gcc/as: 106: exec: -o: not found
configure:3477: $? = 1
configure:3665: checking for suffix of object files
configure:3687: /usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include    -c -g -O2  conftest.c >&5
/usr/src/gcc/v850/./gcc/as: 106: exec: -o: not found
configure:3691: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3705: error: in `/usr/src/gcc/v850/v850-elf/libgcc':
configure:3708: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include   '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=v850-elf
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=v850-elf
ac_cv_host=v850-unknown-elf
ac_cv_prog_AR=v850-elf-ar
ac_cv_prog_AWK=mawk
ac_cv_prog_CC='/usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include   '
ac_cv_prog_LIPO=v850-elf-lipo
ac_cv_prog_NM=/usr/src/gcc/v850/./gcc/nm
ac_cv_prog_RANLIB=v850-elf-ranlib
ac_cv_prog_STRIP=v850-elf-strip

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='v850-elf-ar'
AWK='mawk'
CC='/usr/src/gcc/v850/./gcc/xgcc -B/usr/src/gcc/v850/./gcc/ -nostdinc -B/usr/src/gcc/v850/v850-elf/newlib/ -isystem /usr/src/gcc/v850/v850-elf/newlib/targ-include -isystem /usr/src/gcc/newlib/libc/include -B/usr/src/gcc/v850/v850-elf/libgloss/v850 -L/usr/src/gcc/v850/v850-elf/libgloss/libnosys -L/usr/src/gcc/libgloss/v850 -B/usr/local/v850/v850-elf/bin/ -B/usr/local/v850/v850-elf/lib/ -isystem /usr/local/v850/v850-elf/include -isystem /usr/local/v850/v850-elf/sys-include   '
CET_FLAGS=''
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='v850-elf-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/usr/src/gcc/v850/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PICFLAG='-fPIC'
RANLIB='v850-elf-ranlib'
SHELL='/bin/bash'
STRIP='v850-elf-strip'
ac_ct_CC=''
accel_dir_suffix=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_libsubdir='build-x86_64-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-x86_64-pc-linux-gnu'
build_vendor='pc'
cpu_type=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
double_type_size=''
dvidir='${docdir}'
enable_decimal_float=''
enable_execute_stack=''
enable_shared='yes'
enable_vtable_verify='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
force_explicit_eh_registry=''
get_gcc_base_ver=''
host='v850-unknown-elf'
host_alias='v850-elf'
host_cpu='v850'
host_noncanonical='v850-elf'
host_os='elf'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
long_double_type_size=''
mandir='${datarootdir}/man'
md_unwind_header=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/v850'
program_transform_name='s&^&v850-elf-&'
psdir='${docdir}'
real_host_noncanonical=''
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='v850-elf'
target_noncanonical='v850-elf'
target_subdir='v850-elf'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
unwind_header=''
vis_hide=''
with_aix_soname='aix'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"

configure: exit 1
```

```
GCC & binutils build - C compiler cannot create executables
https://stackoverflow.com/questions/35778330/gcc-binutils-build-c-compiler-cannot-create-executables
```


```
# ../configure --target=v850-elf --enable-languages=c --with-gmp=/usr/local/v850 --with-mpfr=/usr/local/v850 --with-mpc=/usr/local/v850 --without-ppl --without-cloog --prefix=/usr/local/v850 --disable-nls --disable-multilib --disable-libssp --with-newlib  --with-headers=/usr/src/gcc/newlib/libc/include
```


```
Thread model: posix
gcc version 8.2.0 (GCC) 
configure:4857: $? = 0
configure:4846: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:4857: $? = 1
configure:4846: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'; did you mean '--version'?
g++: fatal error: no input files
```


 Reload this Page gcc: error: unrecognized command line option '-V' 
https://www.linuxquestions.org/questions/linux-newbie-8/gcc-error-unrecognized-command-line-option-%27-v%27-4175603056/


#文書履歴
ver 0.10 初稿, mpfrエラー　20181030
ver 0.11 gccエラー 20181031