Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82918 - fann-1.2.0-r1 failes to install with a default python USE flag
Summary: fann-1.2.0-r1 failes to install with a default python USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Andreetta (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 113881
  Show dependency tree
 
Reported: 2005-02-21 23:46 UTC by Christopher Zapart
Modified: 2006-10-28 07:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Zapart 2005-02-21 23:46:28 UTC
>>> Test phase [not enabled]: sci-mathematics/fann-1.2.0-r1

>>> Install fann-1.2.0-r1 into /var/tmp/portage/fann-1.2.0-r1/image/ category sci-mathematics
Making install in src
make[1]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src'
Making install in include
make[2]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src/include'
make[3]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src/include'
make[3]: Nothing to be done for `install-exec-am'.
/bin/sh ../../mkinstalldirs /var/tmp/portage/fann-1.2.0-r1/image//usr/include
mkdir /var/tmp/portage/fann-1.2.0-r1/image/usr
mkdir /var/tmp/portage/fann-1.2.0-r1/image/usr/include
 /bin/install -c -m 644 fann.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/fann.h
 /bin/install -c -m 644 doublefann.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/doublefann.h
 /bin/install -c -m 644 fann_internal.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/fann_internal.h
 /bin/install -c -m 644 floatfann.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/floatfann.h
 /bin/install -c -m 644 doublefann.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/doublefann.h
 /bin/install -c -m 644 fann_data.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/fann_data.h
 /bin/install -c -m 644 fixedfann.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/fixedfann.h
 /bin/install -c -m 644 compat_time.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/compat_time.h
 /bin/install -c -m 644 fann_errno.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/fann_errno.h
 /bin/install -c -m 644 fann_activation.h /var/tmp/portage/fann-1.2.0-r1/image//usr/include/fann_activation.h
make[3]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src/include'
make[2]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src/include'
make[2]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src'
make[3]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src'
/bin/sh ../mkinstalldirs /var/tmp/portage/fann-1.2.0-r1/image//usr/lib
mkdir /var/tmp/portage/fann-1.2.0-r1/image/usr/lib
 /bin/sh ../libtool --mode=install /bin/install -c  libfloatfann.la /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfloatfann.la
/bin/install -c .libs/libfloatfann.so.1.2.0 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfloatfann.so.1.2.0
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libfloatfann.so.1 &&ln -s libfloatfann.so.1.2.0 libfloatfann.so.1)
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libfloatfann.so && ln -s libfloatfann.so.1.2.0 libfloatfann.so)
/bin/install -c .libs/libfloatfann.lai /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfloatfann.la
/bin/install -c .libs/libfloatfann.a /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfloatfann.a
ranlib /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfloatfann.a
chmod 644 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfloatfann.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
 /bin/sh ../libtool --mode=install /bin/install -c  libdoublefann.la /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libdoublefann.la
/bin/install -c .libs/libdoublefann.so.1.2.0 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libdoublefann.so.1.2.0
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libdoublefann.so.1 && ln -s libdoublefann.so.1.2.0 libdoublefann.so.1)
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libdoublefann.so && ln -s libdoublefann.so.1.2.0 libdoublefann.so)
/bin/install -c .libs/libdoublefann.lai /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libdoublefann.la
/bin/install -c .libs/libdoublefann.a /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libdoublefann.a
ranlib /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libdoublefann.a
chmod 644 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libdoublefann.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
 /bin/sh ../libtool --mode=install /bin/install -c  libfixedfann.la /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfixedfann.la
/bin/install -c .libs/libfixedfann.so.1.2.0 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfixedfann.so.1.2.0
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libfixedfann.so.1 &&ln -s libfixedfann.so.1.2.0 libfixedfann.so.1)
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libfixedfann.so && ln -s libfixedfann.so.1.2.0 libfixedfann.so)
/bin/install -c .libs/libfixedfann.lai /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfixedfann.la
/bin/install -c .libs/libfixedfann.a /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfixedfann.a
ranlib /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfixedfann.a
chmod 644 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfixedfann.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
 /bin/sh ../libtool --mode=install /bin/install -c  libfann.la /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfann.la
/bin/install -c .libs/libfann.so.1.2.0 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfann.so.1.2.0
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libfann.so.1 && ln -s libfann.so.1.2.0 libfann.so.1)
(cd /var/tmp/portage/fann-1.2.0-r1/image//usr/lib && rm -f libfann.so && ln -s libfann.so.1.2.0 libfann.so)
/bin/install -c .libs/libfann.lai /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfann.la
/bin/install -c .libs/libfann.a /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfann.a
ranlib /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfann.a
chmod 644 /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/libfann.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src'
make[2]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src'
make[1]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0/src'
make[1]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0'
make[2]: Entering directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ./mkinstalldirs /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/pkgconfig
mkdir /var/tmp/portage/fann-1.2.0-r1/image/usr/lib/pkgconfig
 /bin/install -c -m 644 fann.pc /var/tmp/portage/fann-1.2.0-r1/image//usr/lib/pkgconfig/fann.pc
make[2]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0'
make[1]: Leaving directory `/var/tmp/portage/fann-1.2.0-r1/work/fann-1.2.0'
 * python ------------------------------
running install
running build
running build_py
copying libfann.py -> build/lib.linux-i686-2.3
running build_ext
building '_libfann' extension
swigging libfann.i to libfann_wrap.c
swig -python -o libfann_wrap.c libfann.i
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -mcpu=pentium4-march=pentium4 -fomit-frame-pointer -funroll-loops -mfpmath=sse -ffast-math -pipe -fPIC -I/usr/include/python2.3 -c libfann_wrap.c -o build/temp.linux-i686-2.3/libfann_wrap.o
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -mcpu=pentium4-march=pentium4 -fomit-frame-pointer -funroll-loops -mfpmath=sse -ffast-math -pipe -fPIC -I/usr/include/python2.3 -c fann_helper.c -o build/temp.linux-i686-2.3/fann_helper.o
fann_helper.c:2:18: fann.h: No such file or directory
fann_helper.c:4: error: parse error before '*' token
fann_helper.c: In function `fann_type_to_PyList':
fann_helper.c:7: error: `n' undeclared (first use in this function)
fann_helper.c:7: error: (Each undeclared identifier is reported only once
fann_helper.c:7: error: for each function it appears in.)
fann_helper.c:10: error: `array' undeclared (first use in this function)
fann_helper.c: At top level:
fann_helper.c:17: error: parse error before "fann_type"
fann_helper.c:17: warning: `struct fann' declared inside parameter list
fann_helper.c:17: warning: its scope is only this definition or declaration, which is probably not what you want
fann_helper.c: In function `fann_run2':
fann_helper.c:19: error: `ann' undeclared (first use in this function)
fann_helper.c:24: error: `input' undeclared (first use in this function)
fann_helper.c: At top level:
fann_helper.c:27: error: parse error before "fann_type"
fann_helper.c:27: warning: `struct fann' declared inside parameter list
fann_helper.c: In function `fann_test2':
fann_helper.c:29: error: `ann' undeclared (first use in this function)
fann_helper.c:34: error: `input' undeclared (first use in this function)
fann_helper.c:34: error: `desired_output' undeclared (first use in this function)
fann_helper.c: At top level:
fann_helper.c:37: error: parse error before '*' token
fann_helper.c: In function `get_row_from_double_array':
fann_helper.c:40: error: `ncols' undeclared (first use in this function)
fann_helper.c:45: error: `f' undeclared (first use in this function)
fann_helper.c:45: error: `row' undeclared (first use in this function)
fann_helper.c: At top level:
fann_helper.c:51: warning: `struct fann_train_data' declared inside parameter list
fann_helper.c: In function `get_train_data_input':
fann_helper.c:53: error: dereferencing pointer to incomplete type
fann_helper.c:58: error: dereferencing pointer to incomplete type
fann_helper.c:58: error: dereferencing pointer to incomplete type
fann_helper.c: At top level:
fann_helper.c:61: warning: `struct fann_train_data' declared inside parameter list
fann_helper.c: In function `get_train_data_output':
fann_helper.c:63: error: dereferencing pointer to incomplete type
fann_helper.c:68: error: dereferencing pointer to incomplete type
fann_helper.c:68: error: dereferencing pointer to incomplete type
fann_helper.c: At top level:
fann_helper.c:72: warning: `struct fann' declared inside parameter list
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: sci-mathematics/fann-1.2.0-r1 failed.
!!! Function src_install, Line 65, Exitcode 1
!!! No python
!!! If you need support, post the topmost build error, NOT this status message.

Only doing USE="-python" emerge fann enables a successful installation.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 
09:43:34)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.5, 1.8.5-r3, 1.7.9-r1, 1.9.4, 1.6.3, 1.4_p6 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer 
-funroll-loops -mfpmath=sse -ffast-math -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer 
-funroll-loops -mfpmath=sse -ffast-math -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
ftp://mirror.nutsmaas.nl/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ 
http://gentoo.tiscali.nl/gentoo/" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd 
embossencode esd f77 fam flac font-server foomaticdb fortran gdbm gif 
gnome gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 java joystick 
jpeg junit kde libg++ libwww lirc mad mikmod mjpeg motif mozilla mpeg 
mysql nas ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds 
python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex tiff 
truetype truetype-fonts type1-fonts xml xml2xmms xv zlib linguas_en_GB" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, 
PORTDIR_OVERLAY
Comment 1 Christopher Zapart 2005-02-21 23:48:10 UTC
P.S. I have an up-to-date stable python installed.
Comment 2 Christopher Zapart 2005-02-21 23:52:45 UTC
I think the install script is trying to compile python support before the fann header files  
and the fann lib files have been installed in the /usr/include and /usr/lib.

Then it fails to find fann.h etc and the compilation of extra python source files fails.
That's my guess.
Comment 3 Joe Gallo 2005-05-12 14:40:44 UTC
As a workaround, you can emerge fann without python support, and then use that installed package to bootstrap the ebuild, like this:

USE="-python" emerge fann && USE="python" emerge fann

This looks intensely silly, but it works.
Comment 4 Christopher Zapart 2005-05-12 14:45:32 UTC
Joe,

Yes it does work. This way the python installation can proceed since the header
files would have been installed by the first emerge -python.

Cheers
Chris
Comment 5 Jon Hood (RETIRED) gentoo-dev 2006-06-13 20:58:55 UTC
What is the status of this?
Comment 6 Mark Knecht 2006-10-27 10:09:54 UTC
Appears this has never been addressed. It's now late October and I'm still failing the same way.
Comment 7 Mark Knecht 2006-10-27 10:37:18 UTC
I see from looking at the fann page at sourceforge that there are some newer versions. Since I'm really intersted in the fannExplorer which doesn't seem to be part of the 1.2 series maybe I'd prefer a new ebuild to try that out.

I tried the 

USE="-python" emerge fann && USE="python" emerge fann

hack and it worked for me so thanks for documenting that here.
Comment 8 Markus Dittrich (RETIRED) gentoo-dev 2006-10-28 07:17:35 UTC
Hi Mark,

I've just committed fann-2.0.0 to portage cvs and it compiles
well for me including the python wrappers. All tests seem to
work as well. I'll close this bug as fixed then. Please
open a new bug for fann-2.0.0 should there be still issues
for you.

Thanks,
Markus