Problems installing py26-scipy -> gcc43
Robert Wilson
rwilsont1 at verizon.net
Sun Apr 18 08:05:32 PDT 2010
The following is on an iMac running Mac OS X 10.6.3.
As a result of trying to install py26-scipy @0.7.1 I need gcc43. The
compilation was failing because of a conflict between the type of
pointer_t in /usr/include/mach/vm_types.h and that in the module.c
file. I introduced the following change in module.c and the
compilation proceeded, but it is hard to be sure that it will work
correctly:
#define P_UNKNOWN 0
#define P_OTHER 1
#define P_NAMESPACE 2
#define P_COMPONENT 3
#define P_SYMBOL 4
#if 0
typedef enum
{
P_UNKNOWN = 0, P_OTHER, P_NAMESPACE, P_COMPONENT, P_SYMBOL
}
pointer_t;
#endif
Having done this, it all compiled and I was able to install scipy, but sys.path in python still showed the
original OS-X paths. I set PYTHONPATH to /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
and could import scipy. Running scipy.test(), however produced errors:
......
Ran 3488 tests in 41.445s
FAILED (KNOWNFAIL=4, SKIP=21, errors=3)
<nose.result.TextTestResult run=3488 errors=3 failures=0>
Before the 'fix", running "port -d install gcc26" produced the following :
.....
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/work/build/./prev-gcc/xgcc
-B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_gcc43/work/build/./prev-gcc/
-B/opt/local/x86_64-apple-darwin10/bin/ -c -g -O2 -DIN_GCC -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -I. -Ifortran
-I../../gcc-4.3.4/gcc -I../../gcc-4.3.4/gcc/fortran
-I../../gcc-4.3.4/gcc/../include
-I../../gcc-4.3.4/gcc/../libcpp/include -I/opt/local/include
-I/opt/local/include -I../../gcc-4.3.4/gcc/../libdecnumber
-I../../gcc-4.3.4/gcc/../libdecnumber/dpd -I../libdecnumber
../../gcc-4.3.4/gcc/fortran/module.c -o fortran/module.o
../../gcc-4.3.4/gcc/fortran/module.c:102: error: conflicting types for 'pointer_
t'
/usr/include/mach/vm_types.h:40: error: previous declaration of 'pointer_t' was
here
make[3]: *** [fortran/module.o] Error 1
make[3]: *** Waiting for unfinished jobs....ranlib: file:
libbackend.a(insn-peep.o) has no symbols
ranlib: file: libbackend.a(loop-doloop.o) has no symbols
ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
ranlib: file: libbackend.a(xcoffout.o) has no symbols
ranlib -c libbackend.a
ranlib: file: libbackend.a(insn-peep.o) has no symbols
ranlib: file: libbackend.a(loop-doloop.o) has no symbols
ranlib: file: libbackend.a(vmsdbgout.o) has no symbols
ranlib: file: libbackend.a(xcoffout.o) has no symbols
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2Error: Target org.macports.build returned:
shell command " cd "/opt/local/var/ma
cports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_la
ng_gcc43/work/build" && /usr/bin/make -j2 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_v
ar_macports_sources_rsync.macports.org_release_ports_lang_gcc43/work/build" && /
usr/bin/make -j2 all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for gcc43):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
bobs-imac$
Any help would be appreciated.
Robert Wilson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20100418/bba084ee/attachment.html>
More information about the macports-users
mailing list