From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-science+bounces-1859-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 7AB8E1381F3
	for <garchives@archives.gentoo.org>; Sat, 19 Oct 2013 01:15:23 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 37D5FE0BBE;
	Sat, 19 Oct 2013 01:15:17 +0000 (UTC)
Received: from mx1.d.umn.edu (mx1.d.umn.edu [131.212.109.15])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 95B57E0BBD
	for <gentoo-science@lists.gentoo.org>; Sat, 19 Oct 2013 01:15:16 +0000 (UTC)
Received: from mxr0.d.umn.edu (mxr0.d.umn.edu [131.212.109.34])
	by mx1.d.umn.edu (8.13.8/8.13.8) with ESMTP id r9J1FFcQ028147
	for <gentoo-science@lists.gentoo.org>; Fri, 18 Oct 2013 20:15:15 -0500 (CDT)
Received: from mxv4.d.umn.edu (mxv4.d.umn.edu [131.212.109.48])
	by mxr0.d.umn.edu (8.13.8/8.13.8) with ESMTP id r9J1FFbX006068
	for <gentoo-science@lists.gentoo.org>; Fri, 18 Oct 2013 20:15:15 -0500 (CDT)
Received: from mx4-g.d.umn.edu (mx4-g.d.umn.edu [131.212.109.174])
	by mxv4.d.umn.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9J1FFbw014441
	for <gentoo-science@lists.gentoo.org>; Fri, 18 Oct 2013 20:15:15 -0500
Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169])
	by mx4-g.d.umn.edu (8.13.8/8.13.8) with ESMTP id r9J1FExI018992
	for <gentoo-science@lists.gentoo.org>; Fri, 18 Oct 2013 20:15:14 -0500 (CDT)
Received: by mail-ie0-f169.google.com with SMTP id ar20so7863789iec.14
        for <gentoo-science@lists.gentoo.org>; Fri, 18 Oct 2013 18:15:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to
         :references:mime-version:content-type;
        bh=gBiLMbPAEtewp14PZh/TesnVGBROSXB3B/ZVuHPh1T0=;
        b=Hch2ZzeOBRWcw2kmbW0wHJww8INI6Py6x9JWd20Syy+tRxJbOFogrB7zI6SFYlrVRO
         okdVxjEErx8jIRrdsQJMTZyK4yxdcyaDrbhQopJzgT6fZr0aEWfVU79lC3x0zAURjjA0
         5WVJhcebMmk4i9/Ca7So6ONKvx5AXM64HqYeGhVx98aAjQOtb6OSRTgjWQr80CjWMkrH
         eWXszdepjpjqm7f0Z3R/uG/DPx1g80HI51vMWkQwclC8xa4sIoeMzmeDxqGbU5yhmlFh
         vihZ31eSzHDxPIaUKlxaeNctvdJZl4LqT3m/4bTG0WJxZcS21yqvoHZ8tYFTvRhR+h76
         1whA==
X-Gm-Message-State: ALoCoQmX/DtDh+CJoifoNhDogCeXAeqND5hwh/GbN2tYDR+NfVXR8D8DQULXQzohvn2JZENfhV4acHKPj6AeOe9tCxINIAFamOUNm4xJPuF0eT1wRG4D64vj7k+Pwuo9a0jqErCkC384OxWXo1fJ0B0l1xmRLbX+K7v9O7UPrdX9xrVl7oCleDJhCutjjsNhYadpI1LtYQtC
X-Received: by 10.42.190.142 with SMTP id di14mr3601299icb.45.1382145314550;
        Fri, 18 Oct 2013 18:15:14 -0700 (PDT)
X-Received: by 10.42.190.142 with SMTP id di14mr3601292icb.45.1382145314404;
        Fri, 18 Oct 2013 18:15:14 -0700 (PDT)
Received: from ledaig.d.umn.edu (ledaig.d.umn.edu. [131.212.64.12])
        by mx.google.com with ESMTPSA id ka5sm15688673igb.2.2013.10.18.18.15.13
        for <gentoo-science@lists.gentoo.org>
        (version=TLSv1.2 cipher=RC4-SHA bits=128/128);
        Fri, 18 Oct 2013 18:15:14 -0700 (PDT)
Date: Fri, 18 Oct 2013 20:15:10 -0500
From: Steven Trogdon <strogdon@d.umn.edu>
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] Compiling the development version of GNU
 Octave
Message-ID: <20131018201510.0ee6c20f@ledaig.d.umn.edu>
In-Reply-To: <20131018232125.GA21649@jrm>
References: <20131018232125.GA21649@jrm>
X-Mailer: Claws Mail 3.9.2-dirty (GTK+ 2.24.17; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-science@lists.gentoo.org>
List-Help: <mailto:gentoo-science+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-science+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-science+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-science.gentoo.org>
X-BeenThere: gentoo-science@lists.gentoo.org
Reply-to: gentoo-science@lists.gentoo.org
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=PGP-SHA1;
 boundary="Sig_/2J2x2VYUw3lSt4xaNQ0oSw_"; protocol="application/pgp-signature"
X-Virus-Scanned: clamav-milter 0.97.5 at mxv4
X-Virus-Status: Clean
X-Archives-Salt: 5af4461b-8273-4374-babf-06f6015307fb
X-Archives-Hash: 573de954a7bdac413bd12d85e18b7e63

--Sig_/2J2x2VYUw3lSt4xaNQ0oSw_
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Fri, 18 Oct 2013 20:21:25 -0300
Jos=E9 Romildo Malaquias <j.romildo@gmail.com> wrote:

> Hello.
>=20
> I want to try the development version of GNU Octave[1] on my ~amd64
> gentoo linux system.
>=20
> After cloning the repository[2], reading the instructions at [3],
> bootstrapping, changing to directory .build and running ./configure, I
> am getting the error messages:
>=20
> [...]
> checking for sgemm_ in -lblas... (cached) no
> ../configure: line 32516: test: =3D: unary operator expected
> ../configure: line 34026: test: =3D: unary operator expected
> ../configure: line 35581: test: =3D: unary operator expected
> configure: error: BLAS and LAPACK libraries are required
>=20
>=20
> Any clues?
>=20
> [1] http://www.gnu.org/software/octave/get-involved.html
> [2] http://www.octave.org/hg/octave
> [3] http://www.octave.org/hg/octave/file/tip/etc/HACKING
>=20
> Romildo
>=20

I appears you have to configure octave with the output of pkg-config --libs
{blas/lapack}. Here I have

$ pkg-config --libs blas
-lrefblas

$ pkg-config --libs lapack
-lreflapack -lrefblas

So the following configure works here

../configure --with-blas=3Drefblas --with-lapack=3Dreflapack

Or you may get something like this (all on one line) to work

../configure --with-blas=3D`pkg-config --libs blas | sed 's:-l::g' | sed
's:[[:space:]].*$::g'` --with-lapack=3D`pkg-config --libs lapack | sed 's:-=
l::g'
| sed 's:[[:space:]].*$::g'`

There may be other things that are missing but I'm able to generate the
makefiles with the above.

--Sig_/2J2x2VYUw3lSt4xaNQ0oSw_
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iEYEARECAAYFAlJh3R4ACgkQSh5h5U6haiFkigCgkBNChp1KVNOdPnL33jguhKAS
wvcAn18fD/ndLSLNbKbKd+K9c2o4s7NM
=8/zV
-----END PGP SIGNATURE-----

--Sig_/2J2x2VYUw3lSt4xaNQ0oSw_--