Current-Users archive

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

Re: Unable to complete build of aarch64



On Wed, 12 Jul 2023 at 10:56, RVP <rvp%sdf.org@localhost> wrote:
>
> On Tue, 11 Jul 2023, Chavdar Ivanov wrote:
>
> > if c++ -stdlib=libc++ -c -fmodules -fcxx-modules
> > -fmodules-cache-path=./module.cache
> > /home/sysbuild/src/tools/llvm/module-test.cpp  3> /dev/null 2>&1; then
> > echo HOST_SUPPORTS_MODULES=yes > support-modules;  else  echo
> > HOST_SUPPORTS_MODULES=no > support-modules;  fi
> > c++: error: unrecognized command-line option '-stdlib=libc++'
> > c++: error: unrecognized command-line option '-fmodules'; did you mean '-fmoduleinfo'?
> > c++: error: unrecognized command-line option '-fcxx-modules'
> > c++: error: unrecognized command-line option '-fmodules-cache-path=./module.cache'
> > dependall ===> tools/config
> >
> > ...
> >
> >
> > The same happens with the amd64 build.
> >
> >
> > Any ideas?
> >
>
> All those are Clang-specific options which GCC doesn't understand, but, this
> can't be the reason why your (LLVM-based) build is failing. As you can see
> the test is in an `if' statement, so it shouldn't error-out.
>
> Can you run the build again within script(1) so that the complete text is
> captured, and we can see where the actual error is?


Well, no need. Subsequent cvs update allowed me to build both systems.

Comparing the cvs log between the failed and the succeeded builds
(both were incremental), the only relevant change I see to be

RCS file: /cvsroot/src/tools/gcc/gcc-version.mk,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- gcc-version.mk      23 Jul 2022 19:01:18 -0000      1.22
+++ gcc-version.mk      11 Jul 2023 18:13:27 -0000      1.23
@@ -1,11 +1,7 @@
-#      $NetBSD: gcc-version.mk,v 1.22 2022/07/23 19:01:18 mrg Exp $
+#      $NetBSD: gcc-version.mk,v 1.23 2023/07/11 18:13:27 mrg Exp $

 # common location for tools and native build

-.if ${HAVE_GCC} == 8
-NETBSD_GCC_VERSION=nb1 20200311
-.elif ${HAVE_GCC} == 9
-NETBSD_GCC_VERSION=nb1 20200907
-.elif ${HAVE_GCC} == 10
-NETBSD_GCC_VERSION=nb1 20220722
+.if ${HAVE_GCC} == 10
+NETBSD_GCC_VERSION=nb2 20230710
 .endif


There you are.
>
> -RVP



Chavdar

-- 
----


Home | Main Index | Thread Index | Old Index