Bug 278080 - devel/grpc: Port incorrectly defines both -std=c++17 and -std=gnu++17
Summary: devel/grpc: Port incorrectly defines both -std=c++17 and -std=gnu++17
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-31 20:00 UTC by Daniel Engberg
Modified: 2024-04-11 18:48 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2024-03-31 20:00:48 UTC
This likely a fallout because you're defining both -DCMAKE_CXX_STANDARD=17 and USE_CXXSTD=	c++17

See also: https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2024-04-08 04:54:07 UTC
(In reply to Daniel Engberg from comment #0)

Please indicate where the fallout is.

https://portsfallout.com/port?port=devel%2Fgrpc&maintainer=
Comment 2 Daniel Engberg freebsd_committer freebsd_triage 2024-04-11 18:48:56 UTC
Just look at the build log, 

"[  4% 85/1796] /usr/bin/c++ -Dgrpc_EXPORTS -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/include -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1 -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/third_party/address_sorting/include -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/src/core/ext/upb-gen -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/src/core/ext/upbdefs-gen -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/third_party/upb -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/third_party/utf8_range -I/wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/third_party/xxhash -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++17  -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing   -isystem /usr/local/include -std=c++17  -DNDEBUG -std=gnu++17 -fPIC -pthread -Wno-float-conversion -Wno-implicit-float-conversion -Wno-implicit-int-float-conversion -Wno-unknown-warning-option -DNOMINMAX -MD -MT CMakeFiles/grpc.dir/src/core/ext/filters/deadline/deadline_filter.cc.o -MF CMakeFiles/grpc.dir/src/core/ext/filters/deadline/deadline_filter.cc.o.d -o CMakeFiles/grpc.dir/src/core/ext/filters/deadline/deadline_filter.cc.o -c /wrkdirs/usr/ports/devel/grpc/work/grpc-1.62.1/src/core/ext/filters/deadline/deadline_filter.cc"

https://pdr2.bofh.network/data/140-diizzy/2024-04-08_00h13m17s/logs/grpc-1.62.1,2.log