You are not logged in.

#1 2008-08-09 19:05:39

mc
Member
Registered: 2008-08-08
Posts: 11

Problem with pkgbuild of blitz

Hi,
  I get the following error when I try to compile blitz from aur.

                                           ==> ERROR: blitz is not available for the '' architecture.
    Note that many packages may need a line added to their ./PKGBUILD
    such as arch=('').
Error: Makepkg was unable to build blitz package.
     
The arch variable seems to be set in the pkgbuild file. I dont know what seems to be the problem!
     
# Contributor: Gleidson <gleidson_el@yahoo.com.br>

pkgname=blitz
pkgver=0.9
pkgrel=2
pkgdesc="C++ Class library for scientific computing"
arch=('i686' 'x86_64')
url="http://www.oonumerics.org/blitz/"
license=('GPL''custom')
depends=('gcc')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/blitz/blitz-$pkgver.tar.gz)md5sums=('031df2816c73e2d3bd6d667bbac19eca')

build() {
  cd $startdir/src/blitz-$pkgver

  # Install license
  install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE

  ./configure CXX=g++ --prefix=/usr --enable-64bit
  make DESTDIR=$startdir/pkg install || return 1
}
~

Offline

#2 2008-08-09 19:29:33

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Problem with pkgbuild of blitz

Hm, strange.

Did you download the tarball from AUR or did you some cut and paste? I ask because you post the source and md5sum lines in one line.

Is there a blank between 'i686' and 'x86_64' in the PKGBUILD you are using?

BTW, makepkg of pacman 3.2 does not understand the option !libtool anymore. Remove that line.

Offline

#3 2008-08-09 19:48:34

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Problem with pkgbuild of blitz

This package is orphaned and does not compile.  Even the source-url is wrong.

if /bin/sh ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H   -I.. -I..    -MT globals.lo -MD -MP -MF ".deps/globals.Tpo" -c -o globals.lo `test -f '../src/globals.cpp' || echo './'`../src/globals.cpp; \
    then mv -f ".deps/globals.Tpo" ".deps/globals.Plo"; else rm -f ".deps/globals.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I.. -I.. -MT globals.lo -MD -MP -MF .deps/globals.Tpo -c ../src/globals.cpp -o globals.o
In file included from ../blitz/applics.h:400,
                 from ../blitz/vecexpr.h:32,
                 from ../blitz/vecpick.cc:16,
                 from ../blitz/vecpick.h:293,
                 from ../blitz/vector.h:449,
                 from ../blitz/tinyvec.h:430,
                 from ../blitz/indexexpr.h:30,
                 from ../src/globals.cpp:11:
../blitz/mathfunc.h: In static member function 'static long int blitz::_bz_abs<long int>::apply(long int)':
../blitz/mathfunc.h:45: error: 'labs' is not a member of 'std'
In file included from ../blitz/array/funcs.h:29,
                 from ../blitz/array/newet.h:29,
                 from ../blitz/array/et.h:27,
                 from ../blitz/array-impl.h:2515,
                 from ../blitz/array.h:32,
                 from ../src/globals.cpp:13:
../blitz/funcs.h: In static member function 'static int blitz::Fn_abs<int>::apply(int)':
../blitz/funcs.h:509: error: call of overloaded 'abs(int&)' is ambiguous
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cmath:99: note: candidates are: double std::abs(double)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cmath:103: note:                 float std::abs(float)
/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/../../../../include/c++/4.3.1/cmath:107: note:                 long double std::abs(long double)
../blitz/funcs.h: In static member function 'static long int blitz::Fn_abs<long int>::apply(long int)':
../blitz/funcs.h:530: error: 'labs' is not a member of 'std'

Last upstream update was 2005. I think this PKGBUILD should be removed.

Last edited by Stefan Husmann (2008-08-09 19:50:04)

Offline

#4 2008-08-09 21:28:44

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Problem with pkgbuild of blitz

I updated the package, it compiles fine with a little patch for gcc4.3

BTW, makepkg of pacman 3.2 does not understand the option !libtool anymore. Remove that line.

Are you sure? The man page and the results of makepkg say something different.

Offline

#5 2008-08-09 21:40:30

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Problem with pkgbuild of blitz

Thank you for updating.

Libtool: I think you are right. I must have mixed up something. Sorry.

Offline

Board footer

Powered by FluxBB