All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Patrik Dahlström (student)" <patda293@student.liu.se>
To: openembedded-devel@lists.openembedded.org
Subject: python-numpy prone to use host libraries
Date: Sun, 10 Apr 2011 21:45:44 +0200	[thread overview]
Message-ID: <201104102145.44766.patda293@student.liu.se> (raw)

I have been resolving issues regarding python-numpy this whole day and I would 
like to share my findings. python-numpy is a package required by opencv_2.2, 
which is a dependency of gst-plugins-bad making it essential to quite a lot of 
images.

First of all, python-numpy requires a fortran compiler and gcc-4.5 specifically 
disables the fortran language per default. From gcc-4.5.inc

# Language Overrides
FORTRAN = ""

I am unsure what the best approach is, but I resolved this by changing to
FORTRAN = ",fortran"

Looking at the compile log of python-numpy there were several instances of the 
following:

blas_info:
  libraries blas not found in 
/home/bitbake/build/tmp_beagleboard/sysroots/x86_64-linux/usr/lib
  libraries blas not found in /usr/local/lib64
  libraries blas not found in /usr/local/lib
  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib64']
    language = f77

  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib64']
    define_macros = [('NO_ATLAS_INFO', 1)]
    language = f77

It clearly tries to link against my host libraries and fails. My resort was 
simply to remove my host libraries (not needed at the moment). However, there 
are other ways to counter this problem.
Looking at the python-numpy sources, there is a file called site.cfg.example. 
In it, there is descriptions on how to supply python-numpy with configuration 
information about non-Python dependencies. It shouldn't be any problem 
generating site.cfg files for relevant parts of the python-numpy source.
I am however uncertain on how to proceed with this and could use some 
assistance.

-- 
MvH / with best regards
Patrik Dahlström
Ordförande/president - http://www.studentfiket.com/
Penga-Mas (Kassör)/cashier - Dalarnas Nation

"Alla djur, utom människan, vet att livets huvudsakliga mening är att njuta av 
det! --Samuel Butler

"Every animal, except man, knows that the fundamental meaning of life is to 
enjoy it" --Samuel Butler

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments



             reply	other threads:[~2011-04-10 19:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10 19:45 Patrik Dahlström (student) [this message]
2011-06-27 20:42 ` python-numpy prone to use host libraries Paul Menzel
2011-06-28  6:52   ` Koen Kooi
2011-06-28 15:03     ` Bob Cvengros
2011-06-28 15:09       ` Koen Kooi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201104102145.44766.patda293@student.liu.se \
    --to=patda293@student.liu.se \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.