Bug 2105259 - openbabel-3.1.1-8.fc37 FTBFS: include/openbabel/obutil.h:65:14: error: 'clock' was not declared in this scope
Summary: openbabel-3.1.1-8.fc37 FTBFS: include/openbabel/obutil.h:65:14: error: 'clock...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openbabel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Antonio T. sagitter
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-07-08 11:24 UTC by Petr Pisar
Modified: 2022-07-08 21:18 UTC (History)
5 users (show)

Fixed In Version: openbabel-3.1.1-9.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-08 21:18:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2022-07-08 11:24:30 UTC
openbabel-3.1.1-8.fc37 fails to build in Fedora 37:

[ 29%] Building CXX object src/formats/CMakeFiles/asciiformat.dir/__/depict/asciipainter.cpp.o
cd /builddir/build/BUILD/openbabel-openbabel-3-1-1/x86_64-redhat-linux-gnu/src/formats && /usr/bin/g++ -DBUILD_LINK_AS_DLL -DHAVE_EIGEN -DHAVE_EIGEN3 -DHAVE_LIBZ -DHAVE_RADPIJSON -DHAVE_SHARED_POINTER -DHAVE_WXWIDGETS -DUSING_DYNAMIC_LIBS -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -Dasciiformat_EXPORTS -I/builddir/build/BUILD/openbabel-openbabel-3-1-1/x86_64-redhat-linux-gnu/include -I/builddir/build/BUILD/openbabel-openbabel-3-1-1/data -I/builddir/build/BUILD/openbabel-openbabel-3-1-1/include -I/usr/include/eigen3 -I/usr/include/cairo -I/usr/include/inchi -I/usr/include/libxml2 -isystem /usr/lib64/wx/include/gtk3-unicode-3.0 -isystem /usr/include/wx-3.0 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -DNDEBUG -O3 -DNDEBUG -fPIC -pthread -std=gnu++11 -MD -MT src/formats/CMakeFiles/asciiformat.dir/__/depict/asciipainter.cpp.o -MF CMakeFiles/asciiformat.dir/__/depict/asciipainter.cpp.o.d -o CMakeFiles/asciiformat.dir/__/depict/asciipainter.cpp.o -c /builddir/build/BUILD/openbabel-openbabel-3-1-1/src/depict/asciipainter.cpp
make[2]: Leaving directory '/builddir/build/BUILD/openbabel-openbabel-3-1-1/x86_64-redhat-linux-gnu'
In file included from /builddir/build/BUILD/openbabel-openbabel-3-1-1/src/depict/asciipainter.cpp:18:
/builddir/build/BUILD/openbabel-openbabel-3-1-1/include/openbabel/obutil.h: In member function 'void OpenBabel::OBStopwatch::Start()':
/builddir/build/BUILD/openbabel-openbabel-3-1-1/include/openbabel/obutil.h:65:14: error: 'clock' was not declared in this scope; did you mean 'clock_t'?
   65 |       start= clock();
      |              ^~~~~
      |              clock_t

A difference between passing and failing buildroots is at <https://koschei.fedoraproject.org/build/13154417>.

Comment 1 Fedora Update System 2022-07-08 21:16:07 UTC
FEDORA-2022-1343d00373 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-1343d00373

Comment 2 Fedora Update System 2022-07-08 21:18:42 UTC
FEDORA-2022-1343d00373 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.