pkgsrc-Users archive

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

Building pkgsrc on current with clang

So I have rebuilt my entire development system with clang and it looks pretty good. I have so far build over 1,000 packages including the dreaded gobject-introspection with no errors. I only have a few issues.

===> Building for pkgin-0.9.4nb6
make: don't know how to make /usr/obj/destdir/usr/lib/crt0.o. Stop

===> Building for xenkernel48-4.8.0nb1
ld -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -melf_x86_64 -melf_x86_64 -melf_x86_64 -T -N prelink.o --build-id=sha1 \

/usr/obj/sysutils/xenkernel48/work.x86_64/xen-4.8.0/xen/common/symbols-dummy.o -o /usr/obj/sysutils/xenkernel48/work.x86_64/xen-4.8.0/xen/.xen-syms.0
prelink.o: In function `xsm_default_action':
/usr/obj/sysutils/xenkernel48/work.x86_64/xen-4.8.0/xen/include/xsm/dummy.h:80: undefined reference to `__xsm_action_mismatch_detected' /usr/obj/sysutils/xenkernel48/work.x86_64/xen-4.8.0/xen/include/xsm/dummy.h:80:(.text+0xbce6d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `__xsm_action_mismatch_detected' ld: /usr/obj/sysutils/xenkernel48/work.x86_64/xen-4.8.0/xen/.xen-syms.0: hidden symbol `__xsm_action_mismatch_detected' isn't defined
ld: final link failed: Bad value
Makefile:124: recipe for target '/usr/obj/sysutils/xenkernel48/work.x86_64/xen-4.8.0/xen/xen-syms' failed

Not sure if the errors are clang related or not bot the former, at least, builds with gcc.

I notice that there are way more warnings under clang. I understand that that is considered a feature. Some of them seem a little too fussy such as this one.

  if ((x == y))

It warns about the extraneous parens.  Might make -Werror impossible.

D'Arcy J.M. Cain <> IM:darcy%Vex.Net@localhost

Home | Main Index | Thread Index | Old Index