#67784 closed defect (fixed)
R-s2 @1.1.4: error: use of undeclared identifier 'MAP_ANONYMOUS'
Reported by: | ryandesign (Ryan Schmidt) | Owned by: | barracuda156 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | lion mountainlion mavericks yosemite | Cc: | |
Port: | R-s2 |
Description
R-s2 @1.1.4 failed to build on the 10.7–10.10 buildbot workers two months ago. Logs have expired so I've scheduled new builds. There is a backlog of builds so it may take a day for it to get to those builds.
Change History (8)
comment:1 follow-up: 2 Changed 5 months ago by barracuda156
comment:2 Changed 5 months ago by ryandesign (Ryan Schmidt)
Summary: | R-s2 @1.1.4: Build failure → R-s2 @1.1.4: error: use of undeclared identifier 'MAP_ANONYMOUS' |
---|
Replying to barracuda156:
Replying to ryandesign:
R-s2 @1.1.4 failed to build on the 10.7–10.10 buildbot workers two months ago. Logs have expired so I've scheduled new builds. There is a backlog of builds so it may take a day for it to get to those builds.
But it was building on 10.6 Intel?
Yes. The 10.7–10.10 builds ran and all failed due to:
absl/debugging/internal/examine_stack.cc:58:34: error: use of undeclared identifier 'MAP_ANONYMOUS' MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); ^ 1 error generated.
so that's a simple fix of:
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif
Or the legacysupport portgroup can be included which includes that fix.
I'm not sure why the build succeeded on 10.6.
comment:3 Changed 4 months ago by ryandesign (Ryan Schmidt)
comment:4 follow-up: 6 Changed 4 months ago by ryandesign (Ryan Schmidt)
I'm testing a fix now and will commit shortly.
comment:5 Changed 4 months ago by ryandesign (Ryan Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 Changed 4 months ago by barracuda156
comment:7 follow-up: 8 Changed 4 months ago by ryandesign (Ryan Schmidt)
It should look familiar to you! The patch is for R-s2's bundled copy of abseil, and you wrote a similar patch for abseil in https://github.com/macports/macports-ports/pull/15471.
comment:8 Changed 3 months ago by barracuda156
Replying to ryandesign:
It should look familiar to you! The patch is for R-s2's bundled copy of abseil, and you wrote a similar patch for abseil in https://github.com/macports/macports-ports/pull/15471.
Yes indeed.
Replying to ryandesign:
But it was building on 10.6 Intel? I think all those should be using the same Clang, after we blacklisted Xcode ones in R PG, so no idea, honestly, why it would fail.
For the record, s2 is a tricky thing: I failed to fix it on Rosetta, for example, though it builds now on PPC natively. There is a discussion with upstream: https://github.com/google/s2geometry/issues/315