On 04/04/18 02:57 PM, Breno Leitao wrote:
Hi Dennis,

On 04/04/2018 03:31 PM, Dennis Clarke wrote:


Silly question. I tried to test a bit of _Float128 datatype stuff and so
  I installed the only libquadmath lib I could find.

nix$ dpkg -L libquadmath0-ppc64el-cross

Are you using ppc64 or ppc64el? This package you listed should be used if you
are cross compiling, which does not seem to be the case.

Just pure ppc64 here with the 970MP processors.


However :

nix$ gcc -mcpu=970 -mno-altivec -g -m64 -std=iso9899:1999 -o s.o s.c
s.c:82:10: fatal error: quadmath.h: No such file or directory
  #include <quadmath.h>

This package seems to come from GCC, where it is compiled with the following
flag:

   --disable-libquadmath   do not build libquadmath directory

I am wondering if the toolchain was compiled using this flag somehow.


Looks to be :

root@nix:~# /usr/bin/gcc --version
gcc (Debian 7.3.0-14) 7.3.0
Copyright (C) 2017 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.

root@nix:~# /usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/powerpc64-linux-gnu/7/lto-wrapper
Target: powerpc64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 7.3.0-14' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=powerpc64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-objc-gc=auto --enable-secureplt --disable-softfloat --enable-targets=powerpc64-linux,powerpc-linux --enable-multiarch --disable-werror --with-long-double-128 --enable-multilib --enable-checking=release --build=powerpc64-linux-gnu --host=powerpc64-linux-gnu --target=powerpc64-linux-gnu
Thread model: posix
gcc version 7.3.0 (Debian 7.3.0-14)
root@nix:~#

So there we see "--disable-libquadmath --disable-libquadmath-support".

damn.   :-(

Dennis

ps: I should bootstrap my own gcc in any case .











Reply via email to