Mailinglist Archive: opensuse-buildservice (354 mails)

< Previous Next >
Re: [opensuse-buildservice] x86_64 build issues
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Tue, 13 Feb 2007 09:58:50 +0100
  • Message-id: <20070213085850.GC11908@xxxxxxx>
On Tue, Feb 13, 2007 at 08:36:04AM +0000, Andrew Wafaa wrote:
> I'm having difficulty building on the x86_64 systems, for some reason it doesn't want to accept the following statement:
>
> %ifarch x86_64
> %files -n lib%{name}
> %defattr(-,root,root,0755)
> %{prefix}/lib64/
> %endif
>
> I get the following error:
>
> /var/tmp/build-root-bongo/usr/lib/libbongostreamio.so.0: file format elf64-x86-64
> /var/tmp/build-root-bongo/usr/lib/libbongostreamio.so.0: should be in */lib64
> error: Bad exit status from /var/tmp/rpm-tmp.46374 (%install)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.46374 (%install)
> mount: can't find / in /etc/fstab or /etc/mtab
> md: stopping all md devices.
> System halted.
>
> I know it may sound like a dumb question, but.... Is it telling me to remove %{prefix}/lib64 and replace it with */lib64? I don't have a 64bit machine so I'm not entirely sure on the differences between architecture filesystem layouts.

Use:

%files -n lib%{name}
%defattr(-,root,root,0755)
%{_libdir}/libbongo*

And use %configure or ./configure .... --libdir=%_libdir

Ciao, Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References