pkgsrc-Bugs archive

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

Re: pkg/51164: open-vm-tools wont compile on NetBSD 6.x: compiler cannot create executables



The following reply was made to PR pkg/51164; it has been noted by GNATS.

From: Thomas Schweikle <tschweikle%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/51164: open-vm-tools wont compile on NetBSD 6.x: compiler
 cannot create executables
Date: Wed, 25 May 2016 17:22:57 +0200

 test-sct-bsn6-muc# gcc --version
 gcc (NetBSD nb2 20110806) 4.5.3
 Copyright (C) 2010 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 test-sct-bsn6-muc# cc --version
 cc (NetBSD nb2 20110806) 4.5.3
 Copyright (C) 2010 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 cc is hardlinked to gcc. clang is not installed.
 
 2016-05-25 17:10 GMT+02:00 Thomas Klausner <wiz%netbsd.org@localhost>:
 > The following reply was made to PR pkg/51164; it has been noted by GNATS.
 >
 > From: Thomas Klausner <wiz%NetBSD.org@localhost>
 > To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
 > Cc:
 > Subject: Re: pkg/51164: open-vm-tools wont compile on NetBSD 6.x: compiler
 >  cannot create executables
 > Date: Wed, 25 May 2016 17:06:21 +0200
 >
 >  The relevant part is
 >
 >  configure:3791: gcc -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -DUSING_AUTOCONF=1 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c
 >    >&5
 >  cc1: error: -Werror=unused-local-typedefs: No option -Wunused-local-typedefs
 >  cc1: error: -Werror=unused-but-set-variable: No option -Wunused-but-set-variable
 >  configure:3795: $? = 1
 >  configure:3833: result: no
 >
 >
 >  The pkgsrc Makefile contains:
 >
 >  .include "../../mk/compiler.mk"
 >  .if !empty(PKGSRC_COMPILER:Mclang)
 >  _WRAP_EXTRA_ARGS.CC+=   -Wno-error=unused-local-typedef
 >  CWRAPPERS_APPEND.cc+=   -Wno-error=unused-local-typedef
 >  .elif !empty(PKGSRC_COMPILER:Mgcc)
 >  _WRAP_EXTRA_ARGS.CC+=   -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
 >  CWRAPPERS_APPEND.cc+=   -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
 >  .endif
 >
 >  So these should be filtered out when you use gcc.
 >
 >  What compiler are you using?
 >   Thomas
 >
 
 
 
 -- 
 Thomas
 


Home | Main Index | Thread Index | Old Index