Re: (ppc64le) ELF load command alignment not page-aligned

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

 





El vie., 31 ene. 2020 18:21, Dan Horák <dan@xxxxxxxx> escribió:
On Fri, 31 Jan 2020 18:14:55 +0100
Dan Horák <dan@xxxxxxxx> wrote:

> On Fri, 31 Jan 2020 18:08:11 +0100
> Alejandro Álvarez Ayllón <aalvarez@xxxxxxxxxxxxxxxxx> wrote:
>
> > El vie., 31 ene. 2020 17:59, Dan Horák <dan@xxxxxxxx> escribió:
> >
> > > On Fri, 31 Jan 2020 16:43:21 +0100
> > > Dan Horák <dan@xxxxxxxx> wrote:
> > >
> > > > On Fri, 31 Jan 2020 16:32:15 +0100
> > > > Alejandro Álvarez Ayllón <aalvarez@xxxxxxxxxxxxxxxxx> wrote:
> > > >
> > > > > Hello all,
> > > > >
> > > > > I am on the process of creating a new package, and making sure
> > > > > it builds smoothly on Fedora.
> > > > > However, even if it compiles successfully in ppc64le, the
> > > > > %check command fails with this error:
> > > > >
> > > > > /builddir/build/BUILDROOT/sourcextractor+
> > > > > +-0.8-1.fc31.ppc64le//usr/bin/sourcextractor++: error while
> > > > > loading shared libraries: libSEMain.so.0.8: ELF load command
> > > > > alignment not page-aligned
> > > >
> > > > there could be an expectation of 4KB pages somewhere in the
> > > > source code, ppc64le runs with 64KB pages
> > >
> > > I have reproduced this in F-30, but the question is whether this
> > > is a new thing with newer sources or did it always happen?
> > >
> >
> >
> > It is the first time I compile this software in ppc64, and probably
> > the first time it has been. The problem is that I do not have access
> > to a ppc machine to reproduce the issue. I'll try next week with
> > qemu perhaps.
>
> in SourceXtractorPlusPlus-0.8/build/CMakeCache.txt
>
> //Flags used by the linker during the creation of modules.
> CMAKE_MODULE_LINKER_FLAGS:STRING=-Wl,-z,relro -Wl,--as-needed
> -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
> -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--no-undefined  -Wl,-z,max-
> page-size=0x1000
>
> fiddling with page-size isn't good idea

and the problem is
in /usr/lib64/cmake/ElementsProject/ElementsBuildFlags.cmake
which is provided by elements-devel

Ouch, I didn't realize it insists on setting flags it should not. I'll patch and report to upstream.

Thanks a lot for the help!

Regards,
Alejandro



                Dan
_______________________________________________
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
_______________________________________________
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

[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