Bug 192880 - Build failure on stable/10 with amd64 and gcc
Summary: Build failure on stable/10 with amd64 and gcc
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.0-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 07:26 UTC by Enji Cooper
Modified: 2014-08-27 19:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer 2014-08-21 07:26:56 UTC
Repro steps:

cat src.conf <<EOF
MALLOC_PRODUCTION=

WITHOUT_ATM=
WITHOUT_AUDIT=
WITHOUT_BHYVE=
WITHOUT_BIND_DNSSEC=
WITHOUT_BIND_ETC=
WITHOUT_BIND_LIBS_LWRES=
WITHOUT_BIND_NAMED=
WITHOUT_BLUETOOTH=
WITHOUT_BSNMP=
WITHOUT_CALENDAR=
WITHOUT_CLANG=
WITHOUT_CLANG_BOOTSTRAP=
WITHOUT_CLANG_IS_CC=
WITHOUT_CTM=
WITHOUT_FORTRAN=
WITHOUT_FREEBSD_UPDATE=
WITHOUT_GAMES=
WITH_GCC=
WITH_GNUCXX=
WITHOUT_GCOV=
WITHOUT_GPIB=
WITHOUT_HAST=
WITHOUT_HESOID=
WITHOUT_HTML=
WITHOUT_I4B=
WITH_ICONV=
WITHOUT_IPFILTER=
WITHOUT_IPFW=
WITHOUT_IPX=
WITHOUT_LIBKSE=
WITHOUT_LPR=
WITHOUT_MAIL=
WITHOUT_NCP=
WITHOUT_NDIS=
WITHOUT_NIS=
WITH_NLS=
WITHOUT_NS_CACHING=
WITHOUT_OBJC=
WITHOUT_PF=
WITHOUT_PORTSNAP=
WITHOUT_PPP=
WITHOUT_PROFILE=
WITHOUT_RADIUS=
WITHOUT_RCMDS=
WITH_SSP=
WITHOUT_SVN=
WITHOUT_SVNLITE=
WITHOUT_SYSINSTALL=
WITH_TESTS=
WITHOUT_WIRELESS=
WITHOUT_WPA_SUPPLICANT_EAPOL=
WITH_ZFS=

cd /usr/src; env SRCCONF=$PWD/src.conf make buildworld

Expected result:

If the build's healthy, it should pass.

Actual result:

cc  -O2 -pipe   -I/usr/src/usr.sbin/bhyvectl/../../sys/amd64/vmm -std=gnu99  -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototy
pes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /usr/src/usr.sbin/bhyvectl/bhyvectl.c
cc1: warnings being treated as errors
In file included from /usr/src/usr.sbin/bhyvectl/bhyvectl.c:48:
/usr/obj/usr/src/tmp/usr/include/machine/vmm.h:590: warning: 'inline' is not at beginning of declaration
/usr/obj/usr/src/tmp/usr/include/machine/vmm.h:596: warning: 'inline' is not at beginning of declaration
/usr/obj/usr/src/tmp/usr/include/machine/vmm.h:602: warning: 'inline' is not at beginning of declaration
/usr/obj/usr/src/tmp/usr/include/machine/vmm.h:608: warning: 'inline' is not at beginning of declaration
*** [bhyvectl.o] Error code 1
Comment 1 Enji Cooper freebsd_committer 2014-08-21 07:28:25 UTC
(In reply to Garrett Cooper from comment #0)
> Repro steps:
> 
> cat src.conf <<EOF
> MALLOC_PRODUCTION=
> 
> WITHOUT_ATM=
> WITHOUT_AUDIT=
> WITHOUT_BHYVE=
> WITHOUT_BIND_DNSSEC=
> WITHOUT_BIND_ETC=
> WITHOUT_BIND_LIBS_LWRES=
> WITHOUT_BIND_NAMED=
> WITHOUT_BLUETOOTH=
> WITHOUT_BSNMP=
> WITHOUT_CALENDAR=
> WITHOUT_CLANG=
> WITHOUT_CLANG_BOOTSTRAP=
> WITHOUT_CLANG_IS_CC=
> WITHOUT_CTM=
> WITHOUT_FORTRAN=
> WITHOUT_FREEBSD_UPDATE=
> WITHOUT_GAMES=
> WITH_GCC=
> WITH_GNUCXX=
> WITHOUT_GCOV=
> WITHOUT_GPIB=
> WITHOUT_HAST=
> WITHOUT_HESOID=
> WITHOUT_HTML=
> WITHOUT_I4B=
> WITH_ICONV=
> WITHOUT_IPFILTER=
> WITHOUT_IPFW=
> WITHOUT_IPX=
> WITHOUT_LIBKSE=
> WITHOUT_LPR=
> WITHOUT_MAIL=
> WITHOUT_NCP=
> WITHOUT_NDIS=
> WITHOUT_NIS=
> WITH_NLS=
> WITHOUT_NS_CACHING=
> WITHOUT_OBJC=
> WITHOUT_PF=
> WITHOUT_PORTSNAP=
> WITHOUT_PPP=
> WITHOUT_PROFILE=
> WITHOUT_RADIUS=
> WITHOUT_RCMDS=
> WITH_SSP=
> WITHOUT_SVN=
> WITHOUT_SVNLITE=
> WITHOUT_SYSINSTALL=
> WITH_TESTS=
> WITHOUT_WIRELESS=
> WITHOUT_WPA_SUPPLICANT_EAPOL=
> WITH_ZFS=

Forgot the `EOF` here.

Also...

% uname -a
FreeBSD fbsd-stable-10.localdomain 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
Comment 2 commit-hook freebsd_committer 2014-08-24 02:08:09 UTC
A commit references this bug:

Author: grehan
Date: Sun Aug 24 02:07:35 UTC 2014
New revision: 270438
URL: http://svnweb.freebsd.org/changeset/base/270438

Log:
  Change __inline style to be consistent with FreeBSD usage,
  and also fix gcc build (on STABLE, when MFCd).

  PR:	192880
  Reviewed by:	neel
  Reported by:	ngie
  MFC after:	1 day

Changes:
  head/sys/amd64/include/vmm.h
Comment 3 commit-hook freebsd_committer 2014-08-27 06:14:45 UTC
A commit references this bug:

Author: grehan
Date: Wed Aug 27 06:13:44 UTC 2014
New revision: 270696
URL: http://svnweb.freebsd.org/changeset/base/270696

Log:
  MFC 270438
    Change __inline style to be consistent with FreeBSD usage,
    and also fix gcc build.

  PR:	192880

Changes:
  stable/10/sys/amd64/include/vmm.h