<sladegen>
because root of toolchain is in /mnt/array1 ... it's mess because someone else made it and included some files which i do not want to overwrite in /
<asmanur>
hum
<sladegen>
asmanur: well there is no /usr/include here at all ;)
<asmanur>
and other implicit-defined functions are ?
<sladegen>
well: stat.c:49: warning: implicit declaration of function 'CAMLparam0'
<sladegen>
stat.c:50: warning: implicit declaration of function 'CAMLlocal5'
* sladegen
sighs
<asmanur>
hum
<sladegen>
it's gcc 4.1.1
<sladegen>
hum, exactly.
<asmanur>
sladegen: apparently, somehow the file doesn't include the caml-header memory.h where is defined CAMLparam0() (or CAMLparam0() is not defined in your memory.h)
<asmanur>
maybe you can fix it in a ad-hoc way ...
<sladegen>
btw, it did not like no ; after Begin_root(res) on line 46 in signals.c
<sladegen>
not sure if this ; is supposed to be there... but seeing it in other places and it went on after i placed it there.
<sladegen>
ok, will see.
<sladegen>
hmm... <lightbulb> perhaps i should put $CFLAGS after -I../../byterun :-o
<sladegen>
yay ;) thanks asmanur
<sladegen>
C is silly. unix sucks... sladegen idioten.
<asmanur>
:p
<asmanur>
C isn't silly.
ita has joined #ocaml
pants1 has quit [Connection timed out]
Tetsuo has joined #ocaml
bluestorm_ has joined #ocaml
Le-Chuck_ITA has joined #ocaml
<Le-Chuck_ITA>
Hi all
<ita>
Le-Chuck_ITA: hey
<Le-Chuck_ITA>
I was a great fan of ocaml some years ago, but time has passed and I don't remember many things
<Le-Chuck_ITA>
in particular: is there a simple pretty-printer/parser generator for data types?
<Le-Chuck_ITA>
maybe with camlp4
<Le-Chuck_ITA>
ita are you italian?
<ita>
Le-Chuck_ITA: no :-)
<Le-Chuck_ITA>
I mean: the ocaml toplevel can print values, and the ocaml compiler can read values
<Le-Chuck_ITA>
is there access to these two functions somewhere in the libs?
<flux>
I think the toplevel has some special information that comes from reading the interface files
<flux>
or some backdoor to the compiler in cases when that's not available..
<Le-Chuck_ITA>
and there is no tool capable of generating a parser and a pretty printer from a module?
<Le-Chuck_ITA>
even external
<flux>
there are some tools, perhaps in caml humps
<flux>
but they are somewhat primitive
<flux>
and can't tell characters and integers from each other
<flux>
well, there's only one tool I can think of (I don't remember its name, though), so you can drop the plurals there..
<Le-Chuck_ITA>
thanks
<flux>
so what are you doing?
<Le-Chuck_ITA>
I am pretty printing an AST by hand
<Le-Chuck_ITA>
implementing a printing function
<flux>
I've used sexplib to great effectiveness for serialising and unserialising datastructures
<flux>
for debugging purposes_
<flux>
?
<pango>
tywith ?
<flux>
yeah, tywith can do lots of that stuff too
<Le-Chuck_ITA>
tywith?
<Le-Chuck_ITA>
reading now :)
<Le-Chuck_ITA>
I see it's the tool at least for pretty printing
<flux>
btw, anyone heard any news on sexplib for 3.10.x?
<flux>
hm, what's this, sexplib 3.0.1..
<flux>
or atleast 3.0.0; humps says 3.0.1 but the real page says 3.0.0
<Le-Chuck_ITA>
thanks, tywith is exactly the tool I am looking for
<Le-Chuck_ITA>
I am happy to be back to caml :)
<Le-Chuck_ITA>
by the way is the ubuntu ocaml maintainer reading this channel?
<flux>
I don't think so
<Le-Chuck_ITA>
ok thanks
pants1 has joined #ocaml
* Yoric[DT]
would like 3.10 in Ubuntu, too.
<Yoric[DT]>
flux: so you suggest using sexplib ?
* Yoric[DT]
was essentially going to reimplement that stuff by hand.
Torment has joined #ocaml
<flux>
I've used sexplib to great effect, yes
<flux>
mostly for protocols on programs that are under development: much easier to what needs to go down the socket (or unix-domain-socket)
<Yoric[DT]>
fair enough
<Yoric[DT]>
I'm currently parsing/serializing s-expressions as comments in code.
<flux>
infact I wrote a sexplib-compatiblt s-expression-library for c++ also..
<Le-Chuck_ITA>
just a newbie question: how do I tell camlp4 to find camlp4 files in a local directory instead of /usr/lib/ocaml/.... ?
<Le-Chuck_ITA>
ehm
<Le-Chuck_ITA>
how do I tell OCamlMakefile
Jedai has quit [Read error: 110 (Connection timed out)]
<Le-Chuck_ITA>
hmm thanks anyway, got to run :)
Le-Chuck_ITA has left #ocaml []
screwt898 has quit [Remote closed the connection]
Abo-Marwan91 has quit [Remote closed the connection]
screwt898 has joined #ocaml
p_a_u_l has joined #ocaml
centrinia has joined #ocaml
pants1 has quit ["Leaving."]
ygrek has joined #ocaml
zulzul_ has joined #ocaml
schme` has joined #ocaml
asmanur has quit [Read error: 104 (Connection reset by peer)]
* Yoric[DT]
is now writing his own custom pre-processor largely without Camlp4.
<sladegen>
ay, another "problem", does ocaml support 'ARM926EJ-Sid(wb) rev 0 (v5l)' natively?
schme has quit [Connection timed out]
<Yoric[DT]>
What the heck is that ?
<Yoric[DT]>
A processor ?
<Yoric[DT]>
A combo processor + OS ?
<sladegen>
"gcc -c -DSYS_linux -o arm.o arm.S" doesn't love me, starting with: arm.S:112: Error: selected processor does not support `stfd f0,[sp,#-8]!'
<sladegen>
it's 'grep "^Proce" /proc/cpuinfo'
* Yoric[DT]
is too scared to answer. Even if he did know the answer, which he doesn't.
<sladegen>
heh, np, i have a feeling this qualifies for ocaml mailing list better ;)