the cross compiler battle -- how to force host-triplet and target-triplet?

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

 




After many many many experiments I am seeing that host and target data
is not being passed down into the build of gmp after configure.  I took
a look into the gmp sources and multiple Makefile.in and see :

host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@

Well what should those really be?

I am trying to force this :

vesta_$ grep 'triplet' ./gmp-6.1.2/Makefile.in
build_triplet = x86_64-unknown-freebsd12.0
host_triplet = riscv64-unknown-freebsd12.0
vesta_$

No amount of finangle of configure options seems to be able to tell the
gmp build that the local host is x86_64-unknown-freebsd12.0 and that the
target should be a RISC-V rv64imafdc architecture. The actual triplet
for the target should be riscv64-unknown-freebsd12.0 however what I am
actually seeing is :


configure: summary of build options:

  Version:           GNU MP 6.1.2
  Host type:         none-unknown-freebsd12.0
  ABI:               standard
  Install prefix:    /usr/local/gcc8
  Compiler:          riscv64-unknown-freebsd12.0-gcc
  Static libraries:  yes
  Shared libraries:  no


That is wrong.

What I should see is this :

configure: summary of build options:

  Version:           GNU MP 6.1.2
  Host type:         riscv64-unknown-freebsd12.0
  ABI:               standard
  Install prefix:    /usr/local/gcc8
  Compiler:          /opt/tools/bin/riscv64-unknown-freebsd12.0-gcc
  Static libraries:  yes
  Shared libraries:  yes

So maybe I need to hack the Makefile.in files down in the gmp sources
within the gcc-8.2.0 source tree.  Is there some other way to get the
build of these gmp/mpfr/mpc correct?  any hints would help and this has
been covered in detail within a few previous posts by me :

  https://gcc.gnu.org/ml/gcc-help/2019-02/msg00068.html

So anyways getting a native RISC-V compiler isn't going well.

-- 
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux