Current-Users archive

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

Re: build issue: _REENTRANT redefined



On Fri, Sep 06, 2019 at 11:51:49AM +0200, Thomas Klausner wrote:
> I tried building NetBSD as of a couple minutes ago as usual with
> MKLLVM=yes but as a new option I added MKSANITIZER=yes as well.
> 
> I see lots of:
> 
> In file included from /usr/src/external/gpl2/lvm2/dist/libdm/misc/dmlib.h:26:0,
>                  from /usr/src/external/gpl2/lvm2/dist/libdm/datastruct/bitset.c:18:
> /usr/src/external/gpl2/lvm2/dist/include/lib.h:26:0: error: "_REENTRANT" redefined [-Werror]
>  #define _REENTRANT
> 
> and also:
> 
> cc1: error: unrecognized command line option '-Wno-macro-redefined' [-Werror]
> 
> I have MKDEBUG=yes MKDEBUGLIB=yes MKLLVM=yes MKSANITIZER=yes.

Ok, so I tried adding HAVE_LLVM=yes but then I see:

/usr/src/external/gpl3/gcc/dist/libgomp/oacc-init.c:632:21: error: unknown attribute '__optimize__' ignored [-Werror,-Wunknown-attributes]
int __attribute__ ((__optimize__ ("O2")))
                    ^
/usr/src/external/gpl3/gcc/dist/libgomp/oacc-init.c:635:10: error: use of unknown builtin '__builtin_acc_on_device' [-Wimplicit-function-declaration]
  return __builtin_acc_on_device (dev);
         ^
/usr/src/external/gpl3/gcc/dist/libgomp/oacc-init.c:635:10: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
3 errors generated.

I guess I have to turn off the gcc build as well, but for now I'd like
to have both compilers...
 Thomas


Home | Main Index | Thread Index | Old Index