What's your environment look like? You don't have CC set anywhere do you?
Scott Spyrison wrote:
Hi all,
I'm feeling a bit silly here, can't seem to get the latest build to work. Thought i'd
post and hopefully someone will point out an obvious mistake that I've missed. Here's my
current uname and output of cc -V. I installed the b23 of Solaris Express a while ago,
and selected the "Entire Distribution" patch cluster.
SunOS opensas 5.11 snv_23 i86pc i386 i86pc
cc: Sun C 5.7 Patch 117837-04 2005/05/11 (installed from
sunstudio10-ii-20050912-sol-x86.tar.bz2 image)
Per the docs, so far I have:
1) Downloaded opensolaris-closed-bins-20051116.i386.tar.bz2,
opensolaris-src-20051116.tar.bz2 and SUNWonbld-20051116.i386.tar.bz2
2) Uncompressed archives to /mnt/testws
3) Installed SUNWonbld
4) copied and updated opensolaris.sh with the following:
GATE=testws
CODEMGR_WS="/mnt/$GATE"
So, because I can't seem to compile anything yet, I follow the instructions to
build vi hoping to debug:
cd /mnt/testws
bldenv -d ./opensolaris.sh
cd $SRC/cmd/vi
dmake all
It dies here:
cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none
-c ex.c
"ex.c", line 170: assignment type mismatch:
int "=" struct sgttyb {char sg_ispeed, char sg_ospeed, char sg_erase,
char sg_kill, int sg_flags}
cc: acomp failed for ex.c
*** Error code 2
dmake: Fatal error: Command failed for target `ex.o'
Current working directory /mnt/testws/usr/src/cmd/vi/port
Running the nightly script never gets past the Tools section, and if I try and
manually build something in the tools dir I get (for example):
cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%none
-v -M/mnt/testws/usr/src/cmd/mapfile_noexstk
-M/mnt/testws/usr/src/cmd/mapfile_noexdata -o cw cw.c
"cw.c", line 1273: undefined symbol: DEFAULT_CC_DIR
"cw.c", line 1273: warning: improper pointer/integer combination: op "="
(E_BAD_PTR_INT_COMBINATION)
"cw.c", line 1274: undefined symbol: DEFAULT_GCC_DIR
"cw.c", line 1274: warning: improper pointer/integer combination: op "="
(E_BAD_PTR_INT_COMBINATION)
"cw.c", line 1275: undefined symbol: DEFAULT_CPLUSPLUS_DIR
"cw.c", line 1275: warning: improper pointer/integer combination: op "="
(E_BAD_PTR_INT_COMBINATION)
"cw.c", line 1276: undefined symbol: DEFAULT_GPLUSPLUS_DIR
"cw.c", line 1276: warning: improper pointer/integer combination: op "="
(E_BAD_PTR_INT_COMBINATION)
cc: acomp failed for cw.c
*** Error code 2
dmake: Fatal error: Command failed for target `cw'
Current working directory /mnt/testws/usr/src/tools/cw
Anyway, is my mistake apparent or does anyone have a suggestion? Thanks in
advance...
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
[email protected]
--
stephen lau // [EMAIL PROTECTED] | 650.786.0845 | http://whacked.net
opensolaris // solaris kernel development
_______________________________________________
opensolaris-help mailing list
[email protected]