Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 892730 - dev-util/roctracer-5.3.3 fails tests: x86_64-pc-linux-gnu-g++: error: unrecognized command-line option -print-resource-dir
Summary: dev-util/roctracer-5.3.3 fails tests: x86_64-pc-linux-gnu-g++: error: unrecog...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 817440
Blocks:
  Show dependency tree
 
Reported: 2023-01-31 14:27 UTC by Agostino Sarubbo
Modified: 2023-02-08 04:18 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,83.71 KB, text/plain)
2023-01-31 14:27 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 2023-01-31 14:27:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/roctracer-5.3.3 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-01-31 14:27:29 UTC
Created attachment 849558 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-01-31 14:27:30 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
RESULT_VARIABLE No such file or directory OUTPUT_VARIABLE: 
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-print-resource-dir’; did you mean ‘-print-search-dirs’?
Comment 3 Yiyang Wu 2023-01-31 14:41:28 UTC
Failing tests is due to missing AMD GPU, which duplicates https://bugs.gentoo.org/817440
How `-print-resource-dir` goes into compiler flag still needs investigation, maybe due to ROCm cmake scripts. Switching to clang may help. Also, it's not a fatal issue to build process.
Comment 4 Larry the Git Cow gentoo-dev 2023-02-08 04:18:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f749acaea36d8ef66c2c4834c598247bb15ae41

commit 4f749acaea36d8ef66c2c4834c598247bb15ae41
Author:     Yiyang Wu <xgreenlandforwyy@gmail.com>
AuthorDate: 2023-02-01 09:45:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-08 04:17:29 +0000

    dev-util/roctracer: strip -Werror and fix a configure issue
    
    hip-config.cmake run ${HIP_CXX_COMPILER} -print-resource-dir to
    determine some paths. By default,
    HIP_CXX_COMPILER=${CMAKE_CXX_COMPILER}=gcc, causing configuration
    issues, so set HIP_CXX_COMPILER=hipcc.
    
    Closes: https://bugs.gentoo.org/891945
    Bug: https://bugs.gentoo.org/892730
    Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/29376
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/roctracer/files/roctracer-5.3.3-Werror.patch | 15 +++++++++++++++
 dev-util/roctracer/roctracer-5.3.3.ebuild             |  4 +++-
 2 files changed, 18 insertions(+), 1 deletion(-)