NetBSD 1.6 - need to define _STRUCT_TIMESPEC

2004-03-02 Thread Nick Kostirya
If to define _STRUCT_TIMESPEC, then compilation is successfully.



% make test
perl t/harness --gc-debug --running-make-test  -b t/op/*.t t/pmc/*.t
t/native_pbc/*.t imcc/t/*/*.t t/src/*.t
t/op/00ff-dos...ok
t/op/00ff-unix..ok
t/op/arithmeticsok
t/op/basic..ok
t/op/bitwiseok
t/op/callingok
t/op/comp...ok
t/op/conv...ok
t/op/debuginfo..ok
3/3 skipped: getline/setline changes not finished
t/op/gc.ok
t/op/globalsok
t/op/hacks..ok
2/2 skipped: various reasons
t/op/ifunless...ok
t/op/info...ok
t/op/integerok
t/op/interp.ok
t/op/jitok
t/op/jitn...ok
t/op/lexicals...ok
t/op/macro..ok
1/16 skipped: various reasons
t/op/number.ok
t/op/rx.ok
1/23 skipped: various reasons
t/op/stacks.ok
t/op/string.ok
t/op/time...ok
t/op/trans..ok
t/op/types..ok
t/pmc/array.ok
t/pmc/boolean...ok
t/pmc/coroutine.ok
t/pmc/delegate..ok
t/pmc/dumperok
t/pmc/env...ok
t/pmc/eval..ok
t/pmc/exception.ok
t/pmc/float.ok
t/pmc/freezeok
t/pmc/intlist...ok
t/pmc/iook
1/21 skipped: various reasons
t/pmc/iter..ok
1/9 skipped: various reasons
t/pmc/key...ok
t/pmc/managedstruct.ok
t/pmc/mmd...ok
t/pmc/multiarrayok
t/pmc/nci...i386 JIT CPU
.so SO extension
t/pmc/nci...ok
29/29 skipped: various reasons
t/pmc/object-meths..ok
t/pmc/objects...ok
t/pmc/orderedhash...ok
t/pmc/perlarray.ok
t/pmc/perlhash..ok
t/pmc/perlint...ok
t/pmc/perlnum...ok
t/pmc/perlstringok
t/pmc/pmc...ok
t/pmc/prop..ok
t/pmc/ref...ok
t/pmc/sarrayok
t/pmc/scratchpadok
t/pmc/signalskipped
all skipped: No events yet
t/pmc/sort..ok
t/pmc/sub...ok
t/pmc/threads...skipped
all skipped: No threading yet or test not enabled for 'netbsd'
t/pmc/timer.ok
5/7 skipped: various reasons
t/pmc/tqueueok
t/native_pbc/integerok
t/native_pbc/number.ok
imcc/t/imcpasm/cfg..ok
imcc/t/imcpasm/opt0.ok
imcc/t/imcpasm/opt1.ok
1/49 skipped: various reasons
imcc/t/imcpasm/opt2.ok
5/5 skipped: various reasons
imcc/t/imcpasm/optc.ok
6/6 skipped: various reasons
imcc/t/imcpasm/pcc..ok
10/10 skipped: various reasons
imcc/t/imcpasm/sub..ok
imcc/t/reg/spillok
imcc/t/syn/bsr..ok
imcc/t/syn/clashok
imcc/t/syn/constok
imcc/t/syn/eval.ok
imcc/t/syn/file.ok
1/12 skipped: various reasons
imcc/t/syn/keyedok
imcc/t/syn/labels...ok
imcc/t/syn/macrook
imcc/t/syn/namespaceok
imcc/t/syn/pcc..ok
2/31 skipped: various reasons
imcc/t/syn/pod..ok
imcc/t/syn/scopeok
t/src/basic.ok
t/src/exit..ok
t/src/extendok
t/src/hash..ok
t/src/intlist...ok
t/src/iook
1/20 skipped: various reasons
t/src/list..ok
t/src/manifest..ok
t/src/sprintf...ok
All tests successful, 2 tests and 69 subtests skipped.
Files=95, Tests=1370, 293 wallclock secs (30.29 cusr + 15.31 csys = 45.60
CPU)
% make testexec
echo 'print "Hello World\n"' > hello.pasm
echo  'end' >> hello.pasm
./parrot -o hello.pbc hello.pasm
./parrot -o hello.o hello.pbc
make EXEC=hello exec
/house/kostirya/parrot/src/exec_start.c
cc -o
hello -Wl,-R/usr/pkg/lib  -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/local/lib 
-L/usr/pkg/lib  -g hello.o src/exec_start.o blib/lib/libparrot.a -lm -lcrypt
./hello
Hello World
%






Re: NetBSD 1.6 - need to define _STRUCT_TIMESPEC

2004-03-03 Thread Leopold Toetsch
Nick Kostirya <[EMAIL PROTECTED]> wrote:
> If to define _STRUCT_TIMESPEC, then compilation is successfully.

Does NetBSD have pthread? Can you try to create a hint file netbsd.pl.

s. config/init/hints/*.pl

> % make test
> All tests successful, 2 tests and 69 subtests skipped.

Good.

> % make testexec
> ./hello
> Hello World

Even better.

leo


Re: NetBSD 1.6 - need to define _STRUCT_TIMESPEC

2004-03-04 Thread Nick Kostirya

> > If to define _STRUCT_TIMESPEC, then compilation is successfully.
>
> Does NetBSD have pthread? Can you try to create a hint file netbsd.pl.

NetBSD 1.6 do not have pthread, native thread support has been added into
NetBSD 2.0.
Can one use http://www.gnu.org/software/pth/pth.html (as mysql :-) ).

Where may one define _STRUCT_TIMESPEC  in config/*? It's need for
include/parrot/thread.h .
Can one use config/gen/platform/netbsd/thread.h ?



Wiil  Configure.pl have options to build with or with out  threads?
And how can one detect that parrot has been built with threads from
/t/pmc/threads.t?


> s. config/init/hints/*.pl
>
> > % make test
> > All tests successful, 2 tests and 69 subtests skipped.
>
> Good.
>
> > % make testexec
> > ./hello
> > Hello World
>
> Even better.
>
> leo
>
>
>






Re: NetBSD 1.6 - need to define _STRUCT_TIMESPEC

2004-03-04 Thread Leopold Toetsch
Nick Kostirya <[EMAIL PROTECTED]> wrote:

> Can one use http://www.gnu.org/software/pth/pth.html (as mysql :-) ).

PTH is better then nothing, albeit it's lacking preemption.

> Can one use config/gen/platform/netbsd/thread.h ?

Yes. The configure system copies these file together, *if* they exist
for the platform. If not fallbacks in generic/ are used.

For 1.6 vs 2.0 you might need some additional work e.g. hack
platform.pl to select files from either

  netbsd/1.6/
  netbsd/2.0

or common code in netbsd.

> Wiil  Configure.pl have options to build with or with out  threads?

If threads are avaiable they are used. Not using threads buys us nothing
except less functionality. With threads compiled into Parrot doesn't
get slower (not like Perl5's 10%-30% speed penalty).

> And how can one detect that parrot has been built with threads from
> /t/pmc/threads.t?

Enable your platform in the list near the top of the file and run the
tests. If they succeed (and not all are skipped) all is fine.

leo