Your message dated Thu, 21 Oct 2021 18:48:41 +0000
with message-id <e1mdd7j-0003fq...@fasolo.debian.org>
and subject line Bug#996956: fixed in benchmark 1.6.0-2
has caused the Debian Bug report #996956,
regarding libbenchmark-dev: libbenchmark_main.a has no actual object code
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
996956: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996956
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libbenchmark-dev
Version: 1.6.0-1
Severity: serious
Tag: patch

Dear maintainer,

the latest version of libbenchmark-dev has a regression that breaks the
libbenchmark_main.a static library for users who do not use
link-time-optimzation. This is very similar to bug #968461:
https://bugs.debian.org/968461

Relevant excerpt from a build log:

 /usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/libbenchmark_main.a(benchmark_main.cc.o): plugin 
needed to handle lto object
 /usr/bin/ld: 
/usr/lib/x86_64-linux-gnu/libbenchmark_main.a(benchmark_main.cc.o): plugin 
needed to handle lto object
 /usr/bin/ld: 
/usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crt1.o: in 
function `_start':
 (.text+0x20): undefined reference to `main'

The static library has no actual object code in it, only the
intermediate code used for link-time optimization. You need to
replace the -flto flag with -ffat-lto-objects to ensure that both
the intermediate code AND the actual object code will be emitted:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6b2b81..8effea8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,7 +215,7 @@ else()
# Link time optimisation
   if (BENCHMARK_ENABLE_LTO)
-    add_cxx_compiler_flag(-flto)
+    add_cxx_compiler_flag(-ffat-lto-objects)
     add_cxx_compiler_flag(-Wno-lto-type-mismatch)
     if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
       find_program(GCC_AR gcc-ar)


Cheers
Timo

--
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: benchmark
Source-Version: 1.6.0-2
Done: Anton Gladky <gl...@debian.org>

We believe that the bug you reported is fixed in the latest version of
benchmark, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 996...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anton Gladky <gl...@debian.org> (supplier of updated benchmark package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 21 Oct 2021 20:41:47 +0200
Source: benchmark
Architecture: source
Version: 1.6.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Team 
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Anton Gladky <gl...@debian.org>
Closes: 996956
Changes:
 benchmark (1.6.0-2) unstable; urgency=medium
 .
   [ Anton Gladky ]
   * [8806bb9] Minor update of autopkgtests
 .
   [ Timo Röhling ]
   * [8c09dbc] Fix static library build. (Closes: #996956)
Checksums-Sha1:
 cd404ac3c52571491d2013428dfa0af3037c3783 2243 benchmark_1.6.0-2.dsc
 856f503f5311ac3908ef8f867c2c9b40054b289f 6236 benchmark_1.6.0-2.debian.tar.xz
 1eb3acce94fb10363713c2964352ef83fbc8c223 6832 
benchmark_1.6.0-2_source.buildinfo
Checksums-Sha256:
 66f5aede3e0fd4282a4c7463cb4100f1a509dcf605035e5af51f4efaf4dd6761 2243 
benchmark_1.6.0-2.dsc
 83301f863cf3b39f31d46246814d7ee69ac984ac4786395a3e4f1ee61e6f578d 6236 
benchmark_1.6.0-2.debian.tar.xz
 864c0adb1df578e0e2ec37d1cd9c1b5d20be7e08005d001cca04c6eb9aedf4cb 6832 
benchmark_1.6.0-2_source.buildinfo
Files:
 6f32ed26034f118dae379b41e362a4e1 2243 libs optional benchmark_1.6.0-2.dsc
 0d6a63539fc36ba19123215d15390f9d 6236 libs optional 
benchmark_1.6.0-2.debian.tar.xz
 ac5429fa08ad0bca97fe2e8bd7532ffa 6832 libs optional 
benchmark_1.6.0-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEu71F6oGKuG/2fnKF0+Fzg8+n/wYFAmFxtHwACgkQ0+Fzg8+n
/wYcMQ//cKRkdmStJzkeQwn/y7xiT+tOYdhxKFK8yGcfnDbKdmRu8PZfKDy8+i7j
HZigs1izzYcn+3RBQk5aN0ZQeVJw5mNSsZCXseGy2ouCvmN/BgVcQaY2VxzoIPwz
Hg4s+yTKshRCznLCloeeBWXaltTRFJboM2o94goqEYmR3zGlhktCQH5+4F4IGjd+
iUX7YS6Mn0v5qBo+fl13vrZTZY/Uh09tqzlp2B6PkVQMuayXcuZDoDcUOdL3z3Bg
K88zCyrRsogibv2vE/zUpITn1ml9WRi53habWw/i75VD6w6JlSZ4mMsEbUXwF6qc
s+8TJXHPz4InfVugEpUp5g8x2OH+75xnhsG4Objy4452DCLz7tBY+WdK7zij2Uz0
0AY+F8NmeJ2im60ZwUKNARfl8dqgFh+KSitmKDO/XbAE26L7zAzWHgp4RfeazVcp
HGWZNkzRC3M7FqWxe1luqA29DoKowLbdbiQG6QLS8Mb+0dblrz66bT4qZpt2yxbi
EGDlyMiVzvifg93N9fhoawADq4k4r6iEvKx0mS2IwBBX1SMH72rDf7TEMRGXPpFB
DQb8RFCx/ophN6LFHMW8Jpsv350NPiB38shbygLezHCAiBIa/njJOdvv30I+0AOz
UO1+mrfRdyUniQV/yaXQCNjaKMAfSv2ng6BknZRdxqP9qsgvrZM=
=hSHu
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to