Re: Problem compiling / installing octave
On Apr 20, 2007, at 5:33 PM, Mark Duling wrote:
Ryan Schmidt <ryandesign@macports.org> on Friday, April 20, 2007 at 12:44 AM -0800 wrote:
I'm having trouble installing octave. I keep getting the following error message:
stephen-dones-computer:~ srdone$ sudo port install octave ---> Configuring gmp Error: Target com.apple.configure returned: can't read "configure.cflags": no such variable Error: The following dependencies failed to build: gcc42 gmp libiconv mpfr glpk gnuplot expat fontconfig freetype zlib gd2 jpeg libpng ncurses ncursesw pdflib readline teTeX gawk gettext ghostscript gsed texi2html texinfo hdf5 pcre Error: Status 1 encountered during processing.
configure.cflags is new... Are you running MacPorts 1.4.3? If not, please "sudo port selfupdate" to get it, then try again.
Wait a minute. I'm getting the same error. Apparently, configure.cflags is not in MP 1.4.3. I used it in a port also.
Mark
If that is the case I apologize for bugging you to use configure.cflags instead of configure.env the other day ;) Regards, Elias
Same problem here: stechert@kirin:~ [1027] $ sudo port install gmp ---> Fetching gmp ---> Verifying checksum(s) for gmp ---> Extracting gmp ---> Configuring gmp Error: Target com.apple.configure returned: can't read "configure.cflags": no such variable Error: Status 1 encountered during processing. stechert@kirin:~/Repositories/svn/macports/trunk/dports/audio/faad2 [1028] $ sudo port version Version: 1.430 As the octave maintainer, I'm happy to mention that the configure.cflags feature is not yet used in the octave Portfile. A quick scan however, shows that these other Portfiles are not so lucky. stechert@kirin:~/Repositories/svn/macports/trunk/dports [1011] $ find . -name Portfile | xargs grep configure.cflags ./audio/faac/Portfile:configure.cflags-append "-D__unix__" ./audio/faad2/Portfile: configure.cflags-append -DHAS_LRINTF ./audio/herrie/Portfile: configure.cflags-append -g
./devel/gmp/Portfile:configure.cflags -force_cpusubtype_ALL ./devel/gmp/Portfile: configure.cflags-delete - force_cpusubtype_ALL ./devel/gmp/Portfile: configure.cflags-delete - force_cpusubtype_ALL ./devel/gmp-cxx-wrappers/Portfile:configure.cflags - force_cpusubtype_ALL ./devel/gmp-cxx-wrappers/Portfile: configure.cflags-delete - force_cpusubtype_ALL ./devel/gmp-cxx-wrappers/Portfile: configure.cflags-delete - force_cpusubtype_ALL ./multimedia/ffmpeg/Portfile:configure.cflags-append -DHAVE_LRINTF ./security/courier-authlib/Portfile:configure.cflags- append -I${prefix}/include/db44 ./sysutils/fhist/Portfile:configure.cflags-append $ {configure.cppflags} ${configure.ldflags} ./x11/Eterm/Portfile:configure.cflags-append -DDARWIN
gmp is the dependency that's preventing Octave from getting installed. Perhaps Paul G. and Mark D. have installations that can handle the cflags keyword? Andre On Apr 20, 2007, at 8:59 AM, Elias Pipping wrote:
On Apr 20, 2007, at 5:33 PM, Mark Duling wrote:
Ryan Schmidt <ryandesign@macports.org> on Friday, April 20, 2007 at 12:44 AM -0800 wrote:
I'm having trouble installing octave. I keep getting the following error message:
stephen-dones-computer:~ srdone$ sudo port install octave ---> Configuring gmp Error: Target com.apple.configure returned: can't read "configure.cflags": no such variable Error: The following dependencies failed to build: gcc42 gmp libiconv mpfr glpk gnuplot expat fontconfig freetype zlib gd2 jpeg libpng ncurses ncursesw pdflib readline teTeX gawk gettext ghostscript gsed texi2html texinfo hdf5 pcre Error: Status 1 encountered during processing.
configure.cflags is new... Are you running MacPorts 1.4.3? If not, please "sudo port selfupdate" to get it, then try again.
Wait a minute. I'm getting the same error. Apparently, configure.cflags is not in MP 1.4.3. I used it in a port also.
Mark
If that is the case I apologize for bugging you to use configure.cflags instead of configure.env the other day ;)
Regards,
Elias _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
Configuring works just fine with the trunk ---> Configuring gmp DEBUG: Executing com.apple.configure (gmp) DEBUG: Environment: CXXFLAGS='-O2' CPPFLAGS='-I/MacPorts/include' CFLAGS='-force_cpusubtype_ALL' ABI='32' LDFLAGS='-L/MacPorts/lib' Apparently, something didn't make it into 1.4.3, it certainly *is* in the trunk, though Regards, Elias
Hi all, On 21/04/2007, at 03:02, Andre Stechert wrote:
Same problem here:
stechert@kirin:~ [1027] $ sudo port install gmp ---> Fetching gmp ---> Verifying checksum(s) for gmp ---> Extracting gmp ---> Configuring gmp Error: Target com.apple.configure returned: can't read "configure.cflags": no such variable Error: Status 1 encountered during processing.
I've tested this with gmp, and the results are in: * setting configure.cflags in Portfiles doesn't work, as demonstrated above. * setting configure.cflags-append in Portfiles _does_ work; it worked for gmp, and for courier-authlib (which I maintain, and successfully built using configure.cflags-append before committing). It's the same thing that was mentioned elsewhere (by pguyot on macports-dev or in a commit log, I think -- sorry for being too lazy to look it up) about redefining the universal variant in Portfiles: if you try to do so, "universal" disappears entirely. I don't understand the base code well enough to understand why it works this way (comments?), but that's how it works. Kind regards, Maun Suang -- Boey Maun Suang (Boey is my surname) Email: boeyms@macports.org
participants (3)
-
Andre Stechert
-
Boey Maun Suang
-
Elias Pipping