Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860177 - [guru] media-sound/noson-app-5.2.2 fails to compile (lto): timeout.h:58:19: error: CLOCK_MONOTONIC was not declared in this scope
Summary: [guru] media-sound/noson-app-5.2.2 fails to compile (lto): timeout.h:58:19: e...
Status: RESOLVED OBSOLETE
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: danipo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-23 06:36 UTC by Agostino Sarubbo
Modified: 2024-09-25 13:53 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,99.50 KB, text/plain)
2022-07-23 06:36 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-23 06:36:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/noson-app-5.2.2 fails to compile (lto).
Discovered on: amd64 (internal ref: guru_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-23 06:36:13 UTC
Created attachment 793274 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-23 06:36:14 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: backend/lib/noson-build/CMakeFiles/noson.dir/src/sonossystem.cpp.o 
/var/tmp/portage/media-sound/noson-app-5.2.2/work/noson-app-5.2.2_build/backend/lib/noson-src/noson/src/private/os/threads/timeout.h:58:19: error: ‘CLOCK_MONOTONIC’ was not declared in this scope
Comment 3 Alexis 2022-12-28 09:17:44 UTC
Facing this issue, i was able to successfully merge and run Noson via:

# ebuild $(equery w noson-app) configure
# sed -i -e 's%<sys/time.h>%<time.h>%' /var/tmp/portage/media-sound/noson-app-5.2.2/work/noson-app-5.2.2_build/backend/lib/noson-src/noson/src/private/os/unix/os-types.h
# ebuild $(equery w noson-app) merge

i.e. replacing '<sys/time.h>' on line 6 of 'os-types.h' with just '<time.h>'. The file 'noson-app-5.2.2_build/backend/lib/noson-src/noson/src/private/os/unix/os-types.h' doesn't exist until after the 'configure' step, hence taking this approach instead of providing a patch for application during the 'unpack' step.
Comment 4 danipo 2022-12-29 02:56:39 UTC
Interesting. I don't have problems building it on my system. There's a new version that I've failed to push a new ebuild for, 5.3.2-1. I'll try and push it this weekend and see if that fixes this bug.
Comment 5 danipo 2023-01-29 17:14:35 UTC
I have pushed the most recent update, version 5.4.0. Can anyone confirm if the bug still exists?
Comment 6 Larry the Git Cow gentoo-dev 2024-09-25 13:53:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=009503f6f0c060031377edefca69d02dda6af99d

commit 009503f6f0c060031377edefca69d02dda6af99d
Author:     Takuya Wakazono <pastalian46@gmail.com>
AuthorDate: 2024-09-23 08:17:40 +0000
Commit:     Takuya Wakazono <pastalian46@gmail.com>
CommitDate: 2024-09-23 08:17:40 +0000

    media-sound/noson-app: drop 5.2.2, 5.4.0, 5.4.1, 5.6.0, 5.6.3
    
    Closes: https://bugs.gentoo.org/840484 (obsolete)
    Closes: https://bugs.gentoo.org/860177 (obsolete)
    Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>

 media-sound/noson-app/Manifest               |  5 -----
 media-sound/noson-app/noson-app-5.2.2.ebuild | 31 ----------------------------
 media-sound/noson-app/noson-app-5.4.0.ebuild | 31 ----------------------------
 media-sound/noson-app/noson-app-5.4.1.ebuild | 31 ----------------------------
 media-sound/noson-app/noson-app-5.6.0.ebuild | 31 ----------------------------
 media-sound/noson-app/noson-app-5.6.3.ebuild | 31 ----------------------------
 6 files changed, 160 deletions(-)