Date: Sun, 24 Sep 2017 10:55:48 +1000 From: Kubilay Kocak <koobs@FreeBSD.org> To: Julian Elischer <julian@freebsd.org>, "ports@FreeBSD.org" <ports@freebsd.org> Subject: Re: compler warnings in ports not supported in gcc 4.2.1 (stable/10) Message-ID: <d6518826-74f6-ee19-b9ea-c61240813e22@FreeBSD.org> In-Reply-To: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org> References: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 9/24/17 7:42 AM, Julian Elischer wrote: > Trying to compile the emulators/open-vm-tools-nox11 port > > but I end up dying with: > > libtool: compile: cc -DPACKAGE_NAME=\"open-vm-tools\" > -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"10.1.5\" > "-DPACKAGE_STRING=\"open-vm-tools 10.1.5\"" > -DPACKAGE_BUGREPORT=\"open-vm-tools-devel@lists.sourceforge.net\" > -DPACKAGE_URL=\"\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"10.1.5\" > -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 > -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1 > -DNO_PROCPS=1 -DNO_DNET=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_PARAM_H=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE__BOOL=1 > -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 > -DNO_XSM=1 -DNO_XCOMPOSITE=1 -DNO_MULTIMON=1 -I. > -I/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-stable-10.1.5/open-vm-tools/lib/include > -I/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-stable-10.1.5/open-vm-tools/lib/include > -Wno-deprecated-declarations -isystem /usr/local/include > -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -DNO_ICU -DVMX86_TOOLS -O2 -pipe > -DPANZURA_DEV -DPZ_FBSD_10 -isystem /usr/local/include > -fno-strict-aliasing -Wall -Werror -Wno-unused-function > -Wno-address-of-packed-member -Wno-unknown-warning-option -Wno-unused > -MT nicinfo_xdr.lo -MD -MP -MF .deps/nicinfo_xdr.Tpo -c nicinfo_xdr.c > -fPIC -DPIC -o .libs/nicinfo_xdr.o > cc1: error: unrecognized command line option > "-Wno-address-of-packed-member" > cc1: error: unrecognized command line option "-Wno-unknown-warning-option" > *** [nicinfo_xdr.lo] Error code 1 > > > the system in question is compiled with gcc > > > is there a supported way of making the port not set those flags on each > cc1 command? The port (all ports) should patch out -Werror. Upstream should not include it (as a default flag) in distribution sources. In the mean time, one can always: CFLAGS=-Wno-error (user or port set, += if the latter)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d6518826-74f6-ee19-b9ea-c61240813e22>