pkgsrc-Users archive

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

Re: clang vs gcc for pkgsrc



On Fri, Nov 09, 2018 at 11:15:25AM +0530, Mayuresh wrote:
> Also looked at https://wiki.netbsd.org/tutorials/pkgsrc/clang/

Following instructions at above page (setting PKGSRC_COMPILER, CLANGBASE,
HAVE_LLVM) led to the following error in www/webkit-gtk:

Compiling the C compiler identification source file "CMakeCCompilerId.c"
failed.
Compiler: /usr/pkgsrc/www/webkit-gtk/work/.cwrapper/bin/clang
Build flags:
-O2;-DRELEASE_WITHOUT_OPTIMIZATIONS;-I/usr/pkg/include;-I/usr/include;-I/usr/pkg/include/glib/glib-2.0;-I/usr/pkg/include/glib/gio-unix-2.0;-I/usr/pkg/lib/glib-2.0/include;-I/usr/X11R7/include;-I/usr/X11R7/include/freetype2;-I/usr/X11R7/include/libdrm
Id flags:

The output was:
1
error: unable to create target: 'Unable to find target for this triple (no
targets are registered)'
1 error generated.

What other settings are needed to use clang?

Mayuresh


Home | Main Index | Thread Index | Old Index