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

Re: rpmbuild for PPC sticks libs in /usr/lib64



On Thu, 6 Apr 2006, Karanbir Singh wrote:

Matthew Saltzman wrote:
(I've put gnumeric aside for a bit.)

I tried to build Axel Thimm's f2c RPM for PPC using:

    rpmbuild -bb --target ppc f2c-20031026-2.el4.at.spec

(after fixing a minor spec file issue). When it finishes building on my PPC64 system, it installs the libraries it built into /usr/lib64 instead of /usr/lib. Of course, as these are 32-bit libraries, it wreaks havoc with the linker when it looks for libf2c.a.

Target ppc is definitely 32 bits, so what is causing _libdir to be set to /usr/lib64? Is it a bug? (Nothing that appears relevant is set in the spec file or in my .rpmmacros file.)


what do you have in /etc/rpm/platform ? might be worth looking there to see what rpm's picking up ( hint: rpm --showrc )

Hmm.  /etc/rpm/platform has ppc64pseries-redhat-linux.

rpm --showrc shows:

    ARCHITECTURE AND OS:
    build arch            : ppc64
    compatible build archs: ppc64pseries ppc64 noarch
    build os              : Linux
    compatible build os's : linux
    install arch          : ppc64pseries
    install os            : Linux
    compatible archs      : ppc64pseries ppc64 ppc rs6000 noarch
    compatible os's       : linux

and later (sure enough):

    -14: _lib       lib64
    -14: _libdir    %{_exec_prefix}/%{_lib}

So the next question is, how to fix so that _lib depends on the target or what to use instead that will depend on the target?

--
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs


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