tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ccache fails to build NetBSD 9/amd64
> This is still not building for me, on netbsd-9, up to date as of last
> night:
>
> => Bootstrap dependency digest>=20211023: found digest-20220214
> => Checksum BLAKE2s OK for ccache-4.7.4.tar.gz
> => Checksum SHA512 OK for ccache-4.7.4.tar.gz
> work -> /tmp/work/devel/ccache/work
> ===> Installing dependencies for ccache-4.7.4
> => Tool dependency mktools-[0-9]*: found mktools-20220614
> => Tool dependency cmake>=2.8.1nb1: found cmake-3.25.1
> => Tool dependency pkgconf-[0-9]*: found pkgconf-1.8.0
> => Tool dependency cwrappers>=20150314: found cwrappers-20220403
> => Tool dependency checkperms>=1.1: found checkperms-1.12
> => Build dependency gcc8>=8.4.0nb6: found gcc8-8.4.0nb7
> => Full dependency zstd>=1.3.6: found zstd-1.5.2
> => Full dependency hiredis>=1.0.0: found hiredis-1.1.0
> => Full dependency gcc8-libs>=8.3.0: found gcc8-libs-8.4.0nb8
> ===> Checking for vulnerabilities in ccache-4.7.4
> ===> Overriding tools for ccache-4.7.4
> ===> Extracting for ccache-4.7.4
> ===> Patching for ccache-4.7.4
> ===> Creating toolchain wrappers for ccache-4.7.4
> ===> Configuring for ccache-4.7.4
> => Fixing CMAKE_MODULE_PATH in CMakeLists.txt
> INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
> => Checking for portability problems in extracted files
> -- The C compiler identification is GNU 8.4.0
> -- The CXX compiler identification is unknown
> -- The ASM compiler identification is GNU
> -- Found assembler: /tmp/work/devel/ccache/work/.cwrapper/bin/gcc
> -- The ASM_MASM compiler identification is unknown
> -- Found assembler: ml
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - failed
> -- Check for working C compiler: /tmp/work/devel/ccache/work/.cwrapper/bin/gcc
> -- Check for working C compiler: /tmp/work/devel/ccache/work/.cwrapper/bin/gcc - broken
> CMake Error at /usr/pkg/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
> The C compiler
>
> "/tmp/work/devel/ccache/work/.cwrapper/bin/gcc"
>
> is not able to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir: /tmp/work/devel/ccache/work/ccache-4.7.4/CMakeFiles/CMakeScratch/TryCompile-Rm53Zf
>
> Run Build Command(s):/usr/pkg/bin/gmake -f Makefile cmTC_0cb12/fast && make -f CMakeFiles/cmTC_0cb12.dir/build.make CMakeFiles/cmTC_0cb12.dir/build
> Building C object CMakeFiles/cmTC_0cb12.dir/testCCompiler.c.o
> /tmp/work/devel/ccache/work/.cwrapper/bin/gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -o CMakeFiles/cmTC_0cb12.dir/testCCompiler.c.o -c /tmp/work/devel/ccache/work/ccache-4.7.4/CMakeFiles/CMakeScratch/TryCompile-Rm53Zf/testCCompiler.c
> Linking C executable cmTC_0cb12
> /usr/pkg/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0cb12.dir/link.txt --verbose=1
> /tmp/work/devel/ccache/work/.cwrapper/bin/gcc -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -L/usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.4.0 -Wl,-R/usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.4.0 -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib CMakeFiles/cmTC_0cb12.dir/testCCompiler.c.o -o cmTC_0cb12
> gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
> compilation terminated.
> *** Error code 1
This is a problem with GCC 8, not ccache. You should have
/usr/pkg/gcc8/libexec/gcc/x86_64--netbsd/8.4.0/liblto_plugin.la
/usr/pkg/gcc8/libexec/gcc/x86_64--netbsd/8.4.0/liblto_plugin.so
/usr/pkg/gcc8/libexec/gcc/x86_64--netbsd/8.4.0/liblto_plugin.so.0
/usr/pkg/gcc8/libexec/gcc/x86_64--netbsd/8.4.0/liblto_plugin.so.0.0
installed and these should end up in .buildlink directory.
Can you check?
Kind regards,
Adam
Home |
Main Index |
Thread Index |
Old Index