#7505: Add scripts which check C and C++ compilers, and report what they are.
---------------------------+------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-4.3.1
Component: build | Keywords:
Work_issues: | Author: David Kirkby, Peter Jeremy
Upstream: N/A | Reviewer: Martin Albrecht, Minh Van Nguyen
Merged: |
---------------------------+------------------------------------------------
Changes (by mvngu):
* status: needs_review => positive_review
* reviewer: => Martin Albrecht, Minh Van Nguyen
Comment:
The patch `trac_7505-test-scripts.patch` contains two shell scripts: one
for testing the type of C compiler, and the other for testing the type of
C++ compiler. Here are the results of my testing them on different
combinations of platform and hardware:
* AIX 6.1 (access provided by OpenAIX at
http://www.metamodul.com/10.html), PowerPC_POWER5 @ 2097 MHz, with GCC
4.2.4. Unfortunately, the license for the IBM commercial compilers on this
machine has expired, so I wasn't able to use those IBM compilers to test
the scripts.
{{{
[mv...@client9 ~]$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../stage/gcc-4.2.4/configure --disable-shared
--enable-threads=posix --prefix=/opt/pware --with-long-double-128
--with-mpfr=/opt/pware --with-gmp=/opt/pware
Thread model: aix
gcc version 4.2.4
}}}
Without setting CC and CXX:
{{{
[mv...@client9 ~]$ uname -a
AIX client1 1 6 00C6B7C04C00
[mv...@client9 ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@client9 ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now set CC and CXX to gcc and g++:
{{{
[mv...@client9 ~]$ uname -a
AIX client1 1 6 00C6B7C04C00
[mv...@client9 ~]$ export CC=gcc
[mv...@client9 ~]$ export CXX=g++
[mv...@client9 ~]$ ./testcc.sh
GCC
[mv...@client9 ~]$ ./testcxx.sh
GCC
}}}
* Cygwin on Windows XP (winxp1 on boxen.math), Intel(R) Xeon(R) CPU X7460
@ 2.66GHz, with GCC 3.4.4 and GCC 4.3.2:
{{{
mv...@winxp ~
$ gcc -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: /gnu/gcc/package/gcc4-4.3.2-2/src/gcc-4.3.2/configure
--srcdir=/gnu/gcc/package/gcc4-4.3.2-2/src/gcc-4.3.2 --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/sbin
--datadir=/usr/share --localstatedir=/var --sysconfdir=/etc
--infodir=/usr/share/info --mandir=/usr/share/man --datadir=/usr/share
--infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr
--with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs
--with-slibdir=/usr/bin --libexecdir=/usr/lib --enable-static --enable-
shared
--enable-shared-libgcc --enable-__cxa_atexit --with-gnu-ld --with-gnu-as
--with-dwarf2 --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --disable-symvers
--enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp
--enable-libada --enable-threads=posix
AS=/opt/gcc-tools/bin/as.exe
AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.exe
LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe
Thread model: posix
gcc version 4.3.2 20080827 (beta) 2 (GCC)
mv...@winxp ~
$ cc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /managed/gcc-
build/final-v3-bootstrap/gcc-3.4.4-999/configure
--verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr
--sysconfdir=/etc
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --enable-
languages=c,ada,c++,d,f77,pascal,java,objc
--enable-nls --without-included-gettext --enable-version-specific-runtime-
libs
--without-x --enable-libgcj --disable-java-awt --with-system-zlib
--enable-interpreter --disable-libgcj-debug --enable-threads=posix
--enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
}}}
Without setting CC and CXX:
{{{
mv...@winxp ~
$ uname -a
CYGWIN_NT-5.1 winxp 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
mv...@winxp ~
$ ./testcc.sh
Sorry, you must define the environment variable CC
mv...@winxp ~
$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now set CC and CXX to GCC 3.4.4:
{{{
mv...@winxp ~
$ uname -a
CYGWIN_NT-5.1 winxp 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
mv...@winxp ~
$ export CC=cc
mv...@winxp ~
$ export CXX=c++
mv...@winxp ~
$ ./testcc.sh
GCC
mv...@winxp ~
$ ./testcxx.sh
GCC
}}}
Now set CC and CXX to use GCC 4.3.2 20080827 (beta) 2:
{{{
mv...@winxp ~
$ uname -a
CYGWIN_NT-5.1 winxp 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
mv...@winxp ~
$ export CC=gcc
mv...@winxp ~
$ export CXX=g++
mv...@winxp ~
$ ./testcc.sh
GCC
mv...@winxp ~
$ ./testcxx.sh
GCC
}}}
* Fedora 12 (cicero on SkyNet), Intel(R) Pentium(R) 4 CPU 2.66GHz, GCC
4.4.2:
{{{
[mv...@cicero ~]$ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.20/x86-Linux-pentium4-gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/x86-Linux-pentium4-gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/x86-Linux-pentium4-gcc-4.4.0
--with-mpfr=/usr/local/mpfr-2.4.1/x86-Linux-pentium4-mpir-1.2.1-gcc-4.4.0
--prefix=/usr/local/gcc-4.4.2/x86-Linux-pentium4-binutils-2.20
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@cicero ~]$ uname -a
Linux cicero 2.6.31.6-145.fc12.i686 #1 SMP Sat Nov 21 16:28:23 EST 2009
i686 i686 i386 GNU/Linux
[mv...@cicero ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@cicero ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@cicero ~]$ uname -a
Linux cicero 2.6.31.6-145.fc12.i686 #1 SMP Sat Nov 21 16:28:23 EST 2009
i686 i686 i386 GNU/Linux
[mv...@cicero ~]$ export CC=gcc
[mv...@cicero ~]$ export CXX=g++
[mv...@cicero ~]$ ./testcc.sh
GCC
[mv...@cicero ~]$ ./testcxx.sh
GCC
}}}
* Fedora 12 (eno on SkyNet), Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz,
GCC 4.4.2:
{{{
[mv...@eno ~]$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-gnu-as=/usr/local/binutils-2.20/x86_64-Linux-core2-fc-
gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/x86_64-Linux-core2-fc-gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/x86_64-Linux-core2-gcc-4.4.0
--with-mpfr=/usr/local/mpfr-2.4.1/x86_64-Linux-core2-mpir-1.2.1-gcc-4.4.0
--prefix=/usr/local/gcc-4.4.2/x86_64-Linux-core2-fc-binutils-2.20
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@eno ~]$ uname -a
Linux eno 2.6.31.6-166.fc12.x86_64 #1 SMP Wed Dec 9 10:46:22 EST 2009
x86_64 x86_64 x86_64 GNU/Linux
[mv...@eno ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@eno ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@eno ~]$ uname -a
Linux eno 2.6.31.6-166.fc12.x86_64 #1 SMP Wed Dec 9 10:46:22 EST 2009
x86_64 x86_64 x86_64 GNU/Linux
[mv...@eno ~]$ export CC=gcc
[mv...@eno ~]$ export CXX=g++
[mv...@eno ~]$ ./testcc.sh
GCC
[mv...@eno ~]$ ./testcxx.sh
GCC
}}}
* Fedora 12 (lena on SkyNet), AMD Phenom(tm) II X4 940 Processor, GCC
4.4.2:
{{{
[mv...@lena ~]$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-gnu-as=/usr/local/binutils-2.20/x86_64-Linux-k10-gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/x86_64-Linux-k10-gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/x86_64-Linux-k10-gcc-4.1.2-rh
--with-mpfr=/usr/local/mpfr-2.4.2/x86_64-Linux-k10-mpir-1.2.1-gcc-4.4.2-rh
--prefix=/usr/local/gcc-4.4.2/x86_64-Linux-k10-fc
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@lena ~]$ uname -a
Linux lena 2.6.31.6-145.fc12.x86_64 #1 SMP Sat Nov 21 15:57:45 EST 2009
x86_64 x86_64 x86_64 GNU/Linux
[mv...@lena ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@lena ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@lena ~]$ uname -a
Linux lena 2.6.31.6-145.fc12.x86_64 #1 SMP Sat Nov 21 15:57:45 EST 2009
x86_64 x86_64 x86_64 GNU/Linux
[mv...@lena ~]$ export CC=gcc
[mv...@lena ~]$ export CXX=g++
[mv...@lena ~]$ ./testcc.sh
GCC
[mv...@lena ~]$ ./testcxx.sh
GCC
}}}
* HP-UX 11i (David Kirkby's machine), PA-RISC processor @ 552 MHz, GCC
4.3.3 and HP-UX C/C++ compilers:
{{{
[mv...@hpbox ~]$ /opt/hp-gcc-4.3.3/bin/gcc -v
Using built-in specs.
Target: hppa1.1-hp-hpux11.11
Configured with: /tmp/gcc-4.3.3.tar.gz/gcc-4.3.3/configure --host=hppa1.1
-hp-hpux11.11 --target=hppa1.1-hp-hpux11.11 --build=hppa1.1-hp-hpux11.11
--prefix=/opt/hp-gcc-4.3.3 --with-gnu-as --without-gnu-ld --enable-
threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa1.1
-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa1.1-hp-hpux11.11
Thread model: posix
gcc version 4.3.3 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@hpbox ~]$ uname -a
HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license
[mv...@hpbox ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@hpbox ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now set CC and CXX to use GCC:
{{{
[mv...@hpbox ~]$ uname -a
HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license
[mv...@hpbox ~]$ export CC=/opt/hp-gcc-4.3.3/bin/gcc
[mv...@hpbox ~]$ export CXX=/opt/hp-gcc-4.3.3/bin/g++
[mv...@hpbox ~]$ ./testcc.sh
GCC
[mv...@hpbox ~]$ ./testcxx.sh
GCC
}}}
Now set CC and CXX to use HP-UX compilers:
{{{
[mv...@hpbox ~]$ uname -a
HP-UX hpbox B.11.11 U 9000/785 2016698240 unlimited-user license
[mv...@hpbox ~]$ export CC=/opt/ansic/bin/cc
[mv...@hpbox ~]$ export CXX=/opt/aCC/bin/aCC
[mv...@hpbox ~]$ ./testcc.sh
HP_on_HP-UX
[mv...@hpbox ~]$ ./testcxx.sh
HP_on_HP-UX
}}}
* Mac OS X 10.4.11 (my own MacBook), Intel Core 2 Duo 2 GHz, GCC 4.0.1:
{{{
[mv...@darkstar mvngu]$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic
--program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
}}}
Without setting CC and CXX:
{{{
[mv...@darkstar mvngu]$ uname -a
Darwin darkstar.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10
18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
[mv...@darkstar mvngu]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@darkstar mvngu]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@darkstar mvngu]$ uname -a
Darwin darkstar.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10
18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386
[mv...@darkstar mvngu]$ export CC=gcc
[mv...@darkstar mvngu]$ export CXX=g++
[mv...@darkstar mvngu]$ ./testcc.sh
GCC
[mv...@darkstar mvngu]$ ./testcxx.sh
GCC
}}}
* Mac OS X 10.6.2 (bsd.math), Dual-Core Intel Xeon 2.66 GHz, GCC 4.2.1:
{{{
[mv...@bsd mvngu]$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646.1~2/src/configure --disable-
checking
--enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
--build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
--program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10
--target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)
}}}
Without setting CC and CXX:
{{{
[mv...@bsd mvngu]$ uname -a
Darwin bsd.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10
PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
[mv...@bsd mvngu]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@bsd mvngu]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@bsd mvngu]$ uname -a
Darwin bsd.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10
PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
[mv...@bsd mvngu]$ export CC=gcc
[mv...@bsd mvngu]$ export CXX=g++
[mv...@bsd mvngu]$ ./testcc.sh
GCC
[mv...@bsd mvngu]$ ./testcxx.sh
GCC
}}}
* openSUSE 11.1 (menas on SkyNet), Intel(R) Core(TM)2 Quad CPU Q6600 @
2.40GHz, GCC 4.4.2:
{{{
[mv...@menas ~]$ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.20/x86_64-Linux-core2-suse-
gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/x86_64-Linux-core2-suse-
gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/x86_64-Linux-core2-gcc-4.4.0
--with-mpfr=/usr/local/mpfr-2.4.1/x86_64-Linux-core2-mpir-1.2.1-gcc-4.4.0
--prefix=/usr/local/gcc-4.4.2/x86_64-Linux-core2-suse-binutils-2.20
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@menas ~]$ uname -a
Linux menas 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100 x86_64
x86_64 x86_64 GNU/Linux
[mv...@menas ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@menas ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@menas ~]$ uname -a
Linux menas 2.6.27.39-0.2-default #1 SMP 2009-11-23 12:57:38 +0100 x86_64
x86_64 x86_64 GNU/Linux
[mv...@menas ~]$ export CC=gcc
[mv...@menas ~]$ export CXX=g++
[mv...@menas ~]$ ./testcc.sh
GCC
[mv...@menas ~]$ ./testcxx.sh
GCC
}}}
* Red Hat Enterprise Linux Server 5.3 (cleo on SkyNet), IA-64 Itanium 2,
GCC 4.4.2:
{{{
[mv...@cleo ~]$ gcc -v
Using built-in specs.
Target: ia64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.20/ia64-Linux-rhel-gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/ia64-Linux-rhel-gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/ia64-Linux-rhel-gcc-4.4.0
--with-mpfr=/usr/local/mpfr-2.4.1/ia64-Linux-mpir-1.2.1-gcc-4.4.0
--prefix=/usr/local/gcc-4.4.2/ia64-Linux-rhel-binutils-2.20
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@cleo ~]$ uname -a
Linux cleo 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:57:09 EST 2009 ia64
ia64 ia64 GNU/Linux
[mv...@cleo ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@cleo ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@cleo ~]$ uname -a
Linux cleo 2.6.18-128.1.1.el5 #1 SMP Mon Jan 26 13:57:09 EST 2009 ia64
ia64 ia64 GNU/Linux
[mv...@cleo ~]$ export CC=gcc
[mv...@cleo ~]$ export CXX=g++
[mv...@cleo ~]$ ./testcc.sh
GCC
[mv...@cleo ~]$ ./testcxx.sh
GCC
}}}
* Red Hat Enterprise Linux Server 5.4 (rosemary.math), Intel(R) Xeon(R)
CPU X7460 @ 2.66GHz, GCC 4.1.2:
{{{
[wst...@rosemary mvngu]$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-
checking=release --with-system-zlib --enable-__cxa_atexit --disable-
libunwind-exceptions --enable-libgcj-multifile --enable-
languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin --with-java-
home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
}}}
Without setting CC and CXX:
{{{
[wst...@rosemary mvngu]$ uname -a
Linux rosemary.math.uga.edu 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42
EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[wst...@rosemary mvngu]$ ./testcc.sh
Sorry, you must define the environment variable CC
[wst...@rosemary mvngu]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set to use GCC:
{{{
[wst...@rosemary mvngu]$ uname -a
Linux rosemary.math.uga.edu 2.6.18-164.2.1.el5 #1 SMP Mon Sep 21 04:37:42
EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[wst...@rosemary mvngu]$ export CC=gcc
[wst...@rosemary mvngu]$ export CXX=g++
[wst...@rosemary mvngu]$ ./testcc.sh
GCC
[wst...@rosemary mvngu]$ ./testcxx.sh
GCC
}}}
* Solaris 10 (fulvia on SkyNet), i386 CPU @ 2400 MHz, Sun Studio 12 and
GCC 4.4.2:
{{{
[mv...@fulvia ~]$
/usr/local/SunStudio12-200709/x86_64-SunOS/SUNWspro/bin/cc -V
cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
[mv...@fulvia ~]$
/usr/local/SunStudio12-200709/x86_64-SunOS/SUNWspro/bin/CC -V
CC: Sun C++ 5.9 SunOS_i386 Patch 124864-01 2007/07/25
[mv...@fulvia ~]$ gcc -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.20/x86_64-SunOS-core2-gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/x86_64-SunOS-core2-gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/x86_64-SunOS-core2-gcc-4.4.0-abi32
--with-mpfr=/usr/local/mpfr-2.4.1/x86_64-SunOS-
core2-mpir-1.2.1-gcc-4.4.0-abi32
--prefix=/usr/local/gcc-4.4.2/x86_64-SunOS-core2-binutils-2.20
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@fulvia ~]$ uname -a
SunOS fulvia 5.10 Generic_127128-11 i86pc i386 i86pc
[mv...@fulvia ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@fulvia ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now set CC and CXX to gcc and g++:
{{{
[mv...@fulvia ~]$ uname -a
SunOS fulvia 5.10 Generic_127128-11 i86pc i386 i86pc
[mv...@fulvia ~]$ export CC=gcc
[mv...@fulvia ~]$ export CXX=g++
[mv...@fulvia ~]$ ./testcc.sh
GCC
[mv...@fulvia ~]$ ./testcxx.sh
GCC
}}}
Now set CC and CXX to use Sun Studio 12:
{{{
[mv...@fulvia ~]$ uname -a
SunOS fulvia 5.10 Generic_127128-11 i86pc i386 i86pc
[mv...@fulvia ~]$ export
CC=/usr/local/SunStudio12-200709/x86_64-SunOS/SUNWspro/bin/cc
[mv...@fulvia ~]$ export
CXX=/usr/local/SunStudio12-200709/x86_64-SunOS/SUNWspro/bin/CC
[mv...@fulvia ~]$ ./testcc.sh
Sun_Studio
[mv...@fulvia ~]$ ./testcxx.sh
Sun_Studio
}}}
* Solaris 10 (t2.math), SPARC T5240, with Sun Studio 12 and GCC 4.4.1:
{{{
[mv...@t2 ~]$ /opt/SUNWspro/prod/bin/cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-11 2009/04/30
usage: cc [ options] files. Use 'cc -flags' for details
[mv...@t2 ~]$ /opt/SUNWspro/prod/bin/CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-17 2009/10/27
[mv...@t2 ~]$ gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../gcc-4.4.1/configure
--prefix=/usr/local/gcc-4.4.1-sun-linker/ --with-as=/usr/ccs/bin/as
--without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld
--enable-languages=c,c++,fortran --with-mpfr-include=/usr/local/include
--with-mpfr-lib=/usr/local/lib --with-gmp-include=/usr/local/include
--with-gmp-lib=/usr/local/lib CC=/usr/sfw/bin/gcc CXX=/usr/sfw/bin/g++
Thread model: posix
gcc version 4.4.1 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@t2 ~]$ uname -a
SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240
[mv...@t2 ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@t2 ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now set CC and CXX to gcc and g++:
{{{
[mv...@t2 ~]$ uname -a
SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240
[mv...@t2 ~]$ export CC=gcc
[mv...@t2 ~]$ export CXX=g++
[mv...@t2 ~]$ ./testcc.sh
GCC
[mv...@t2 ~]$ ./testcxx.sh
GCC
}}}
Now set CC and CXX to use Sun Studio 12:
{{{
[mv...@t2 ~]$ uname -a
SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240
[mv...@t2 ~]$ export CC=/opt/SUNWspro/prod/bin/cc
[mv...@t2 ~]$ export CXX=/opt/SUNWspro/prod/bin/CC
[mv...@t2 ~]$ ./testcc.sh
Sun_Studio
[mv...@t2 ~]$ ./testcxx.sh
Sun_Studio
}}}
* SUSE Linux Enterprise Server 10 SP1 (iras on SkyNet), IA-64, GCC 4.4.2:
{{{
[mv...@iras ~]$ gcc -v
Using built-in specs.
Target: ia64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.4.2/src/gcc-4.4.2/configure
--enable-languages=c,c++,fortran --with-gnu-as
--with-as=/usr/local/binutils-2.20/ia64-Linux-suse-gcc-4.4.2/bin/as
--with-gnu-ld
--with-ld=/usr/local/binutils-2.20/ia64-Linux-suse-gcc-4.4.2/bin/ld
--with-gmp=/usr/local/mpir-1.2.1/ia64-Linux-rhel-gcc-4.4.0
--with-mpfr=/usr/local/mpfr-2.4.1/ia64-Linux-mpir-1.2.1-gcc-4.4.0
--prefix=/usr/local/gcc-4.4.2/ia64-Linux-suse-binutils-2.20
Thread model: posix
gcc version 4.4.2 (GCC)
}}}
Without setting CC and CXX:
{{{
[mv...@iras ~]$ uname -a
Linux iras 2.6.16.46-0.12-default #1 SMP Thu May 17 14:00:09 UTC 2007 ia64
ia64 ia64 GNU/Linux
[mv...@iras ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@iras ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@iras ~]$ uname -a
Linux iras 2.6.16.46-0.12-default #1 SMP Thu May 17 14:00:09 UTC 2007 ia64
ia64 ia64 GNU/Linux
[mv...@iras ~]$ export CC=gcc
[mv...@iras ~]$ export CXX=g++
[mv...@iras ~]$ ./testcc.sh
GCC
[mv...@iras ~]$ ./testcxx.sh
GCC
}}}
* Ubuntu 8.04.3 LTS (boxen.math), Intel(R) Xeon(R) CPU X7460 @ 2.66GHz,
GCC 4.2.4:
{{{
[mv...@boxen mvngu]$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-
mpfr
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
}}}
Without setting CC and CXX:
{{{
[mv...@boxen mvngu]$ uname -a
Linux boxen 2.6.24-24-server #1 SMP Sat Aug 22 00:59:57 UTC 2009 x86_64
GNU/Linux
[mv...@boxen mvngu]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@boxen mvngu]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@boxen mvngu]$ uname -a
Linux boxen 2.6.24-24-server #1 SMP Sat Aug 22 00:59:57 UTC 2009 x86_64
GNU/Linux
[mv...@boxen mvngu]$ export CC=gcc
[mv...@boxen mvngu]$ export CXX=g++
[mv...@boxen mvngu]$ ./testcc.sh
GCC
[mv...@boxen mvngu]$ ./testcxx.sh
GCC
}}}
* Ubuntu 9.10 (running on my MacBook), Intel(R) Core(TM)2 CPU T7200 @
2.00GHz, GCC 4.4.1:
{{{
[mv...@darkstar ~]$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-4ubuntu8'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-
shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4
--enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486 --with-
tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8)
}}}
Without setting CC and CXX:
{{{
[mv...@darkstar ~]$ uname -a
Linux darkstar 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC
2009 i686 GNU/Linux
[mv...@darkstar ~]$ ./testcc.sh
Sorry, you must define the environment variable CC
[mv...@darkstar ~]$ ./testcxx.sh
Sorry, you should define the environment variable CXX
}}}
Now with CC and CXX set:
{{{
[mv...@darkstar ~]$ uname -a
Linux darkstar 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC
2009 i686 GNU/Linux
[mv...@darkstar ~]$ export CC=gcc
[mv...@darkstar ~]$ export CXX=g++
[mv...@darkstar ~]$ ./testcc.sh
GCC
[mv...@darkstar ~]$ ./testcxx.sh
GCC
}}}
In each case, the test scripts work as claimed. We can say that the
scripts have been tested and work as claimed on various versions of the
following platforms with GCC and the relevant commercial compilers: AIX,
Cygwin on Windows XP, Fedora, HP-UX, Mac OS X, openSUSE, Red Hat
Enterprise Linux, Solaris, SUSE Linux Enterprise Server, Ubuntu. So far,
no one has been able to test the scripts on Tru64 or Alpha Linux because
we don't have access to the relevant platform/hardware combinations. At
this [http://groups.google.com/group/sage-devel/msg/8ea858e120eec662 sage-
devel] thread, Peter Jeremy mentions that he has access to a Tru64
machine, but he won't be able to test the scripts on that machine within
the next few weeks from now. But that should not prevent the scripts from
being merged in Sage.
[[BR]]
The patch `trac_7505-test-scripts.patch` needs to be applied to
`SAGE_ROOT/spkg/base`. But note that with Sage 4.3 some files under
`SAGE_ROOT/spkg/base` are not yet managed by revision control:
{{{
[mv...@boxen base]$ pwd
/dev/shm/mvngu/sage-4.3/spkg/base
[mv...@boxen base]$ hg st
M sage-env
M sage-spkg
! prereq-0.3-install
? prereq-0.5-install
? prereq-0.5.tar
}}}
The file `prereq-0.3-install` is now superseded by `prereq-0.5-install` so
`prereq-0.3-install` can be removed as follows:
{{{
[mv...@boxen base]$ hg remove prereq-0.3-install
[mv...@boxen base]$ hg st
M sage-env
M sage-spkg
R prereq-0.3-install
? prereq-0.5-install
? prereq-0.5.tar
}}}
Also, the file `prereq-0.5-install` needs to be checked in with:
{{{
[mv...@boxen base]$ hg add prereq-0.5-install
[mv...@boxen base]$ hg st
M sage-env
M sage-spkg
A prereq-0.5-install
R prereq-0.3-install
? prereq-0.5.tar
}}}
But the file `prereq-0.5.tar` need not be under revision control. In that
case, the release manager could edit the file `.hgignore` to ignore that
particular tarball. Anyway, I have attached the patch `trac_7505-revision-
control.patch` which should take care of editing `.hgignore`, adding
`prereq-0.5-install` and removing `prereq-0.3-install`. I have attached a
version of David Kirkby's patch that contains his name so that when his
scripts are checked in, they are committed in his name. Finally, note that
the files `sage-env` and `sage-spkg` must be first checked in before
applying any of the above patches. That is, patches/changes should be
applied/made to the directory `SAGE_ROOT/spkg/base` in the following
order:
1. Check in the changes to `sage-env` and `sage-spkg`.
1. Apply `trac_7505-revision-control.patch` to properly put three
existing files under revision control.
1. Finally, apply `trac_7505-scripts.patch` which has the same changes as
`trac_7505-test-scripts.patch`, but any check ins would be made in David's
name.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7505#comment:22>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.