* [9fans] plan 9 ports churn
@ 2004-04-24 5:03 Russ Cox
2004-04-26 11:52 ` Bengt Kleberg
0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2004-04-24 5:03 UTC (permalink / raw)
To: 9fans
There's a lot of new stuff in the Plan 9 ports tarball/CVS
but the downside is that I don't know how well it
builds on systems other than FreeBSD and Linux.
(Actually going through all the motions takes me
a full day, and I just can't justify doing it again so soon.)
If you're not in the mood for slightly untested stuff,
don't update for a while.
Russ
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] plan 9 ports churn
2004-04-24 5:03 [9fans] plan 9 ports churn Russ Cox
@ 2004-04-26 11:52 ` Bengt Kleberg
2004-04-27 12:44 ` Bengt Kleberg
0 siblings, 1 reply; 3+ messages in thread
From: Bengt Kleberg @ 2004-04-26 11:52 UTC (permalink / raw)
To: 9fans
Russ Cox wrote:
> There's a lot of new stuff in the Plan 9 ports tarball/CVS
> but the downside is that I don't know how well it
> builds on systems other than FreeBSD and Linux.
plan9-20040424.tar.gz does not build ''out-of-the-box'' on solaris-2.8
1
the file plan9/src/libmach/SunOS.c does not exist. tentative fix by
copying Darwin.c to SunOS.c
2
twice i get the following ''for loop'' in the ''install'' script output:
for i in port sun4u
do
(cd $i; mk <something>)
done
<commands>
sh: sun4u: does not exist
there are 3 places in the directory structure where this might happen:
./src/libmp
./src/libsec
./acid
in all 3 places the ''sun4u'' makes no sense but replace it with
''sparc'' and things seems logical. to achive this replace ''uname -m''
with ''uname -p'' in plan9/src/mkhdr:2 .
after doing that it is also neccessary to rename all the files with
sun4u in their names:
cp ./plan9/src/libthread/asm-SunOS-sun4u.s
./plan9/src/libthread/asm-SunOS-sparc.s
cp ./plan9/src/libthread/sun4u.c ./plan9/src/libthread/sparc.c
cp ./plan9/src/lib9/getcallerpc-sun4u.s ./plan9/src/lib9/getcallerpc-sparc.s
cp ./plan9/src/lib9/tas-sun4u.s ./plan9/src/lib9/tas-sparc.s
cp ./plan9/unix/make/Make.SunOS-sun4u ./plan9/unix/make/Make.SunOS-sparc
cp ./plan9/unix/make/Make.SunOS-sun4u-cc
./plan9/unix/make/Make.SunOS-sparc-cc
cp ./plan9/unix/make/Make.SunOS-sun4u-gcc
./plan9/unix/make/Make.SunOS-sparc-gcc
3
i get a loader error, when plan9/src/libthread/sched.c calls
_threadstacklimit() which is in plan9/src/libthread/386.c, but not in
plan9/src/libthread/sparc.c. ''solved'' by adding empty functions to
plan9/src/libthread/sparc.c
void
_threadinswitch(int enter)
{
USED(enter);
}
void
_threadstacklimit(void *addr)
{
USED(addr);
}
bengt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] plan 9 ports churn
2004-04-26 11:52 ` Bengt Kleberg
@ 2004-04-27 12:44 ` Bengt Kleberg
0 siblings, 0 replies; 3+ messages in thread
From: Bengt Kleberg @ 2004-04-27 12:44 UTC (permalink / raw)
To: 9fans
Bengt Kleberg wrote:
> Russ Cox wrote:
>
>> There's a lot of new stuff in the Plan 9 ports tarball/CVS
>> but the downside is that I don't know how well it
>> builds on systems other than FreeBSD and Linux.
>
>
i have a suggestion on how to make ''9c'' perform as intended on sunos,
with sun-cc. the ''uname -p'' change is only there to be consistent with
the changes to $OBJTYPE that i have already made in other places. if
sun4u is better value than sparc this change should be ignored:
*** /tmp/plan9/bin/9c Sat Apr 24 07:03:32 2004
--- /home/eleberg/private/plan9/bin/9c Tue Apr 27 14:30:05 2004
***************
*** 16,22 ****
cflags="$ngflags -ggdb"
}
! tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
case "$tag" in
*BSD*) usegcc ;;
*Darwin*) usegcc
--- 16,22 ----
cflags="$ngflags -ggdb"
}
! tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -p`}-${CC9:-cc}"
case "$tag" in
*BSD*) usegcc ;;
*Darwin*) usegcc
***************
*** 45,51 ****
case "$tag" in
*SunOS*-cc)
! exec $cc -I$PLAN9/include $cflags "$@" |
/bin/sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g'
;;
*)
--- 45,51 ----
case "$tag" in
*SunOS*-cc)
! exec $cc -I$PLAN9/include $cflags "$@" 2>&1 |
/bin/sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g'
;;
*)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-27 12:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-24 5:03 [9fans] plan 9 ports churn Russ Cox
2004-04-26 11:52 ` Bengt Kleberg
2004-04-27 12:44 ` Bengt Kleberg
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).