Changes between Initial Version and Version 1 of Ticket #10979

03/22/11 23:45:56 (8 years ago)

The attached patch adds "-g0" to CFLAGS only on AIX. This removes the debugging information and solves the problem.

GNU patch now builds OK on AIX.

-bash-4.1$ ./sage -f patch-2.5.9.p0
Force installing patch-2.5.9.p0
Calling sage-spkg on patch-2.5.9.p0
Warning: Attempted to overwrite SAGE_ROOT environment variable
AIX aixbox 3 5 000245984C00
Deleting directories from past builds of previous/current versions of patch-2.5.9.p0
Extracting package /home/users/drkirkby/sage-4.7.alpha1/spkg/standard/patch-2.5.9.p0.spkg ...
-rw-r--r--    1 drkirkby staff        169427 23 Mar 2011  /home/users/drkirkby/sage-4.7.alpha1/spkg/standard/patch-2.5.9.p0.spkg
Finished extraction
Host system
uname -a:
AIX aixbox 3 5 000245984C00
CC Version
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
checking for gcc... gcc
checking for C compiler default output... a.out

<snip lots irrelevant messages>

gcc -c  -DHAVE_CONFIG_H -Ded_PROGRAM=\"/usr/bin/ed\" -I. -I. -g0 quotesys.c
gcc -c  -DHAVE_CONFIG_H -Ded_PROGRAM=\"/usr/bin/ed\" -I. -I. -g0 util.c
gcc -c  -DHAVE_CONFIG_H -Ded_PROGRAM=\"/usr/bin/ed\" -I. -I. -g0 version.c
gcc -c  -DHAVE_CONFIG_H -Ded_PROGRAM=\"/usr/bin/ed\" -I. -I. -g0 xmalloc.c
gcc -o patch -g0  error.o malloc.o realloc.o addext.o argmatch.o backupfile.o basename.o dirname.o getopt.o getopt1.o inp.o maketime.o partime.o patch.o pch.o quote.o quotearg.o quotesys.o util.o version.o xmalloc.o 
/bin/sh ./mkinstalldirs /home/users/drkirkby/sage-4.7.alpha1/local/bin /home/users/drkirkby/sage-4.7.alpha1/local/man/man1
./install-sh -c patch /home/users/drkirkby/sage-4.7.alpha1/local/bin/`echo patch | sed 's,x,x,'`
./install-sh -c -m 644 ./ /home/users/drkirkby/sage-4.7.alpha1/local/man/man1/`echo patch | sed 's,x,x,'`.1

real    2m17.218s
user    1m10.198s
sys     0m32.483s
Successfully installed patch-2.5.9.p0
Now cleaning up tmp files.
Making Sage/Python scripts relocatable...
python: A file or directory in the path name does not exist.
Finished installing patch-2.5.9.p0.spkg
-bash-4.1$ uname -a
AIX aixbox 3 5 000245984C00


  • Ticket #10979

    • Property Status changed from new to needs_review
    • Property Authors changed from to David Kirkby
  • Ticket #10979 – Description

    initial v1  
    6565I don't know if Alan Weger from IBM has any ideas on this. I've seen this error message many times now, and it really is a major headache to getting Sage to build on AIX.
     67For GNU patch at least, simply adding "-g0" to CFLAGS to disable debugging information solves it. A new package can be found at:
     71There are no library patches. The Mercurial patch attacked is for review purposes only. All changes have been committed to the Mercurial repository