[Bug 1191473] New: rpath related failures on x86_64
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473 Bug ID: 1191473 Summary: rpath related failures on x86_64 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: christophe@krop.fr QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Some packages started failing after september, 19 with rpath errors: https://build.opensuse.org/packages/AppCSXCAD/job_history/openSUSE:Factory/s... https://build.opensuse.org/packages/libqt5-creator/job_history/KDE:Qt5/openS... In both cases, only x86_64 fails, i586 is fine. for libqt5-creator, it's even stranger, the package only fails in the devel project. For AppCSXCAD : [ 67s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.x86_64/usr/bin/AppCSXCAD [ 67s] CMake Error at cmake_install.cmake:55 (file): [ 67s] file RPATH_CHANGE could not write new RPATH: [ 67s] [ 67s] /usr/lib64 [ 67s] [ 67s] to the file: [ 67s] [ 67s] /home/abuild/rpmbuild/BUILDROOT/AppCSXCAD-0.2.2-2.9.x86_64/usr/bin/AppCSXCAD [ 67s] [ 67s] No valid ELF RPATH or RUNPATH entry exists in the file; for qtcreator: [ 4291s] -- Installing: /home/abuild/rpmbuild/BUILDROOT/libqt5-creator-5.0.1-1.8.x86_64/usr/libexec/qtcreator/qtpromaker [ 4291s] CMake Error at src/tools/qtpromaker/cmake_install.cmake:55 (file): [ 4291s] file RPATH_CHANGE could not write new RPATH: [ 4291s] [ 4291s] $ORIGIN/../../lib64/qtcreator:$ORIGIN/../../lib64/Qt/lib:$ORIGIN/../../lib64/qtcreator/plugins [ 4291s] [ 4291s] to the file: [ 4291s] [ 4291s] /home/abuild/rpmbuild/BUILDROOT/libqt5-creator-5.0.1-1.8.x86_64/usr/libexec/qtcreator/qtpromaker [ 4291s] [ 4291s] The current RUNPATH is: [ 4291s] [ 4291s] $ORIGIN/../../lib64/qtcreator: [ 4291s] [ 4291s] which does not contain: [ 4291s] [ 4291s] $ORIGIN/../../lib64/qtcreator::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [ 4291s] [ 4291s] as was expected. --- Trying to rollback the cmake and binutils packages to older revisions didn't improve the situation. But, unsetting SUSE_IGNORED_RPATHS which is used in https://build.opensuse.org/package/view_file/devel:gcc/binutils/binutils-ski... fixes both builds (visible here: https://build.opensuse.org/package/show/home:cgiboudeaux:bisect/AppCSXCAD and here: https://build.opensuse.org/package/show/home:cgiboudeaux:branches:home:cgibo...) -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
Christophe Giboudeaux
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
Martin Li��ka
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c2
--- Comment #2 from Martin Li��ka
not sure which rpath cmake uses to check whether adding a rpath works, but if it is /tmp or the like that will definitely fail.
The ignored locations are listed here: https://github.com/openSUSE/post-build-checks/blob/master/suse-ignored-rpath... so using /tmp/ or a /home as a RPATH would work. But as seen here: [ 67s] CMake Error at cmake_install.cmake:55 (file): [ 67s] file RPATH_CHANGE could not write new RPATH: [ 67s] [ 67s] /usr/lib64 ... it's using RPATH that is listed in (suse-ignored-rpaths.conf). So we think the cmake checking code should be adjusted. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
Max Lin
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c3
Michael Matz
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c4
--- Comment #4 from Christophe Giboudeaux
Yeah, not a problem of binutils. We consciously disallow setting certain RPATHs, and we always did so. So this is a problem in cmake or those packages using cmake, which seemingly only now gets exposed by the typo fix in cmake. Assigning to cmake maintainer to check this.
The typo fix in the CMake package only concerned Leap (which is not affected by this issue) -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c5
--- Comment #5 from Christophe Giboudeaux
(In reply to Michael Matz from comment #3)
Yeah, not a problem of binutils. We consciously disallow setting certain RPATHs, and we always did so. So this is a problem in cmake or those packages using cmake, which seemingly only now gets exposed by the typo fix in cmake. Assigning to cmake maintainer to check this.
The typo fix in the CMake package only concerned Leap (which is not affected by this issue)
Besides, I also tried using an older CMake revision with the same result. (to factory revision 203, so just after sr#917065 and before 917935, 920705 -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c6
Stefan Br�ns
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c7
Stefan Br�ns
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c8
Martin Li��ka
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c9
--- Comment #9 from Martin Li��ka
Why does the linker accept "-Wl,-rpath,::::::::::" on i586 and aarch64, but ignores it on x86_64?
Hmm, but it really skips it in our case: $ readelf -d AppCSXCAD | grep RUN (empty output) -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c10
Martin Li��ka
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c11
--- Comment #11 from Martin Li��ka
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c12
Martin Li��ka
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c13
Martin Li��ka
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c14
--- Comment #14 from OBSbugzilla Bot
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c15
Jan Engelhardt
the final linker command contains "-Wl,-rpath,::::::::::" for all architectures on TW. CMake adds this option to have a sufficiently large RUNPATH string entry (containing only padding from a semantic view point) which can be overwritten during install.
If only cmake knew how to run chrpath, then such hack wouldn't be needed. Speaking of which, ld maybe should also just collapse empty paths. -- You are receiving this mail because: You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473
http://bugzilla.opensuse.org/show_bug.cgi?id=1191473#c16
--- Comment #16 from OBSbugzilla Bot
participants (1)
-
bugzilla_noreply@suse.com