Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Path "/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT" is outside of RPM_BUILD_ROOT="/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT" #13

Open
not-a-dev-stein opened this issue Jul 15, 2024 · 2 comments
Labels
bug Something isn't working f41

Comments

@not-a-dev-stein
Copy link

Hi! I used to use this tool for my Silverblue installs, and recently needed to use it again to build the akmods-keys package and got this error instead while building it (some of the logs are in portuguese due to my locale, but I believe it can be understood):

Construindo plataformas de destino: noarch
Construindo para o destino noarch
configurando SOURCE_DATE_EPOCH=1656374400
Executando (%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.lOtGxj
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ test -d /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/rm -rf /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ /usr/bin/mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executando (%prep): /bin/sh -e /var/tmp/rpm-tmp.7BbcLx
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ rm -rf akmods-keys-0.0.2
+ /usr/bin/mkdir -p akmods-keys-0.0.2
+ cd akmods-keys-0.0.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
Executando (%build): /bin/sh -e /var/tmp/rpm-tmp.Q20Fpk
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed   -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1  '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd akmods-keys-0.0.2
+ RPM_EC=0
++ jobs -p
+ exit 0
Executando (%install): /bin/sh -e /var/tmp/rpm-tmp.cqdznm
+ umask 022
+ cd /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ '[' /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT '!=' / ']'
+ rm -rf /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
++ dirname /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
+ mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build
+ mkdir /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed   -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1  '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd akmods-keys-0.0.2
+ mkdir -p /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/certs /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/private /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/rpm/
+ install -pm 0640 /root/rpmbuild/SOURCES/public_key.der /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/certs/
+ install -pm 0640 /root/rpmbuild/SOURCES/private_key.priv /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/pki/akmods-keys/private/
+ install -pm 0640 /root/rpmbuild/SOURCES/macros.kmodtool /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT/etc/rpm/
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/bin/add-determinism --brp -j8 /root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT
Error: Path "/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT" is outside of RPM_BUILD_ROOT="/root/rpmbuild/BUILD/akmods-keys-0.0.2-build/BUILDROOT"
erro: Status de saída de /var/tmp/rpm-tmp.cqdznm inválido (%install)

RPM build errors:
    Status de saída de /var/tmp/rpm-tmp.cqdznm inválido (%install)

Since I'm not familiar with RPM package building, I decided to open this issue to better understand if something might have broke or if this is an issue on my end (specially since I've been testing with Rawhide).

My current setup:

● fedora:fedora/rawhide/x86_64/silverblue
                  Version: Rawhide.20240714.n.0 (2024-07-14T06:10:01Z)
               BaseCommit: 8ab20fc788d5f70132e941edb8246093a563cfa3ae8082565cb5ce89268a1bae
          LayeredPackages: xorg-x11-drv-nvidia-cuda
@CheariX
Copy link
Owner

CheariX commented Jul 15, 2024

Thank you for the report. I haven't run the build process for a while.

I've checked the 41 ChangeSet. There are two rpm related things. Maybe it has something to do with your issue?
Would be good to know if it also fails on 40.

@not-a-dev-stein
Copy link
Author

Yeah, testing it on F40, things work fine and I was able to carry the package forward to Rawhide, things are working now. It would be nice if you eventually could look at it to ensure it keeps working in the future, but no need to make it top priority

@CheariX CheariX added bug Something isn't working f41 labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working f41
Projects
None yet
Development

No branches or pull requests

2 participants