From owner-freebsd-ports-bugs@freebsd.org Tue Apr 18 19:53:43 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98385D4485F for ; Tue, 18 Apr 2017 19:53:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68DBA1A01 for ; Tue, 18 Apr 2017 19:53:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v3IJrgBZ029208 for ; Tue, 18 Apr 2017 19:53:43 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218740] devel/protobuf: fix build when gcc is installed Date: Tue, 18 Apr 2017 19:53:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pawel@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2017 19:53:43 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218740 Bug ID: 218740 Summary: devel/protobuf: fix build when gcc is installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: pawel@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Created attachment 181879 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D181879&action= =3Dedit gcc build fix When there is gcc installed protobuf fails to build: libtool: compile: c++ -std=3Dc++11 -DHAVE_CONFIG_H -I. -I.. -isystem /usr/local/include -D_THREAD_SAFE -pthread -DHAVE_PTHREAD=3D1 -DHAVE_ZLIB= =3D1 -Wall -Wno-sign-compare -O2 -pipe -march=3Dnative -DGOOGLE_PROTOBUF_NO_RTTI -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -MT google/protobuf/compiler/js/js_generator.lo -MD -MP = -MF google/protobuf/compiler/js/.deps/js_generator.Tpo -c google/protobuf/compiler/js/js_generator.cc -fPIC -DPIC -o google/protobuf/compiler/js/.libs/js_generator.o /usr/local/lib/gcc49/libstdc++.so.6: version GLIBCXX_3.4.21 required by /hdd/ports/devel/protobuf/work/protobuf-3.2.0/src/js_embed not found gmake[3]: *** [Makefile:7853: google/protobuf/compiler/js/well_known_types_embed.cc] Error 1 gmake[3]: *** Waiting for unfinished jobs.... This is due to wrong native compiler detection. Attached patch fixes this by hardcoding detected native compiler to system compiler which generates proper js_embed binary that can be then executed without problems. --=20 You are receiving this mail because: You are the assignee for the bug.=