Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2017 19:53:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218740] devel/protobuf: fix build when gcc is installed
Message-ID:  <bug-218740-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218740-13>