Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851837 - dev-libs/cxxtools-3.0-r1 - timer.cpp: error: aggregate tm tim has incomplete type and cannot be defined
Summary: dev-libs/cxxtools-3.0-r1 - timer.cpp: error: aggregate tm tim has incomplete ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-06-14 07:06 UTC by Toralf Förster
Modified: 2022-06-14 12:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.47 KB, text/plain)
2022-06-14 07:06 UTC, Toralf Förster
Details
dev-libs:cxxtools-3.0-r1:20220613-203116.log (dev-libs:cxxtools-3.0-r1:20220613-203116.log,78.47 KB, text/plain)
2022-06-14 07:06 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,193.37 KB, text/plain)
2022-06-14 07:06 UTC, Toralf Förster
Details
environment (environment,23.21 KB, text/plain)
2022-06-14 07:06 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,15.60 KB, application/x-bzip)
2022-06-14 07:06 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,11.52 KB, application/x-bzip)
2022-06-14 07:06 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,14.04 KB, application/x-bzip)
2022-06-14 07:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-06-14 07:06:00 UTC
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../src -I../include -I../include -Wno-long-long -Wall -pedantic -pipe -march=native -fno-diagnostics-color -O2 -c time.cpp  -fPIC -DPIC -o .libs/time.o
/bin/sh ../libtool  --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I.  -I../src -I../include -I../include -Wno-long-long -Wall -pedantic  -pipe -march=native -fno-diagnostics-color -O2  -c -o timer.lo timer.cpp
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../src -I../include -I../include -Wno-long-long -Wall -pedantic -pipe -march=native -fno-diagnostics-color -O2 -c timer.cpp  -fPIC -DPIC -o .libs/timer.o
timer.cpp: In member function void cxxtools::Timer::start(const cxxtools::DateTime&, const cxxtools::Milliseconds&, bool)’:
timer.cpp:134:15: error: aggregate tm tim’ has incomplete type and cannot be defined
  134 |     struct tm tim;
      |               ^~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-j4-20220612-070004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.61.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit bc3575d9a6cf28044fc1d0cb3fb70147d68ae565
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jun 13 19:47:59 2022 +0000

    2022-06-13 19:47:59 UTC

emerge -qpvO dev-libs/cxxtools
[ebuild  N    ] dev-libs/cxxtools-3.0-r1
Comment 1 Toralf Förster gentoo-dev 2022-06-14 07:06:01 UTC
Created attachment 784754 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-14 07:06:02 UTC
Created attachment 784757 [details]
dev-libs:cxxtools-3.0-r1:20220613-203116.log
Comment 3 Toralf Förster gentoo-dev 2022-06-14 07:06:04 UTC
Created attachment 784760 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-06-14 07:06:05 UTC
Created attachment 784763 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-06-14 07:06:06 UTC
Created attachment 784766 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-14 07:06:07 UTC
Created attachment 784769 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-14 07:06:08 UTC
Created attachment 784772 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-06-14 12:11:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7966df0d4206f1f85a392e7325048ebe41be40e7

commit 7966df0d4206f1f85a392e7325048ebe41be40e7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-14 12:11:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-14 12:11:15 +0000

    dev-libs/cxxtools: fix build with GCC 12; fix build with lld
    
    Closes: https://bugs.gentoo.org/851837
    Closes: https://bugs.gentoo.org/829662
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/cxxtools/cxxtools-3.0-r2.ebuild           | 45 ++++++++++++++++++++++
 .../cxxtools/files/cxxtools-3.0-gcc12-time.patch   | 11 ++++++
 .../files/cxxtools-3.0-lld-linking-openssl.patch   | 11 ++++++
 3 files changed, 67 insertions(+)