pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lang/nodejs failed to compile
On Tue, 29 Jun 2021 06:47:01 +0000
"hung.nguyengia" <hung.nguyengia%protonmail.com@localhost> wrote:
> It's based on RHEL. The GCC version is too old:
>
> gcc version 5.5.0 20171010 (Linaro GCC 5.5-2017.10)
>
> The distribution offers latest version of Clang and libc++, though. I bootstrapped pkgsrc like this:
>
> ./bootstrap --compiler clang --make-jobs 16 --unprivileged
>
> It seems clang still uses gcc's libstdc++, though. It's too old and doesn't support the C++ features lang/nodejs needs so lang/nodejs still failed to compile.
>
> Any help would be appreciated.
Hello,
Try to put this in mk.conf:
.if !empty(PKGPATH:Mlang/nodejs)
PKGSRC_COMPILER=gcc
GCC_REQD=10
GCCBASE=/usr/pkg/gcc10
CC=/usr/pkg/gcc10/bin/gcc
CXX=/usr/pkg/gcc10/bin/g++
.endif
It may still cause problems linking with dependencies
that nodejs needs so you might need to rebuild all
packages with lang/gcc10 for this to work.
To do this, rebootstrap pkgsrc with the system GCC
and then use the above without the PKGPATH conditional.
Home |
Main Index |
Thread Index |
Old Index