Re: find-debuginfo failing with objcopy Permission denied error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 25, 2024 at 02:36:42PM +0100, Jaroslav Škarvada wrote:
> the tcl package build started to fail with the same error in rawhide [1]:
>  /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed
> 8.6.15-3.fc42 --unique-debug-suffix -8.6.15-3.fc42.x86_64
> --unique-debug-src-base tcl-8.6.15-3.fc42.x86_64 --run-dwz
> --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S
> debugsourcefiles.list /builddir/build/BUILD/tcl-8.6.15-build/tcl8.6.15
> find-debuginfo: starting
> Extracting debug info from 2 files
> objcopy: unable to copy file
> '/builddir/build/BUILD/tcl-8.6.15-build/BUILDROOT/usr/lib64/libtcl8.6.so';
> reason: Permission denied
> *** ERROR:: GDB exited with exit status 1 during index generation
> 
> Mode of the library is: 0555
> 
> It makes sense to me that the library is installed as read-only by the
> upstream build script, so I don't want to divert from the upstream and
> workaround it, especially if it worked previously. So what's the
> solution for it?

I also don't think it's a _good_ solution, but _a_ solution is to make
the library writable in %install.  It's what we did for libguestfs:

https://src.fedoraproject.org/rpms/libguestfs/c/ff5b9715aa981d712b281069c260208d21aa40e8?branch=rawhide

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW

-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux