reduce-algebra portfile

Mark Brethen mark.brethen at gmail.com
Tue Dec 13 19:58:27 PST 2011



On Dec 13, 2011, at 8:56 PM, Ryan Schmidt wrote:

> 
> On Dec 13, 2011, at 20:48, Mark Brethen wrote:
> 
>> I suspect that the errors stem from the undefined variable 'MACHINE'. The MACHINE variable ist set according to names derived from config-guess. And in make-psl.sh I find a series of if statements, including:
>> ----------
>> if test $guess = "x86_64-apple-darwin10.4.0"
>> then
>>       export MACHINE=macintel64
>> fi
>> 
>> if test $guess = "i386-apple-darwin10.4.0"
>> then
>>       export MACHINE=macintel
>> fi
>> ---------
>> 
>> But config is reporting "OS darwin/11.2.0 (Mac OS X 10.7) arch i386". 
>> 
>> BTW, config.guess is a script that attempts to guess a canonical system name similar to config.sub.  If it succeeds, it prints the system name on stdout, and exits with 0.  Otherwise, it exits with 1.
> 
> If those are the only darwin lines in the file, then yes, that will only work on Intel Macs running OS X 10.6.4 and no other version. So that's not a very good way for them to be doing that.
> 
> Maybe you can just bypass their checks entirely and pass the MACHINE variable yourself from the Portfile, and select it based on ${build_arch}.
> 


The script has this feature built-in, passing "macintel64" as a parameter. When I did this I got the following build errors:

:info:configure checking whether make sets $(MAKE)... yes
:info:configure checking build system type... x86_64-apple-darwin11.2.0
:info:configure checking host system type... x86_64-apple-darwin11.2.0
:info:configure configure: Building for Macintosh/Darwin with X
:info:configure llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
:info:configure lipo: can't figure out the architecture type of: /var/tmp//ccdTe4U9.out
:info:configure llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
:info:configure conftest.c:1:19: error: stdio.h: No such file or directory
:info:configure conftest.c: In function 'main':
:info:configure conftest.c:3: warning: incompatible implicit declaration of built-in function 'printf'
:info:configure conftest.c:1:19: error: stdio.h: No such file or directory
:info:configure conftest.c: In function 'main':
:info:configure conftest.c:3: warning: incompatible implicit declaration of built-in function 'printf'
:info:configure lipo: can't figure out the architecture type of: /var/tmp//ccScg5kP.out
:info:configure llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
:info:configure conftest.c:1:19: error: stdio.h: No such file or directory
:info:configure conftest.c: In function 'main':
:info:configure conftest.c:3: warning: incompatible implicit declaration of built-in function 'printf'
:info:configure conftest.c:1:19: error: stdio.h: No such file or directory
:info:configure conftest.c: In function 'main':
:info:configure conftest.c:3: warning: incompatible implicit declaration of built-in function 'printf'
:info:configure lipo: can't figure out the architecture type of: /var/tmp//ccH7YKZB.out
:info:configure configure: fat binary creation will probably NOT be possible

<snip>

:notice:build --->  Building reduce-algebra
:debug:build Executing proc-pre-org.macports.build-build-0
:info:build make for PSL in /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist  for MACHINE  macintel64
:info:build please add  /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64  to your PATH 
:info:build unset inprocess
:info:build if ( macintel64 == apollo ) then
:info:build if ( macintel64 == sun386 ) then
:info:build if ( macintel64 == cray-t3d ) then
:info:build if ( macintel64 == Alpha ) then
:info:build set imagesize=10000000
:info:build endif
:info:build endif
:info:build if ( macintel64 == Mips_dec ) then
:info:build if ( macintel64 == Mips_iris ) then
:info:build if ( macintel64 == Ibmrs ) then
:info:build if ( macintel64 == brock ) then
:info:build if ( macintel64 == AMD64 ) then
:info:build if ( macintel64 == AMD64_ext ) then
:info:build if ( macintel64 == macintel64 ) then
:info:build set imagesize=1000
:info:build endif
:info:build pushd /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/nonkernel/macintel64/lap
:info:build /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/nonkernel/macintel64/lap /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/kernel/macintel64 
:info:build setenv SavingPSL yes
:info:build if ( -e /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/.imago ) then
:info:build mv -f /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/bare-psl.img /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/old-bare-psl.img
:info:build mv: rename /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/bare-psl.img to /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/old-bare-psl.img: No such file or directory
:info:build else
:info:build /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/kernel/macintel64/bpsl -td 1000
:info:build Setting heap limit as follows:
:info:build bpssize = 10000000 (989680), heapsize = 519288000 (1EF3B4C0)
:info:build Total image size = 54525952 (7FFF03400000)
:info:build About to load LOAD-PSL

<snip>

:info:build /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/util /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/kernel/macintel64 
:info:build /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/pslcomp
:info:build Loading image file: /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/bin/macintel64/pslcomp.img 
:info:build ***** `read-init-file' is an undefined function
:info:build ***** Continuable error: retry form is `(read-init-file "pslcomp")'

<snip>

:info:build *** Function `linelength' has been redefined
:info:build linelength
:info:build 277 lisp break (2) > *** loading 
:info:build /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/lap/macintel64/chars.b
:info:build ***** An attempt was made to do put on `1931', which is not an identifier
:info:build Break loop
:info:build 278 lisp break (3) > *** loading 
:info:build /opt/local/var/macports/build/_Users_marbre_ports_math_reduce-algebra/reduce-algebra/work/trunk/psl/dist/lap/macintel64/pp.b
:info:build ***** Segmentation Violation
:info:build Break loop
:info:build 279 lisp break (4) > *** Warning: Load of pp previously requested, but incomplete
:info:build *** Warning: Load of pp previously requested, but incomplete
:info:build *** Warning: Load of pp previously requested, but incomplete
:info:build *** Warning: Load of pp previously requested, but incomplete

<this last line is output continuously thereafter>

Mark






More information about the macports-dev mailing list