Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2008-11-14 13:42:00
Size: 2638
Editor: anonymous
Comment: converted to 1.6 markup
Revision 5 as of 2022-04-05 01:22:00
Size: 0
Editor: mkoeppe
Comment: outdated
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
'''Note by mabshoff''': The remarks below by Bryan Newbold do not reflect the situation with Sage 3.0.2. Many of the issues below have already been fixed due to the porting work to a pure Solaris build, i.e. without the GNU tools.


== Notes on building Sage 2.10.2 by Bryan Newbold ==

Here are some preliminary notes for getting sage-2.10.2 to compile:
{{{
* replace path to bash in scripts (or temporarily ln -s /usr/local/bin/bash /bin/bash)
* remove "-i" option from tar commands in scripts (mostly local/bin/sage-spkg)

to make *freebsd version:
    extract origninal .tar
    enter directory and sed all scripts:
        /usr/bin/sed -i "" -e 's|#!/bin/bash|#!/usr/bin/env bash|g' sage* spkg*
        /usr/bin/sed -i "" -e 's| tar | gtar |g' sage* spkg*
    patch sage-spkg from /files/
    patch sage-env from /files/
    then re-tar:
        tar cf sage_scripts-2.10.3freebsd.spkg sage_scripts-2.10.3freebsd


for eclib:
    /usr/bin/sed -i "" -e 's| make | gmake |g' spkg-*
    /usr/bin/sed -i "" -e 's| make | gmake |g' `find . -iname Makefile`
    vim src/procs/Makefile #(get last make by hand)
    tar cf eclib-20080127.p1freebsd.spkg eclib-20080127.p1freebsd

for freetype:
    vim src/configure (make -> gmake)

for fortran:
    requires gfortran, g95, or g77: pkg_add -r g95
    f77 also possible with SAGE_FORTRAN?

for lapack:
    add ARCHIVER=ar to src/Makefile and replace ARCH with ARCHIVER in src/SRC/Makefile
}}}

== Notes on building Sage 2.9.1.1 ==

Here are some even older notes from MichaelAbshoff:

The below is a little old (while I am posting this we are working on 2.10.3), but it should get people up to speed. If you have fixes for additional issues please open a trac ticket, bonus points for patches.

Sage 2.9.1.1 build notes on FreeBSD 6.2 Release

 * install bash
 * install gtar
 * install gmake

link bash to /bin,
link gtar as /bin/tar, i.e. before the bsd tar in /usr/bin
link gmake as /bin/gmake, i.e. before the bsd make in /usr/bin

 * Sage itself relies on GNU tar features
 * cremona relies on GNU make features
 * SAGE_FORTRAN needs to be set to /usr/bin/f77

Build Fixes:

 * ATLAS: -melf_i386 needs to be removed from LDFLAGS in Make.inc

 * Singular: cf_factor: wchar problems: <cwchar> uncomment line 249, 258, 259: using ::[wcstold|wcstoll|wcstoul] in case you use gcc 3.4. This somehow relates to the defines _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC and _GLICXX_C99_DYNAMIC. It seems to be ultimately caused by including iostream twice or maybe "iostream and iostream.h". "using namespace std" might also play a role.