Skip to content

fix build with gcc16 - #448

Merged
ahornung merged 1 commit into
OctoMap:develfrom
nim65s:gcc16
Aug 2, 2026
Merged

ahornung merged 1 commit into
OctoMap:develfrom
nim65s:gcc16

Conversation

@nim65s

@nim65s nim65s commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Hi,

This follow #434 and fix:

In file included from /build/source/octomap/include/octomap/OcTreeKey.h:40,
                 from /build/source/octomap/include/octomap/OcTreeBaseImpl.h:45,
                 from /build/source/octomap/include/octomap/OccupancyOcTreeBase.h:44,
                 from /build/source/octomap/include/octomap/OcTreeStamped.h:39,
                 from /build/source/octomap/src/OcTreeStamped.cpp:34:
/nix/store/mcd6qn183lsac6dy6xqm1ijhldixvfq2-gcc-16.1.0/include/c++/16.1.0/ciso646:49:6: error: #warning "<ciso646> is not a standard header since C++20, use <version> to detect implementation-specific macros" [-Werror=cpp]
   49 | #    warning "<ciso646> is not a standard header since C++20, use <version> to detect implementation-specific macros"
      |      ^~~~~~~

The inclusion of this header does not seem to be used, as octomap now build fine for me with gcc16.

fix:
```cpp
In file included from /build/source/octomap/include/octomap/OcTreeKey.h:40,
                 from /build/source/octomap/include/octomap/OcTreeBaseImpl.h:45,
                 from /build/source/octomap/include/octomap/OccupancyOcTreeBase.h:44,
                 from /build/source/octomap/include/octomap/OcTreeStamped.h:39,
                 from /build/source/octomap/src/OcTreeStamped.cpp:34:
/nix/store/mcd6qn183lsac6dy6xqm1ijhldixvfq2-gcc-16.1.0/include/c++/16.1.0/ciso646:49:6: error: #warning "<ciso646> is not a standard header since C++20, use <version> to detect implementation-specific macros" [-Werror=cpp]
   49 | #    warning "<ciso646> is not a standard header since C++20, use <version> to detect implementation-specific macros"
      |      ^~~~~~~
```

follows OctoMap#434
@ahornung
ahornung merged commit 21a8871 into OctoMap:devel Aug 2, 2026
6 checks passed
@oysstu

oysstu commented Sep 10, 2026

Copy link
Copy Markdown

@ahornung would it be possible to make a patch release with this and possible other bugfixes since v1.10.0?

@ahornung

Copy link
Copy Markdown
Member

Thanks for the ping @oysstu. I sure can do that. With all the major CMake related changes I'm planning a v2.0.0 release. Do you specifically need a patch release with fixes? Would you mind listing the most important ones to you (in addition to this one)?

@oysstu

oysstu commented Sep 13, 2026 •

Copy link
Copy Markdown

Mainly this one for me, since it fixes a build error. I just scrolled through the changes since last releases quickly and it looked like mostly smaller features and bugfixes.

@nim65s
nim65s deleted the gcc16 branch September 13, 2026 19:49
@ahornung

Copy link
Copy Markdown
Member

I cherry-picked the non-breaking fixes only on branch v1.10-fixes, does this look right to you? If so then I'll create a patch release from it.

@nim65s

nim65s commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

8a7a18a on v1.10-fixes lgtm, yes, thanks :)

@ahornung

Copy link
Copy Markdown
Member

Release done!

@oysstu

oysstu commented Oct 26, 2026 •

Copy link
Copy Markdown

Unfortunately this release was based off a branch without all the latest fixes

Fails to compile because of this ciso include, which was removed in d7e54ca
https://github.com/OctoMap/octomap/blob/v1.10.1/octomap/src/Pointcloud.cpp

@ahornung

Copy link
Copy Markdown
Member

@oysstu, that change was deliberately not part of the 1.10.1 patch release because it is a breaking API change.
There is a new v2.0.1 release available, which contains all of the recent fixes and changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants