Checked out ceph-15.2.3 source on a up-to-date focal VM.

When running dpkg-buildpackage, CMakeCache.txt gets generated as
expected.  However, the generated CMAKE_BUILD_TYPE is "None".

A bit odd, but going a step further, one can grep for CMAKE_C_FLAGS in that 
same file and see something to the effect of:
CMAKE_C_FLAGS_DEBUG:STRING=<sensible compiler settings for debug builds>
CMAKE_C_FLAGS_NONE:STRING=
...
...
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=<sensible compiler settings for release 
builds>

It seems, though, that since "None" is used, all of those are actually ignored 
and
CMAKE_C_FLAGS:STRING=<compiler flags from dpkg-buildpackage>
is used

That particular set of flags seems to be missing -DNDEBUG.  It's worth
noting that -DNDEBUG is defined within
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING and including it may result in a
more optimized build.

This is not quite the Gentoo issue as Trent alluded.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1894453

Title:
  Building Ceph packages with RelWithDebInfo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1894453/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to