[Bug 218740] devel/protobuf: fix build when gcc is installed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Apr 18 19:53:43 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218740
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 at FreeBSD.org
Reporter: pawel at FreeBSD.org
Assignee: sunpoet at FreeBSD.org
Flags: maintainer-feedback?(sunpoet at FreeBSD.org)
Created attachment 181879
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=181879&action=edit
gcc build fix
When there is gcc installed protobuf fails to build:
libtool: compile: c++ -std=c++11 -DHAVE_CONFIG_H -I. -I.. -isystem
/usr/local/include -D_THREAD_SAFE -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall
-Wno-sign-compare -O2 -pipe -march=native -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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list