Opened 18 years ago

Closed 18 years ago

#9101 closed defect (fixed)

errors in py-numpy install

Reported by: patelli@… Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: markd@…, hoeft@…, erickt@…
Port:

Description

I'm really new on Mac and on Darwin so please be patient but I need to run some python scientific programs I wrote and I didn't succeeded in installing with darwin ports numpy .. that's what happens:

host142-181:~ Ale$ sudo port install py-numpy ---> Building gcc41 with target profiledbootstrap Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build" && make profiledbootstrap" returned error 2 Command output: GCJFLAGS=" ${flags}" \

CXXFLAGS="-g -O2 ${flags}" \ LIBCFLAGS="-O2 -g -O2 ${flags}" \ LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \ LDFLAGS=" ${flags}" \ MULTIFLAGS="${flags}" \ DESTDIR="" \ INSTALL="/usr/bin/install -c" \ INSTALL_DATA="/usr/bin/install -c -m 644" \ INSTALL_PROGRAM="/usr/bin/install -c" \ INSTALL_SCRIPT="/usr/bin/install -c" \ all); then \

true; \

else \

exit 1; \

fi; \

else true; \ fi; \

fi; \

done; \

fi make all-am /bin/sh ./libtool --mode=compile /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build/./gcc/xgcc -B/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.6.1/bin/ -B/opt/local/i386-apple-darwin8.6.1/lib/ -isystem /opt/local/i386-apple-darwin8.6.1/include -isystem /opt/local/i386-apple-darwin8.6.1/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.0/libgfortran -I. -iquote../../../gcc-4.1.0/libgfortran/io -I../../../gcc-4.1.0/libgfortran/../gcc -I../../../gcc-4.1.0/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c -o compile_options.lo test -f 'runtime/compile_options.c' || echo '../../../gcc-4.1.0/libgfortran/'runtime/compile_options.c /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build/./gcc/xgcc -B/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.6.1/bin/ -B/opt/local/i386-apple-darwin8.6.1/lib/ -isystem /opt/local/i386-apple-darwin8.6.1/include -isystem /opt/local/i386-apple-darwin8.6.1/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.0/libgfortran -I. -iquote../../../gcc-4.1.0/libgfortran/io -I../../../gcc-4.1.0/libgfortran/../gcc -I../../../gcc-4.1.0/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.1.0/libgfortran/runtime/compile_options.c -fno-common -DPIC -o .libs/compile_options.o /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build/./gcc/xgcc -B/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_gcc41/work/build/./gcc/ -B/opt/local/i386-apple-darwin8.6.1/bin/ -B/opt/local/i386-apple-darwin8.6.1/lib/ -isystem /opt/local/i386-apple-darwin8.6.1/include -isystem /opt/local/i386-apple-darwin8.6.1/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.1.0/libgfortran -I. -iquote../../../gcc-4.1.0/libgfortran/io -I../../../gcc-4.1.0/libgfortran/../gcc -I../../../gcc-4.1.0/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -c ../../../gcc-4.1.0/libgfortran/runtime/compile_options.c -o compile_options.o >/dev/null 2>&1 make[4]: * [compile_options.lo] Error 1 make[3]: * [all] Error 2 make[2]: * [all-target-libgfortran] Error 2 make[1]: * [all] Error 2 make: * [profiledbootstrap] Error 2

Error: The following dependencies failed to build: gcc41 Error: /opt/local/bin/port: Status 1 encountered during processing.

What I have to do?

Change History (10)

comment:1 Changed 18 years ago by markd@…

Cc: markd@… added

The problem isn't numpy, it is the gcc41 dependency that is broken on Mac Intel at the moment. I hear that gcc4.2 does work on Intel, so I tried changing the py-numpy portfile to use gcc4.2 and py-numpy compiles. I have no idea whether it works or not because I don't know it. But you could try it.

Change /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/python/py-numpy/Portfile

port:gcc41 -> port:gcc42 gfortran-dp-4.1 -> gfortran-dp-4.2

Also, I got a conflict at the end that "/opt/local/bin/f2py2.4 is being used by the active py-f2py port", I just forced activation with this 'port -f activate py-numpy'

So there are a couple of port problems to resolve, so if you'd try this and post your results it may help to resolve them.

comment:2 Changed 18 years ago by patelli@…

Thanks it seems to work but I have problems also on installing scipy. I've made the same changes you suggested for numpy in the portfile switching from 4.1 to 4.2 but this time it gives always errors ... any suggestion?

sudo port install py-scipy04 Portfile changed since last build; discarding previous state. ---> Fetching py-scipy04 ---> Verifying checksum(s) for py-scipy04 ---> Extracting py-scipy04 ---> Configuring py-scipy04 ---> Building py-scipy04 with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_python_py-scipy04/work/scipy-0.4.6" && CCFLAGS="-I/opt/local/include -L/opt/local/lib -I/opt/local/gcc42" /opt/local/bin/python2.4 setup.py config_fc --f90exec gfortran-dp-4.2 --fcompiler gnu95 build" returned error 1 Command output: copying Lib/weave/standard_array_spec.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave copying Lib/weave/swig2_spec.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave copying Lib/weave/swigptr.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave copying Lib/weave/swigptr2.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave copying Lib/weave/vtk_spec.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave copying Lib/weave/weave_version.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave copying Lib/weave/wx_spec.py -> build/lib.darwin-8.6.1-i386-2.4/scipy/weave running build_clib customize UnixCCompiler customize UnixCCompiler using build_clib Could not locate executable g77 Could not locate executable f77 Could not locate executable gfortran-dp-4.0 Could not locate executable f95 customize Gnu95FCompiler customize Gnu95FCompiler using build_clib building 'dfftpack' library compiling Fortran sources f95(f77) options: '-Wall -ffixed-form -fno-second-underscore -fPIC -O2 -funroll-loops' gfortran-dp-4.2(f90) options: '-Wall -fno-second-underscore -fPIC -O2 -funroll-loops' gfortran-dp-4.2(fix) options: '-Wall -ffixed-form -fno-second-underscore -Wall -fno-second-underscore -fPIC -O2 -funroll-loops' creating build/temp.darwin-8.6.1-i386-2.4 creating build/temp.darwin-8.6.1-i386-2.4/Lib creating build/temp.darwin-8.6.1-i386-2.4/Lib/fftpack creating build/temp.darwin-8.6.1-i386-2.4/Lib/fftpack/dfftpack compile options: '-c' f95:f77: Lib/fftpack/dfftpack/dcosqb.f sh: line 1: f95: command not found sh: line 1: f95: command not found error: Command "f95 -Wall -ffixed-form -fno-second-underscore -fPIC -O2 -funroll-loops -c -c Lib/fftpack/dfftpack/dcosqb.f -o build/temp.darwin-8.6.1-i386-2.4/Lib/fftpack/dfftpack/dcosqb.o" failed with exit status 127

Error: /opt/local/bin/port: Status 1 encountered during processing.

comment:3 Changed 18 years ago by billherschel@…

I had the same problem, tried it with gcc42 and everything compiled and installed.

comment:4 Changed 18 years ago by markd@…

Cc: erickt@… added
Owner: changed from macports-tickets@… to erickt@…

comment:5 Changed 18 years ago by erickt@…

Owner: changed from erickt@… to erickt@…
Status: newassigned

I'll see if I can get it to depend on gcc42 for only the intel macs.

comment:6 Changed 18 years ago by erickt@…

Cc: hoeft@… added; erickt@… removed

Hi All,

I've pushed out a new version of py-numpy that will have it depend on gcc42 on the macs. While it works on my G4, I don't have an intel to test on, so let me know if it works for you.

Note that it may take a little bit of time before the PortIndex is regenerated, but once it is, you should be able to upgrade. -e

comment:7 Changed 18 years ago by markd@…

Cc: markd@… erickt@… added; markd@… removed

py-numpy 1.0b5 installs fine on my MacBook with the stock gcc4. But it didn't install gcc4.2 because

'variant darwin intel' needs to be 'variant darwin i386'

DEBUG: Requested variant i386 is not provided by port py-numpy.

comment:8 Changed 18 years ago by erickt@…

Hello again,

Thanks for pointing that out! I submitted the fix. Once things sync up, please check again.

-e

comment:9 Changed 18 years ago by markd@…

py-numpy now built gcc42 and installed fine on Intel. All systems go!

comment:10 Changed 18 years ago by erickt@…

Resolution: fixed
Status: assignedclosed

great! Then I'll mark this longstanding bug as complete :)

Note: See TracTickets for help on using tickets.