* python-numpy prone to use host libraries
@ 2011-04-10 19:45 Patrik Dahlström (student)
2011-06-27 20:42 ` Paul Menzel
0 siblings, 1 reply; 5+ messages in thread
From: Patrik Dahlström (student) @ 2011-04-10 19:45 UTC (permalink / raw)
To: openembedded-devel
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
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: python-numpy prone to use host libraries
2011-04-10 19:45 python-numpy prone to use host libraries Patrik Dahlström (student)
@ 2011-06-27 20:42 ` Paul Menzel
2011-06-28 6:52 ` Koen Kooi
0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2011-06-27 20:42 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
Dear Patrik,
Am Sonntag, den 10.04.2011, 21:45 +0200 schrieb Patrik Dahlström (student):
[…]
> I am however uncertain on how to proceed with this and could use some
> assistance.
did you find a “generic” solution for this problem?
Thanks,
Paul
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: python-numpy prone to use host libraries
2011-06-27 20:42 ` Paul Menzel
@ 2011-06-28 6:52 ` Koen Kooi
2011-06-28 15:03 ` Bob Cvengros
0 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2011-06-28 6:52 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 27-06-11 22:42, Paul Menzel wrote:
> Dear Patrik,
>
>
> Am Sonntag, den 10.04.2011, 21:45 +0200 schrieb Patrik Dahlström (student):
>
> […]
>
>> I am however uncertain on how to proceed with this and could use some
>> assistance.
>
> did you find a “generic” solution for this problem?
It requires redoing the numpy buildsystem, it is broken by design. I
tried to teach it about crosscompiling and sysroots last year, but gave
up after a few days :(
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFOCXo2MkyGM64RGpERAggYAJ0VMl1Ttg0QGqNCrmBhdlhnp9yPzgCgldQf
d5EbEv+2sn1ssE10DGkigsM=
=Sx4L
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: python-numpy prone to use host libraries
2011-06-28 6:52 ` Koen Kooi
@ 2011-06-28 15:03 ` Bob Cvengros
2011-06-28 15:09 ` Koen Kooi
0 siblings, 1 reply; 5+ messages in thread
From: Bob Cvengros @ 2011-06-28 15:03 UTC (permalink / raw)
To: openembedded-devel
Does that mean that numpy is a completely broken package, or is that a way
to hack it to make it work? If it is broken and will stay that way, why
don't we remove it from the recipe list? If that is the case then it's just
misleading.
Thanks,
Bob
On Tue, Jun 28, 2011 at 1:52 AM, Koen Kooi <koen@dominion.thruhere.net>wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 27-06-11 22:42, Paul Menzel wrote:
> > Dear Patrik,
> >
> >
> > Am Sonntag, den 10.04.2011, 21:45 +0200 schrieb Patrik Dahlström
> (student):
> >
> > […]
> >
> >> I am however uncertain on how to proceed with this and could use some
> >> assistance.
> >
> > did you find a “generic” solution for this problem?
>
> It requires redoing the numpy buildsystem, it is broken by design. I
> tried to teach it about crosscompiling and sysroots last year, but gave
> up after a few days :(
>
> regards,
>
> Koen
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
>
> iD8DBQFOCXo2MkyGM64RGpERAggYAJ0VMl1Ttg0QGqNCrmBhdlhnp9yPzgCgldQf
> d5EbEv+2sn1ssE10DGkigsM=
> =Sx4L
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
--
University of Illinois at Urbana-Champaign
Electrical Engineering
rcvengr2@illinois.edu
(630) 306-4018
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: python-numpy prone to use host libraries
2011-06-28 15:03 ` Bob Cvengros
@ 2011-06-28 15:09 ` Koen Kooi
0 siblings, 0 replies; 5+ messages in thread
From: Koen Kooi @ 2011-06-28 15:09 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28-06-11 17:03, Bob Cvengros wrote:
> Does that mean that numpy is a completely broken package, or is that a way
> to hack it to make it work? If it is broken and will stay that way, why
> don't we remove it from the recipe list? If that is the case then it's just
> misleading.
It works if you don't have (from the top of my head) g99 and blas-dev
installed on your host. I removed those and numpy builds for me.
regards,
Koen
>
> Thanks,
> Bob
>
> On Tue, Jun 28, 2011 at 1:52 AM, Koen Kooi <koen@dominion.thruhere.net>wrote:
>
> On 27-06-11 22:42, Paul Menzel wrote:
>>>> Dear Patrik,
>>>>
>>>>
>>>> Am Sonntag, den 10.04.2011, 21:45 +0200 schrieb Patrik Dahlström
> (student):
>>>>
>>>> [&]
>>>>
>>>>> I am however uncertain on how to proceed with this and could use some
>>>>> assistance.
>>>>
>>>> did you find a \x1cgeneric\x1d solution for this problem?
>
> It requires redoing the numpy buildsystem, it is broken by design. I
> tried to teach it about crosscompiling and sysroots last year, but gave
> up after a few days :(
>
> regards,
>
> Koen
>>
>>
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFOCe6MMkyGM64RGpERAtm7AJ4otnJkPoVsupxC4c95EdfKL9s/CwCfYb5A
+9ckzBIhVxGFCJ8Ict3fzug=
=Q31X
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-28 15:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10 19:45 python-numpy prone to use host libraries Patrik Dahlström (student)
2011-06-27 20:42 ` Paul Menzel
2011-06-28 6:52 ` Koen Kooi
2011-06-28 15:03 ` Bob Cvengros
2011-06-28 15:09 ` Koen Kooi
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.