pkgsrc-Users archive

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

Re: gcc10 with Ada support added to wip



Am Thu, 04 Nov 2021 12:40:24 +0000

Hi. I have been testing the package a bit more. And I need some help
with an issue

Here are the good news. The ACATS tests (Ada Conformity Assessment Test
Suite) had 18 failures in NetBSD 9.2. I suppose most failures are due
to Compiler/OS things, not related to Ada. And it seems most failures
are not that important (they even work when using an external more
update ACATS test suite). However, in NetBSD 9.99.92... We have no
failures!!! :D So Ada can be said to have full support for NetBSD :D
(once again, I would say the same for NetBSD 9.2).

Here is the problem I am facing now... The compiler, when added to the
path to become the default system compiler, does not work with
./configure scripts. Though it does work perfectly, I have been
compiling a ton of stuff already. Here is what happens:

bash-5.1# echo $PATH
/usr/pkg/gcc10-aux/bin:/home/fernando/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin


===> Configuring for gcc10-10.3.0nb1
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking for a BSD-compatible install... /usr/bin/install -c -o root -g
wheel
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/pkg/bin/gsed
checking for gawk... /usr/bin/awk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... no
checking for libvtv support... no
checking for libhsail-rt support... no
checking for libphobos support... yes
checking for x86_64--netbsd-gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/pkgsrc/lang/gcc10/work/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
*** Error code 77

Stop.
make[2]: stopped in /usr/pkgsrc/lang/gcc10
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/lang/gcc10
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/security/sudo

bash-5.1# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/pkg/gcc10-aux/libexec/gcc/x86_64--netbsd/10.3.0/lto-wrapper
Target: x86_64--netbsd
Configured with: ../gcc-10.3.0/configure --disable-libstdcxx-pch
--enable-nls --with-libiconv-prefix=/usr --enable-__cxa_atexit
--with-gxx-include-dir=/usr/pkg/gcc10-aux/include/c++/ --disable-libssp
--enable-languages='c ada fortran c++' --enable-shared
--enable-long-long --with-local-prefix=/usr/pkg/gcc10-aux
--enable-threads=posix --with-boot-ldflags='-static-libstdc++
-static-libgcc -Wl,-R/usr/pkg/lib -Wl,-zrelro ' --with-system-zlib
--without-zstd --with-arch=nocona --with-tune=nocona --with-fpmath=sse
--with-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/bin/as
--prefix=/usr/pkg/gcc10-aux --build=x86_64--netbsd
--host=x86_64--netbsd --infodir=/usr/pkg/gcc10-aux/info
--mandir=/usr/pkg/gcc10-aux/man Thread model: posix Supported LTO
compression algorithms: zlib gcc version 10.3.0 (GCC)

From what I have read, is that the ./configure script is trying to
detect the existance of libraries or something like that, but it fail
and says that the compiler does not work [1].

Has anybody encountered this issue and knows how to fix it?

[1]
https://superuser.com/questions/1248542/checking-whether-the-c-compiler-works-no

Regards,
Fer



Home | Main Index | Thread Index | Old Index