NetBSD Problem Report #52284

From www@NetBSD.org  Thu Jun  8 14:04:23 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 126517A1F5
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  8 Jun 2017 14:04:23 +0000 (UTC)
Message-Id: <20170608140420.601477A283@mollari.NetBSD.org>
Date: Thu,  8 Jun 2017 14:04:20 +0000 (UTC)
From: n54@gmx.com
Reply-To: n54@gmx.com
To: gnats-bugs@NetBSD.org
Subject: cwrappers and chekperms don't build with clang
X-Send-Pr-Version: www-1.0

>Number:         52284
>Category:       pkg
>Synopsis:       cwrappers and chekperms don't build with clang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 08 14:05:00 +0000 2017
>Last-Modified:  Sat Apr 28 07:55:00 +0000 2018
>Originator:     Kamil Rytarowski
>Release:        NetBSD 8.99.1 amd64
>Organization:
TNF
>Environment:
NetBSD chieftec 8.99.1 NetBSD 8.99.1 (GENERIC) #3: Thu Jun  8 12:59:05 UTC 2017  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64

>Description:
I've built and installed standalone clang (5.0svn) into /usr/local.

I added to mk.conf:
PKGSRC_COMPILER=        clang
PKG_CC=                 clang
PKG_CXX=                clang++
CLANGBASE=              /usr/local

cwrappers and checkperms are broken, because -Wno-traditional is unrecognized option and -Werror makes it fatal.


=> Build dependency cwrappers>=20150314: NOT found
=> Verifying install clean for ../../pkgtools/cwrappers
===> Installing dependencies for cwrappers-20170112
===> Overriding tools for cwrappers-20170112
===> Extracting for cwrappers-20170112
/bin/cp -R /usr/pkgsrc/pkgtools/cwrappers/files/bin /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
/usr/bin/touch /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112/transform-gcc.c
/bin/rm -f /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat/config.guess /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat/config.sub
/bin/ln -fs /usr/pkgsrc/mk/gnu-config/config.guess /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat/config.guess
/bin/ln -fs /usr/pkgsrc/mk/gnu-config/config.sub /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat/config.sub
===> Patching for cwrappers-20170112
===> Creating toolchain wrappers for cwrappers-20170112
===> Configuring for cwrappers-20170112
=> Configuring and building libnbcompat
checking build system type... x86_64-unknown-netbsd7.99
checking host system type... x86_64--netbsd
checking for x86_64--netbsd-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether make sets $(MAKE)... yes
checking for x86_64--netbsd-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/.tools/bin/install -c
checking whether ln -s works... yes
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking for gawk... /usr/bin/awk
checking for ar... ar
checking for fparseln in -lutil... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking alloca.h usability... no
checking alloca.h presence... no
checking for alloca.h... no
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking bsd/libutil.h usability... no
checking bsd/libutil.h presence... no
checking for bsd/libutil.h... no
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking machine/endian.h usability... yes
checking machine/endian.h presence... yes
checking for machine/endian.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/byteorder.h usability... no
checking sys/byteorder.h presence... no
checking for sys/byteorder.h... no
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking sys/endian.h usability... yes
checking sys/endian.h presence... yes
checking for sys/endian.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/ttycom.h usability... yes
checking sys/ttycom.h presence... yes
checking for sys/ttycom.h... yes
checking for sys/types.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking termcap.h usability... yes
checking termcap.h presence... yes
checking for termcap.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking tzfile.h usability... yes
checking tzfile.h presence... yes
checking for tzfile.h... yes
checking for unistd.h... (cached) yes
checking util.h usability... yes
checking util.h presence... yes
checking for util.h... yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking sys/queue.h usability... yes
checking sys/queue.h presence... yes
checking for sys/queue.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regexec... yes
checking for va_copy... yes
checking for __builtin_va_copy... yes
checking md5.h usability... yes
checking md5.h presence... yes
checking for md5.h... yes
checking for MD5Init in md5.h... yes
checking for md5.h... (cached) yes
checking rmd160.h usability... yes
checking rmd160.h presence... yes
checking for rmd160.h... yes
checking sha1.h usability... yes
checking sha1.h presence... yes
checking for sha1.h... yes
checking sha2.h usability... yes
checking sha2.h presence... yes
checking for sha2.h... yes
checking for MD5File... yes
checking for RMD160File... yes
checking for SHA1File... yes
checking for SHA512_File... yes
checking for issetugid... yes
checking whether optarg is declared... yes
checking whether optind is declared... yes
checking whether optreset is declared... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for struct option... yes
checking vis.h usability... yes
checking vis.h presence... yes
checking for vis.h... yes
checking for VIS_WHITE in vis.h... yes
checking for strunvis... yes
checking for strvis... yes
checking for strsvis... yes
checking for svis... yes
checking for unvis... yes
checking for vis... yes
checking for strunvis... (cached) yes
checking for strvis... (cached) yes
checking for strsvis... (cached) yes
checking for svis... (cached) yes
checking for unvis... (cached) yes
checking for vis... (cached) yes
checking for __attribute__... yes
checking for size_t... yes
checking for uintptr_t... yes
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for long long... yes
checking for long double... yes
checking for fsid_t... yes
checking whether byte ordering is bigendian... no
checking size of off_t... 8
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether snprintf is declared... yes
checking whether asprintf is declared... yes
checking whether strdup is declared... yes
checking whether isblank is declared... yes
checking for err... yes
checking for fgetln... yes
checking for fnmatch... yes
checking for fparseln... yes
checking for getdelim... yes
checking for getenv... yes
checking for getline... yes
checking for lchflags... yes
checking for lchmod... yes
checking for lchown... yes
checking for lutimes... yes
checking for mkdtemp... yes
checking for mkstemp... yes
checking for setenv... yes
checking for setgroupent... yes
checking for setpassent... yes
checking for setprogname... yes
checking for shquote... yes
checking for statvfs... yes
checking for strerror... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for strmode... yes
checking for strsep... yes
checking for strtoll... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utimes... yes
checking for warn... yes
checking for library containing socket... none required
checking for gethostbyname in -lnsl... no
checking for socklen_t... yes
checking for struct addrinfo... yes
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_storage... yes
checking for getnameinfo... yes
checking for gai_strerror... yes
checking for getaddrinfo... yes
checking for getenv... (cached) yes
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for mkdtemp... (cached) yes
checking for mkstemp... (cached) yes
checking for setlocale... yes
checking for getmode... yes
checking for setmode... yes
checking whether endgrent is declared... no
checking whether endpwent is declared... no
checking whether setpassent is declared... no
checking for gid_from_group... yes
checking for group_from_gid... yes
checking for pwcache_groupdb... yes
checking for pwcache_userdb... yes
checking for uid_from_user... yes
checking for user_from_uid... yes
checking for fts_open... yes
checking for timegm... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for poll.h... (cached) yes
checking for sys/poll.h... (cached) yes
checking for poll... yes
checking if poll() is implemented natively... yes
checking for getpassphrase... no
checking for getpgrp... yes
checking for select... yes
checking for getpgrp... (cached) yes
checking whether getpgrp requires zero arguments... yes
checking for struct statfs.f_flags... no
checking for struct statfs.f_fsize... no
checking for struct statfs.f_iosize... no
checking for struct dirent.d_namlen... yes
checking for DIR.dd_fd... yes
checking for dirfd... yes
checking *printf() support for %lld... yes
checking for strtoll... (cached) yes
checking if vsnprintf is standards compliant... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nbcompat/config.h
--- nbcompat/nbconfig.h ---
/usr/bin/awk -f nbcompat.awk nbcompat/config.h > nbcompat/nbconfig.h
--- glob.o ---
gcc -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat -I. -I.  -O2 -O0 -g -ggdb -DHAVE_CONFIG_H -c glob.c
--- libnbcompat.a ---
ar cr libnbcompat.a glob.o
ranlib libnbcompat.a
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking for x86_64--netbsd-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking spawn.h usability... yes
checking spawn.h presence... yes
checking for spawn.h... yes
checking for posix_spawnp... yes
configure: creating ./config.status
config.status: creating config.h
===> Building for cwrappers-20170112
--- .gdbinit ---
--- alloc.o ---
--- cleanup-cc.o ---
--- common.o ---
--- reorder-cc.o ---
--- generic-transform-cc.o ---
--- normalise-cc.o ---
--- as-wrapper.o ---
--- .gdbinit ---
rm -f .gdbinit
--- alloc.o ---
#   compile  cwrappers-20170112/alloc.o
--- cleanup-cc.o ---
#   compile  cwrappers-20170112/cleanup-cc.o
--- common.o ---
#   compile  cwrappers-20170112/common.o
--- reorder-cc.o ---
#   compile  cwrappers-20170112/reorder-cc.o
--- generic-transform-cc.o ---
#   compile  cwrappers-20170112/generic-transform-cc.o
--- normalise-cc.o ---
#   compile  cwrappers-20170112/normalise-cc.o
--- as-wrapper.o ---
#   compile  cwrappers-20170112/as-wrapper.o
--- alloc.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    alloc.c
--- cleanup-cc.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    cleanup-cc.c
--- common.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    common.c
--- reorder-cc.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    reorder-cc.c
--- generic-transform-cc.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    generic-transform-cc.c
--- normalise-cc.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    normalise-cc.c
--- as-wrapper.o ---
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    as-wrapper.c
--- .gdbinit ---
touch .gdbinit
--- cc-wrapper.o ---
#   compile  cwrappers-20170112/cc-wrapper.o
gcc -O2 -O0 -g -ggdb -fPIE    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wsystem-headers   -Wno-traditional   -Wa,--fatal-warnings  -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror   -DHAVE_NBCOMPAT_H=1 -I/tmp/pkgsrc-tmp/pkgtools/cwrappers/work/libnbcompat  -c    cc-wrapper.c
--- common.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- alloc.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- common.o ---
*** [common.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- alloc.o ---
*** [alloc.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- generic-transform-cc.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- normalise-cc.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- generic-transform-cc.o ---
*** [generic-transform-cc.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- reorder-cc.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- normalise-cc.o ---
*** [normalise-cc.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- reorder-cc.o ---
*** [reorder-cc.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- as-wrapper.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- cc-wrapper.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
--- as-wrapper.o ---
*** [as-wrapper.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- cc-wrapper.o ---
*** [cc-wrapper.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
--- cleanup-cc.o ---
error: unknown warning option '-Wno-traditional' [-Werror,-Wunknown-warning-option]
*** [cleanup-cc.o] Error code 1

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
8 errors

make: stopped in /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170112
*** Error code 2

Stop.
make[3]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make[2]: stopped in /usr/pkgsrc/pkgtools/cwrappers
*** Error code 1

Stop.
make[1]: stopped in /usr/pkgsrc/pkgtools/digest
*** Error code 1

Stop.
>How-To-Repeat:
1. Install clang
2. Configure mk.conf
2. Try to build cwrappers and checkperms
>Fix:
N/A

Workaround is to build cwrappers and checkperms with GCC.

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 16:38:16 +0200

 On Thu, Jun 08, 2017 at 02:05:01PM +0000, n54@gmx.com wrote:
 > I've built and installed standalone clang (5.0svn) into /usr/local.
 > 
 > I added to mk.conf:
 > PKGSRC_COMPILER=        clang
 > PKG_CC=                 clang
 > PKG_CXX=                clang++
 > CLANGBASE=              /usr/local
 > 
 > cwrappers and checkperms are broken, because -Wno-traditional is
 > unrecognized option and -Werror makes it fatal.

 You are still telling the make rules to use the GCC flags though. As
 such, it is a local problem.

 Joerg

From: Kamil Rytarowski <n54@gmx.com>
To: Joerg Sonnenberger <joerg@bec.de>, gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 16:32:43 +0200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --IqoLirA15RUwQUqRC20AgR5kHhawP4EdJ
 Content-Type: multipart/mixed; boundary="XdDMwsh1TrIsFcDEnsJaNWpn9KXptUIjE";
  protected-headers="v1"
 From: Kamil Rytarowski <n54@gmx.com>
 To: Joerg Sonnenberger <joerg@bec.de>, gnats-bugs@NetBSD.org
 Message-ID: <0c23b0fc-d7b6-e931-8397-b5a8839fbd51@gmx.com>
 Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
 References: <pr-pkg-52284@gnats.netbsd.org>
  <20170608140420.601477A283@mollari.NetBSD.org>
  <20170608140501.0AFCC7A2A6@mollari.NetBSD.org>
  <20170608143816.GA22576@britannica.bec.de>
 In-Reply-To: <20170608143816.GA22576@britannica.bec.de>

 --XdDMwsh1TrIsFcDEnsJaNWpn9KXptUIjE
 Content-Type: text/plain; charset=windows-1252
 Content-Transfer-Encoding: quoted-printable

 On 08.06.2017 16:38, Joerg Sonnenberger wrote:
 > On Thu, Jun 08, 2017 at 02:05:01PM +0000, n54@gmx.com wrote:
 >> I've built and installed standalone clang (5.0svn) into /usr/local.
 >>
 >> I added to mk.conf:
 >> PKGSRC_COMPILER=3D        clang
 >> PKG_CC=3D                 clang
 >> PKG_CXX=3D                clang++
 >> CLANGBASE=3D              /usr/local
 >>
 >> cwrappers and checkperms are broken, because -Wno-traditional is
 >> unrecognized option and -Werror makes it fatal.
 >=20
 > You are still telling the make rules to use the GCC flags though. As
 > such, it is a local problem.
 >=20
 > Joerg
 >=20

 How to tell the make to use Clang flags?


 --XdDMwsh1TrIsFcDEnsJaNWpn9KXptUIjE--

 --IqoLirA15RUwQUqRC20AgR5kHhawP4EdJ
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2

 iQIcBAEBCAAGBQJZOWAVAAoJEEuzCOmwLnZsAewP/35cWamDv15QVok+O80U2AMk
 VZUPzMlM9TBVZd0WJkzguPNmMobnLR1isOQfP0r6krZtoNZ6dtjw9vgqHjOPP82p
 nftWCZp6+vBakojFNNQnXrJ/9Hyqz0IMWMolhkPUXLj5ELofnxp5qGY7SHouErlf
 Ya3nfEscyQ699E059GLIvsRb0jiVX8WlwbszqA9m7jKz5wzg5CKgdMADaRENhG+E
 ytbGIf3cMGoWGleVMUuwYevQU1+T8NjbSuNVie6+jxRk9TYXrdVG6OzUO3mFHNcS
 m1TXkHY0+6BsVSjAAZipajFkmXUWJJ/+jjBhdJ1PRrQFk8d/CHVihI5U/+4IkKlE
 /GSQ7xXqYjxP+aWq1WEY4xKHbWd63sWolL6eUh76jDpPx35AFcgy6n+xMHl0BCCJ
 wJ1b309JlbBE1j20rxEecATh5kEgUxqv1/mSCYpL3Qjicgrpw1mjhH/1kZhrRDpz
 Cfr3ZleQSOpkUpcc7eoLmphS+FnQ0i/1X/TNspYdY3fBYKR9sakMCQ8S16S7qrMK
 eyW/+LjEdXk37PR++ZtoFiWndsPhG3NpkHycw9o7Z7r5YZc3JaavNBpfMx+6F7mw
 P52phf9HAKA/qH2Yt7gZlT+toJThJHadJ11ig0M5b8KE69HpXNx0uN4xQPRhNXg3
 hs5Q/5T22GuGo0JPyMuN
 =N2zy
 -----END PGP SIGNATURE-----

 --IqoLirA15RUwQUqRC20AgR5kHhawP4EdJ--

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	n54@gmx.com
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 16:59:58 +0200

 On Thu, Jun 08, 2017 at 02:45:01PM +0000, Kamil Rytarowski wrote:
 >  >> cwrappers and checkperms are broken, because -Wno-traditional is
 >  >> unrecognized option and -Werror makes it fatal.
 >  >
 >  > You are still telling the make rules to use the GCC flags though. As
 >  > such, it is a local problem.
 >  >
 >  > Joerg
 >  >
 >  
 >  How to tell the make to use Clang flags?

 HAVE_LLVM=yes, just as normal for base.

 Joerg

From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 17:00:43 +0200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --phW7DrF7WXniMAaKGsLTCJiaHtSQIGwJ0
 Content-Type: multipart/mixed; boundary="TqWfjO2SshgHbNA5dP047EGtDbhxsL7Xb";
  protected-headers="v1"
 From: Kamil Rytarowski <n54@gmx.com>
 To: gnats-bugs@NetBSD.org
 Message-ID: <a3c56a73-8125-2108-41a5-57425f4009c0@gmx.com>
 Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
 References: <pr-pkg-52284@gnats.netbsd.org>
  <20170608140420.601477A283@mollari.NetBSD.org>
  <20170608150501.4945D7A26A@mollari.NetBSD.org>
 In-Reply-To: <20170608150501.4945D7A26A@mollari.NetBSD.org>

 --TqWfjO2SshgHbNA5dP047EGtDbhxsL7Xb
 Content-Type: text/plain; charset=windows-1252
 Content-Transfer-Encoding: quoted-printable

 On 08.06.2017 17:05, Joerg Sonnenberger wrote:
 > The following reply was made to PR pkg/52284; it has been noted by GNAT=
 S.
 >=20
 > From: Joerg Sonnenberger <joerg@bec.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.=
 org,
 > 	n54@gmx.com
 > Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
 > Date: Thu, 8 Jun 2017 16:59:58 +0200
 >=20
 >  On Thu, Jun 08, 2017 at 02:45:01PM +0000, Kamil Rytarowski wrote:
 >  >  >> cwrappers and checkperms are broken, because -Wno-traditional is=

 >  >  >> unrecognized option and -Werror makes it fatal.
 >  >  >
 >  >  > You are still telling the make rules to use the GCC flags though.=
  As
 >  >  > such, it is a local problem.
 >  >  >
 >  >  > Joerg
 >  >  >
 >  > =20
 >  >  How to tell the make to use Clang flags?
 > =20
 >  HAVE_LLVM=3Dyes, just as normal for base.
 > =20
 >  Joerg
 > =20
 >=20

 Shouldn't this be already set automatically with PKGSRC_COMPILER=3Dclang?=



 --TqWfjO2SshgHbNA5dP047EGtDbhxsL7Xb--

 --phW7DrF7WXniMAaKGsLTCJiaHtSQIGwJ0
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2

 iQIcBAEBCAAGBQJZOWatAAoJEEuzCOmwLnZsWZkQAKkwstSTVQVqE4xVQJKpcTo7
 huRaldOvvdFnKXrcVuZsO2lOPJXWCF6dU/CsY8SOyUM2ZHEe0HuOfp728tU6g3jB
 bwkoP8EU8Ge89IA4MRVnAjVkguJafxpFUku/XWzP5v6+jkxCLqOO6sfiMAVVCXuG
 PEhA12UnIgeKaKFDWzqmf/GtxoenBk2K9xrADxLpKQHOL6nsjApNi4O7ViTM0qdt
 YtLKIJZqPIB5KvBszT2zyDBQRv7UN19hRau2Zv0N6pSTCcFKYjBRtxfqghM4TYdj
 ypnXSHnQbooUN9UezywILTdoxHeuQINnqQPPr1OrZmeGXi3SsylIUKWhQGrgrc5D
 65bd9R6wbQoPlo7dwySTGWjlZZR0NmCWNAg2VWpEsfoqmKMwDYqcR43ycJsP1Md6
 ie1c/COrBKpooGwSymrqP1ioCPxs0R7nKQkqIOetP1bvN7IuKJonXIyi8IHJnIwE
 zu8a9tXoVD5MSZVx8hnoz3ln+/7NY+WA8e0xekGH7/nYxESzpqMDY+HDf+S45iZy
 IM7akef2bYUyJMLFa300CMBcA22CUYzGk4ojU9TbOqnsbvWWP+vYNtpjsAwfDJIn
 1evBfHvGRyqcPuPvQAcHQuSRxFazMlUeDR+xT0zf6EkkjVh1VipIRuRqgg+ueFTH
 hjBgpq/CHMz2p46s0iX4
 =18sj
 -----END PGP SIGNATURE-----

 --phW7DrF7WXniMAaKGsLTCJiaHtSQIGwJ0--

From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
	n54@gmx.com
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 17:27:40 +0200

 On Thu, Jun 08, 2017 at 03:10:01PM +0000, Kamil Rytarowski wrote:
 >  >  HAVE_LLVM=yes, just as normal for base.
 >  
 >  Shouldn't this be already set automatically with PKGSRC_COMPILER=clang

 Not really, since it only affects the NetBSD mk rules and it is already
 the documented mechanism for using clang in first place.

 Joerg

From: Kamil Rytarowski <n54@gmx.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 18:05:13 +0200

 This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
 --HfXQrogAAjRORUqs8AtfAv4M8W9OsNjqO
 Content-Type: multipart/mixed; boundary="npag0BLcq3qN2Hw8iaw9gVGDxDnIukdhl";
  protected-headers="v1"
 From: Kamil Rytarowski <n54@gmx.com>
 To: gnats-bugs@NetBSD.org
 Message-ID: <e76366d5-0b46-2356-2922-7b88e98832cf@gmx.com>
 Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
 References: <pr-pkg-52284@gnats.netbsd.org>
  <20170608140420.601477A283@mollari.NetBSD.org>
  <20170608153002.B2B277A2A6@mollari.NetBSD.org>
 In-Reply-To: <20170608153002.B2B277A2A6@mollari.NetBSD.org>

 --npag0BLcq3qN2Hw8iaw9gVGDxDnIukdhl
 Content-Type: text/plain; charset=windows-1252
 Content-Transfer-Encoding: quoted-printable

 On 08.06.2017 17:30, Joerg Sonnenberger wrote:
 > The following reply was made to PR pkg/52284; it has been noted by GNAT=
 S.
 >=20
 > From: Joerg Sonnenberger <joerg@bec.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.=
 org,
 > 	n54@gmx.com
 > Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
 > Date: Thu, 8 Jun 2017 17:27:40 +0200
 >=20
 >  On Thu, Jun 08, 2017 at 03:10:01PM +0000, Kamil Rytarowski wrote:
 >  >  >  HAVE_LLVM=3Dyes, just as normal for base.
 >  > =20
 >  >  Shouldn't this be already set automatically with PKGSRC_COMPILER=3D=
 clang
 > =20
 >  Not really, since it only affects the NetBSD mk rules and it is alread=
 y
 >  the documented mechanism for using clang in first place.
 > =20
 >  Joerg
 > =20
 >=20

 My proposal is to make it turned on for PKGSRC_COMPILER=3Dclang.

 I just discussed it with community member, he was building cwrappers and
 checkperms for months with GCC (and with Clang other packages) because
 of this breakage. I used example config that was apparently prepared on
 other system. I'm not the only one who was confused here.


 --npag0BLcq3qN2Hw8iaw9gVGDxDnIukdhl--

 --HfXQrogAAjRORUqs8AtfAv4M8W9OsNjqO
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2

 iQIcBAEBCAAGBQJZOXW+AAoJEEuzCOmwLnZsZ6EQAMX30DBSH9HRPvi+6Ew9IkZx
 0uXA9quLsQQR2wKFYjFJ8g/r5ZapPt97LtbnyN2PhOrqYWwe/MHB6bbLl0rCxVq4
 OdmdQnw2sRyJrUIbxE9kASUL9cd47R8uKin502rRKgOGD6M7/+R+K3AY70wh+sfg
 Zb+I2TBBapqqUiOK10Z6E0mu9bfRRAS7UCCLQhyPG14Gm8OmWl2ck7gaEQJFpwfN
 JWlYVxW0BsbEEc1FQOOjSR/lg2lh/DByHtUcRqo2pBkF/dqsggzDrCvbQRwXKnYj
 cOxaKITjIrPIoWA5GR1xp8zfaqltl71maV65UDqVV/he8M1K1YjIt5dCwLu5jIdj
 7RhQQjZ84oMJYS1U7NTL1GLfdiUXsFVEE+lxL0Lt2r/oKm4tHbQb+8KeYtgr5JIA
 D51YyTOry/B6nrbiuR4VyVggxwBNzYWyRr6nYdEXzJXP4a+gEqoexKDTpP16INSw
 LZY/zTP+9iXaUxs2yK9QyMGKsLvGk81ml2p5RSHaBxhUyEaK1lkThlSdBHZTDxwK
 EvA6eAOcA+MPogZq6hEKKvimDxeoW+vOfxDdw/jxJv666aMZnnxjzof7kGZChw6t
 3am14mkhhS8YaHjDlVhNyDPTyXZsanJ0i+Kk1PeyPfBxlmwhmy+umYl3lOrDTfys
 ZaNTVCiH6i2vPnoztEN+
 =u9Ew
 -----END PGP SIGNATURE-----

 --HfXQrogAAjRORUqs8AtfAv4M8W9OsNjqO--

From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Thu, 8 Jun 2017 23:42:28 +0200

 On Thu, Jun 08, 2017 at 04:15:01PM +0000, Kamil Rytarowski wrote:
 >  My proposal is to make it turned on for PKGSRC_COMPILER=clang.
 >  
 >  I just discussed it with community member, he was building cwrappers and
 >  checkperms for months with GCC (and with Clang other packages) because
 >  of this breakage. I used example config that was apparently prepared on
 >  other system. I'm not the only one who was confused here.

 I've tried documenting it (long ago) in
 https://wiki.netbsd.org/tutorials/pkgsrc/clang/ but more automation
 can't hurt...
  Thomas

From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52284: cwrappers and chekperms don't build with clang
Date: Sat, 28 Apr 2018 07:53:29 +0000

 On Thu, Jun 08, 2017 at 09:45:00PM +0000, Thomas Klausner wrote:
  >  On Thu, Jun 08, 2017 at 04:15:01PM +0000, Kamil Rytarowski wrote:
  >  >  My proposal is to make it turned on for PKGSRC_COMPILER=clang.
  >  >  
  >  >  I just discussed it with community member, he was building cwrappers and
  >  >  checkperms for months with GCC (and with Clang other packages) because
  >  >  of this breakage. I used example config that was apparently prepared on
  >  >  other system. I'm not the only one who was confused here.
  >  
  >  I've tried documenting it (long ago) in
  >  https://wiki.netbsd.org/tutorials/pkgsrc/clang/ but more automation
  >  can't hurt...

 So the problem is that USE_BSD_MAKEFILE needs to and doesn't set this
 (and any other related flags used by the make library) according to
 PKGSRC_COMPILER?

 Is the behavior the same when using a bootstrapped installation, whose
 copy of the netbsd build system used for this is severely out of date?

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.