git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [FYI] How I compile on IRIX 6.5 with the MIPSpro compiler and ksh
@ 2008-08-18 22:55 Brandon Casey
  2008-08-18 23:02 ` [PATCH] Makefile: add section for SGI IRIX Brandon Casey
                   ` (7 more replies)
  0 siblings, 8 replies; 28+ messages in thread
From: Brandon Casey @ 2008-08-18 22:55 UTC (permalink / raw)
  To: Git Mailing List


This email describes how I have successfully compiled git on IRIX6.5 with the
native MIPSpro compiler version 7.4.4m and successfully run nearly all of the
tests using the Korn shell.

A series of 7 patches will follow this email. The patches work around a couple
of flaws in the IRIX c99 compiler, and the not-quite-recent build environment.

A build script is provided at the end of this email.

The GIT_SKIP_TESTS environment variable was used to skip tests which still fail.
The tests which still fail do so because of an ancient iconv, with one exception:
the t5000 tests which fail are due to the installed gnu tar being too old.

Two lingering concerns:
  1) Building with -Ofast produced an executable which segfaulted and could not
     pass the tests.
  2) Building without THREADED_DELTA_SEARCH=1 produced an executable which
     segfaulted and could not pass the tests.

I have no debugger.

Otherwise, I've been using this executable somewhat and have not experienced any
problems. Maybe it will be useful to others.

 Makefile                      |   12 ++++++++++++
 git-compat-util.h             |   12 +++++++++++-
 t/lib-git-svn.sh              |    3 +++
 t/t1002-read-tree-m-u-2way.sh |   10 ++++++----
 t/t9301-fast-export.sh        |    1 -
 t/test-lib.sh                 |    2 +-
 templates/Makefile            |    2 +-
 unpack-trees.c                |    3 ++-
 8 files changed, 36 insertions(+), 9 deletions(-)

-brandon


#!/bin/sh

GIT_SKIP_TESTS='
   t3900.1[0-289] t3900.2[023]
   t3901.*
   t5000.1[0-24-689] t5000.2[01]
   t5100.[56] t5100.1[02]
   t9301.4
'

export GIT_SKIP_TESTS

# NO_C99_FORMAT is required since this c99 compiler does not understand %td,
# and probably not %zu.

exec gmake \
    CC=c99 \
    CFLAGS='-n32 -O2' \
    SHELL_PATH='/bin/ksh' \
    TAR=gtar \
    NO_C99_FORMAT=1 \
    NO_CURL=1 \
    NO_OPENSSL=1 \
    NO_TCLTK=1 \
    NO_PERL_MAKEMAKER=1 \
    THREADED_DELTA_SEARCH=1

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2008-08-22 21:13 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 22:55 [FYI] How I compile on IRIX 6.5 with the MIPSpro compiler and ksh Brandon Casey
2008-08-18 23:02 ` [PATCH] Makefile: add section for SGI IRIX Brandon Casey
2008-08-18 23:05 ` [PATCH] git-compat-util.h: adjust for SGI IRIX 6.5 Brandon Casey
2008-08-18 23:09 ` [PATCH] unpack-trees.c: work around run-time array initialization flaw on " Brandon Casey
2008-08-18 23:14 ` [PATCH] templates/Makefile: work around SGI install which assumes / if ROOT not defined Brandon Casey
2008-08-18 23:37   ` Junio C Hamano
2008-08-19  0:52     ` Brandon Casey
2008-08-22  0:31     ` [PATCH] templates/Makefile: install is unnecessary, just use mkdir -p Brandon Casey
2008-08-18 23:16 ` [PATCH] test-lib.sh: work around ksh's trap shortcomings Brandon Casey
2008-08-18 23:48   ` Junio C Hamano
2008-08-19  0:06     ` Brandon Casey
2008-08-19  7:39       ` Junio C Hamano
2008-08-19 14:59         ` Brandon Casey
2008-08-19  1:27     ` Brandon Casey
2008-08-20  0:19       ` Brandon Casey
2008-08-20 11:36         ` Mike Ralphson
2008-08-18 23:17 ` [PATCH] t1002-read-tree-m-u-2way.sh: use 'git diff -U0' rather than 'diff -U0' Brandon Casey
2008-08-18 23:20 ` [PATCH] t9301-fast-export.sh: don't unset config variable while we're skipping test 4 Brandon Casey
2008-08-19  0:32   ` Junio C Hamano
2008-08-19  0:39     ` Brandon Casey
2008-08-22  0:48     ` [PATCH] t9301-fast-export: move unset of config variable into its own test function Brandon Casey
2008-08-22  8:18       ` Junio C Hamano
2008-08-22  8:23         ` Junio C Hamano
2008-08-22  9:02           ` Johannes Sixt
2008-08-22 21:11             ` Junio C Hamano
2008-08-18 23:51 ` [FYI] How I compile on IRIX 6.5 with the MIPSpro compiler and ksh Brandon Casey
2008-08-19  1:18   ` Boyd Lynn Gerber
2008-08-19  1:25     ` Brandon Casey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).