AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080925112424.5361c1a3@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<larry.scheer@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E056C9844@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 25 Sep 2008 11:25:13 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Larry Scheer" <larry.scheer@onstor.com>
Subject: Re: Prom build tools requirements and errors
Message-ID: <20080925112513.404764d5@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E056C9844@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E0BBAE101@onstor-exch02.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E056C9844@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

How 'bout fixing the Linux build first?  Zing!

On Thu, 25 Sep 2008 11:00:51 -0700 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> That is just freaking scary! 
> Brian,
>    I've wanted to clean up the PROM Makefiles and make them conform to
> the way builds are done in the nfx-tree since fall of 2004. I never
> got the green light to do this from management.  When may I do this?
> It will not be a trivial change. 
> 
> Larry
> 
> _____________________________________________
> From: Brian Stark 
> Sent: Thursday, September 25, 2008 10:21 AM
> To: Bill Fisher; Warren Gale
> Cc: Andy Sharp; Larry Scheer
> Subject: RE: Prom build tools requirements and errors
> 
> I've run into this problem before.  When I'm using a bash shell, I see
> the problem.  When I then go to csh and do a make, it works fine.  Not
> sure why...
> 
> 
> _____________________________________________
> From: Bill Fisher 
> Sent: Wednesday, September 24, 2008 6:06 PM
> To: 'warren.gale@onstor.net'
> Cc: 'bfisher@onstor.net'; Andy Sharp; Brian Stark;
> 'larry.sheen@onstor.net'
> Subject: Prom build tools requirements and errors
> 
> 
> 
> _____________________________________________
> From: Bill Fisher 
> Sent: Wednesday, September 24, 2008 5:54 PM
> To: Warren Gale
> Cc: 'bfisher@onstor.com'; 'larry.sheer@onstor.com'; Andy Sharp; Brian
> Stark
> Subject: 
> 
> Warren:
> 
> I am getting the following errors:
> 
> This implies that the ${CC} is getting redefined to "gcc" somewhere
> prior to this point.
> 
> What system did you build the prom/cg directory on? 
> 
> 
> Thanks,
> 
> *	Bill
> *	====================
> 
> bfisher-linux:bfisher 329>pwd
> /homes/bfisher/work/fisher-W1-dev/dev/prom/cg
> bfisher-linux:bfisher 330>vi Makefile
> bfisher-linux:bfisher 331>ls
> Build                  Makefile.diag.sibyte     Makefile.shmem
> prom.ld.script.sibyte
> code                   Makefile.fc              Makefile.ssc
> prom.ld.script.sibyte_bc
> diag.ld.script         Makefile.fp              Makefile.ssc_mgmt
> prom.ld.script.sibyte_cg
> diag.ld.script.sibyte  Makefile.prom.r7000      Makefile.tmfc
> prom.ssc_mgmt.ld.script
> fp.ld.cmd              Makefile.prom.r9000      Makefile.txrx
> TAGS
> Includes               Makefile.prom.sibyte     prom-binaries
> target.mk
> Install                Makefile.prom.sibyte_bc  prom.ld.script
> Tools
> Makefile               Makefile.prom.sibyte_cg  prom.ld.script.r9k
> tree-name
> Makefile.diag.r7000    Makefile.prom.ssc_mgmt
> prom.ld.script.r9k_eval txrx.ld.cmd
> bfisher-linux:bfisher 332>make
> make[1]: Entering directory
> `/homes/bfisher/work/fisher-W1-dev/dev/prom/cg/code/sm-appids'
> make[1]: Leaving directory
> `/homes/bfisher/work/fisher-W1-dev/dev/prom/cg/code/sm-appids'
> make -C ./code/prom-entry
> make[1]: Entering directory
> `/homes/bfisher/work/fisher-W1-dev/dev/prom/cg/code/prom-entry'
> /bin/sh -ec 'gcc -M -I/usr/include -I../../Includes
> -I../../Includes/exports/PROM_SIBYTE_CG -DLANGUAGE_C  -mlong-calls
> -DPROM -Werror -Wno-unused -g  \
> -DPROM_SIBYTE_CG -DLINUX_TEST mips.S' >
> ../../Tools/Depends/PROM_SIBYTE_CG/prom-entry-mips.d.tmp
> cc1: error: invalid option `long-calls'
> make[1]: *** [../../Tools/Depends/PROM_SIBYTE_CG/prom-entry-mips.d]
> Error 1
> make[1]: Leaving directory
> `/homes/bfisher/work/fisher-W1-dev/dev/prom/cg/code/prom-entry'
> make: *** [Tools/Objects/PROM_SIBYTE_CG/prom-entry.o] Error 2
> bfisher-linux:bfisher
> 333>/usr/local/sbtools/x86-linux-rh6.0/mips64-sb1sim-2.3.1/bin/mips64-sb
> 1sim-gcc -M -I/usr/include -I../../Includes
> -I../../Includes/exports/PROM_SIBYTE_CG -DLANGUAGE_C  -mlong-calls
> -DPROM -Werror -Wno-unused -g -DPROM_SIBYTE_CG -DLINUX_TEST mips.S
> >/tmp/eh
> mips64-sb1sim-gcc: mips.S: No such file or directory
> mips64-sb1sim-gcc: No input files
> bfisher-linux:bfisher
> 334>/usr/local/sbtools/x86-linux-rh6.0/mips64-sb1sim-2.3.1/bin/mips64-sb
> 1sim-gcc -M -I/usr/include -I../../Includes
> -I../../Includes/exports/PROM_SIBYTE_CG -DLANGUAGE_C  -mlong-calls
> -DPROM -Werror -Wno-unused -g -DPROM_SIBYTE_CG -DLINUX_TEST
> code/prom-entry/mips.S >/tmp/eh
> code/prom-entry/mips.S:19:24: nfx-target.h: No such file or directory
> code/prom-entry/mips.S:21:22: sys/mips.h: No such file or directory
> In file included from code/prom-entry/mips.S:22:
> code/prom-pmon/pmon.h:22:22: sys/mips.h: Success
> code/prom-entry/mips.S:23:27: exports/hwMap.h: No such file or
> directory code/prom-entry/mips.S:25:32: exports/promio-api.h: No such
> file or directory
> code/prom-entry/mips.S:26:26: sys/r9k-regs.h: No such file or
> directory code/prom-entry/mips.S:189:32: exports/jmptbl-api.h: No
> such file or directory
> bfisher-linux:bfisher 335>vi code/prom-entry/Makefile
> bfisher-linux:bfisher 336>pwd
> /homes/bfisher/work/fisher-W1-dev/dev/prom/cg
> bfisher-linux:bfisher 337>ls
> Build                  Makefile.diag.sibyte     Makefile.shmem
> prom.ld.script.sibyte
> code                   Makefile.fc              Makefile.ssc
> prom.ld.script.sibyte_bc
> diag.ld.script         Makefile.fp              Makefile.ssc_mgmt
> prom.ld.script.sibyte_cg
> diag.ld.script.sibyte  Makefile.prom.r7000      Makefile.tmfc
> prom.ssc_mgmt.ld.script
> fp.ld.cmd              Makefile.prom.r9000      Makefile.txrx
> TAGS
> Includes               Makefile.prom.sibyte     prom-binaries
> target.mk
> Install                Makefile.prom.sibyte_bc  prom.ld.script
> Tools
> Makefile               Makefile.prom.sibyte_cg  prom.ld.script.r9k
> tree-name
> Makefile.diag.r7000    Makefile.prom.ssc_mgmt
> prom.ld.script.r9k_eval txrx.ld.cmd
> bfisher-linux:bfisher 338>l Tools
> bash: l: command not found
> bfisher-linux:bfisher 339>alias l="ls -alrt"
> bfisher-linux:bfisher 340>l Tools
> total 144
> -r--r--r--  1 bfisher software  1714 Sep 23 11:54 create_version.pl
> -r--r--r--  1 bfisher software 11172 Sep 23 11:54 defs.mk
> -r--r--r--  1 bfisher software  4277 Sep 23 11:54 doMyCkSum.c
> -r--r--r--  1 bfisher software   450 Sep 23 11:54 export.mk
> -r--r--r--  1 bfisher software   957 Sep 23 11:54 fix_deps.pl
> -r--r--r--  1 bfisher software   940 Sep 23 11:54 lib.mk
> -r--r--r--  1 bfisher software 18351 Sep 23 11:54 mkesm.pl
> -r--r--r--  1 bfisher software  4599 Sep 23 11:54 module.mk
> -r--r--r--  1 bfisher software   486 Sep 23 11:54 prog.mk
> -r--r--r--  1 bfisher software  3362 Sep 23 11:54 suffix.mk
> drwxr-xr-x  3 bfisher software  1024 Sep 24 17:07 Objects
> drwxr-xr-x  3 bfisher software  1024 Sep 24 17:07 Depends
> drwxr-xr-x  5 bfisher software  8192 Sep 24 17:07 .
> drwxr-xr-x  3 bfisher software  1024 Sep 24 17:07 Versions
> drwxr-xr-x  7 bfisher software  8192 Sep 24 17:07 ..
> bfisher-linux:bfisher 341>vi Tools/suffix.mk
