madroach has quit [Read error: Connection reset by peer]
<tormen_>
2~
A1977494 has quit [Quit: Leaving.]
<gasche>
Sakarah: you should use a .dynlib file that names the module to include in the corresponding .cmxs
<Sakarah>
But the problem is Genlex is a standard module not one of mine
<gasche>
.mldylib, sorry
<gasche>
hm
A1977494 has joined #ocaml
octachron has quit [Ping timeout: 264 seconds]
<gasche>
Sakarah: I just tried to do what you want, and it fails on my machine because the standard library does not seem to distribute the .o for the standard modules
yegods has quit [Remote host closed the connection]
<gasche>
(this is independent of ocamlbuild)
<gasche>
does running "ocamlopt.opt -shared genlex.cmx -o test.cmxs" work on your system?
TheLemonMan has joined #ocaml
<gasche>
(the way I got ocamlbuild to add genlex.cmx at linking time was, in myocamlbuild.ml: flag ["file:test.cmxs"] (S[A "genlex.cmx"]))
octachron has joined #ocaml
<Sakarah>
if i execute ocamlopt like you said there is the missing .o problem
<Sakarah>
gcc: error: /usr/lib/ocaml/genlex.o: Aucun fichier ou dossier de ce type
<Sakarah>
File "caml_startup", line 1:
<Sakarah>
Error: Error during linking
<MercurialAlchemi>
how do you tell oasis to build your project with a backtrace?
<gasche>
(in ocamlbuild, "-tag debug")
<gasche>
adding "true: debug" in _tags should do it
<gasche>
of course you may use oasis with another build system
walter|r has joined #ocaml
copy` has joined #ocaml
Sakarah has quit [Ping timeout: 244 seconds]
Sakarah has joined #ocaml
<Sakarah>
well in fact the required functions are all in stdlib.a and not in genlex.o as ocamlopt expect
<Sakarah>
can we force ocamlopt to search compiled functions in a custom file ?
<gasche>
are you sure you want to link stdlib modules in a .cmxs file?
<gasche>
because you could as well delay the linking of stdlib to the consumer application, couldn't you?
<gasche>
(warning: I don't know much about native dynamic linking)
<Sakarah>
That is what i thought initially
<Sakarah>
the problem is when you compile in native code the unused functions of stdlib.a are discarded
<gasche>
-linkall may be your friend then
<malc_``>
gasche: -ccopt -Wl,-E
<gasche>
ah
<MercurialAlchemi>
gasche: thx
<gasche>
MercurialAlchemi: for ocamlbuild feel free to use "ocamlbuild -documentation" and search its output for the name of tags to enable stuff
<gasche>
malc_``: if "-ccopt -Wl,-E" is indeed what solves this use-case, it would be good to document it somewhere
<gasche>
I wasn't able to find any documentation page that explains that it is the solution, it should come up if one looks for it
<gasche>
yep, but OCaml users may not know how to break this abstraction boundary
<gasche>
a note in the manual could help
<gasche>
(for example around the documentation of the -linkall option, or where the role of .a files during compilation is described)
yegods has joined #ocaml
<gasche>
(I'm trying to encourage whoever understands these issues better to act on this problem that is offered and submit a PR somewhere to improve documentation)
<gasche>
(but this probably imples checking that it works for Sakarah first)
kushal has joined #ocaml
<Sakarah>
gasche: With -linkall it seems to work quite well and I think this is a really better design than relying on plugin creators to load their chunk of standard lib
<Sakarah>
so thanks a lot
<gasche>
you're welcome
<gasche>
I don't understand the issues very well myself, so I'll create a small repro-case and check with malc_`` that I have the story right
<gasche>
dinosaure: thanks for the journal comment (I hadn't seen it while writing mine so there is overlap, but well)
kushal has quit [Ping timeout: 264 seconds]
Sakarah has quit [Ping timeout: 240 seconds]
Algebr` has quit [Remote host closed the connection]
Algebr` has joined #ocaml
Sorella has joined #ocaml
Kakadu has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
Sakarah has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
Sakarah has quit [Ping timeout: 260 seconds]
jonasen_ has joined #ocaml
jonasen has quit [Ping timeout: 272 seconds]
octachron_ has joined #ocaml
octachron has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sdothum has joined #ocaml
octachron_ has quit [Quit: Leaving]
malc_`` has left #ocaml ["ERC (IRC client for Emacs 25.0.50.2)"]
lyxia has quit [Quit: WeeChat 1.5]
MercurialAlchemi has quit [Ping timeout: 244 seconds]
lyxia has joined #ocaml
MercurialAlchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 244 seconds]
manizzle has quit [Ping timeout: 246 seconds]
walter|r has quit [Remote host closed the connection]
jonasen_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yegods has quit []
d0nn1e has quit [Ping timeout: 264 seconds]
d0nn1e has joined #ocaml
walter|r has joined #ocaml
tane has quit [Ping timeout: 244 seconds]
jnavila has quit [Quit: Konversation terminated!]
Algebr` has joined #ocaml
ygrek has joined #ocaml
walter|r has quit [Remote host closed the connection]
A1977494 has quit [Remote host closed the connection]
silver has quit [Quit: rakede]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
tmtwd_ has quit [Ping timeout: 244 seconds]
tmtwd has joined #ocaml
wolfcore has quit [Ping timeout: 276 seconds]
wolfcore has joined #ocaml
Kakadu has quit [Remote host closed the connection]
darkf has joined #ocaml
madroach_ has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
jolabrycol has left #ocaml ["Leaving"]
Simn has quit [Quit: Leaving]
<Algebr`>
can't seem to get ppx_conv_type to install
<Algebr`>
for 4.03.0, # Error: Signature mismatch: # [...] # unit -> deriver # Command exited with code 2.