Current-Users archive

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

Re: Unable to complete build of aarch64



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?

On Tue, 11 Jul 2023 at 11:31, Chavdar Ivanov <ci4ic4%gmail.com@localhost> wrote:
>
> Hi,
>
> After having completely cleaned all previous traces of obj and tools
> directories, having run 'make cleandir' in src and xsrc and cvs
> updated with no problematic logs, I am getting repeatedly the
> following:
> ............................................
> dependall ===> tools/llvm
> rm -rf /dumps/sysbuild/evbarm64/obj/home/sysbuild/src/tools/llvm/module.cache
> printf 'int setupterm(char *, int, int *);\nint main(void){return
> setupterm("", 0, 0);}' > need-terminfo.c
> for lib in tinfo terminfo ncurses curses; do  if cc -o
> need-terminfo.out need-terminfo.c -l$lib > /dev/null 2>&1; then  echo
> -l$lib > need-terminfo;  break;  fi;  done
> mkdir -p config
> printf '#!/bin/sh\necho 2.7.3' > config/python
> chmod 755 config/python
> cd config && /bin/sh
> /home/sysbuild/src/tools/llvm/../../external/apache2/llvm/lib/../autoconf/configure
> --enable-targets=x86,powerpc,sparc,aarch64,arm,mips
> --with-c-include-dirs=/usr/include/clang-13.0:/usr/include
> --disable-timestamps --prefix=/usr --sysconfdir=/etc/llvm
> --with-clang-default-openmp-runtime=libomp
> --with-llvm-srcdir=/home/sysbuild/src/tools/llvm/../../external/apache2/llvm/lib/../dist/llvm
>  --with-clang-srcdir=/home/sysbuild/src/tools/llvm/../../external/apache2/llvm/lib/../dist/clang
>  --host=aarch64--netbsd --disable-compiler-version-checks
> --disable-bindings
> llvm_cv_gnu_make_command=/dumps/sysbuild/evbarm64/tools/bin/nbmake
> ac_cv_path_CIRCO="echo circo" ac_cv_path_DOT="echo dot"
> ac_cv_path_DOTTY="echo dotty" ac_cv_path_FDP="echo fdp"
> ac_cv_path_NEATO="echo neato" ac_cv_path_TWOPI="echo twopi"
> ac_cv_path_XDOT="echo xdot"  --enable-optimized CC=cc CXX=c++
> --with-python=/dumps/sysbuild/evbarm64/obj/home/sysbuild/src/tools/llvm/config/python
> &&  cp /home/sysbuild/src/tools/llvm/../../external/apache2/llvm/lib/../include/module.modulemap
> include/llvm/module.modulemap
> checking for aarch64--netbsd-clang... cc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> ................
> checking for _chsize_s... no
> checking whether arc4random is declared... (cached) yes
> checking whether strerror_s is declared... no
> checking for GCC atomic builtins... yes
> yes
> checking for compiler -fvisibility-inlines-hidden option... yes
> configure: creating ./config.status
> config.status: creating include/llvm/Config/Targets.def
> config.status: creating include/llvm/Config/AsmPrinters.def
> config.status: creating include/llvm/Config/AsmParsers.def
> config.status: creating include/llvm/Config/Disassemblers.def
> config.status: creating include/llvm/Config/config.h
> config.status: creating include/llvm/Config/llvm-config.h
> config.status: creating include/llvm/Config/abi-breaking.h
> config.status: creating include/llvm/Support/DataTypes.h
> config.status: creating include/clang/Config/config.h
> printf '#include <dlfcn.h>\nint main(void){void *p; return dladdr(p,
> p);}' > need-dl.c
> if cc -o need-dl.out -D_GNU_SOURCE need-dl.c > /dev/null 2>&1; then
> echo > need-dl;  elif cc -o need-dl.out -D_GNU_SOURCE need-dl.c -ldl >
> /dev/null 2>&1; then  echo -ldl > need-dl;  else  echo > need-dl;  fi
> 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 host is
>
> uname -a
> NetBSD ymir.lorien.lan 10.99.5 NetBSD 10.99.5 (GENERIC) #7: Sun Jul  9
> 10:15:07 BST 2023
> sysbuild%ymir.lorien.lan@localhost:/dumps/sysbuild/amd64/obj/home/sysbuild/src/sys/arch/amd64/compile/GENERIC
> amd64
>
> I am going to rebuild the host just in case, but am not able to see
> any particular problem ewlsewhere.
>
>
> Chavdar
>
>
> ----



-- 
----


Home | Main Index | Thread Index | Old Index