* cvs ocaml build failing @ 2009-04-16 13:04 Joel Reymont 2009-04-16 16:16 ` [Caml-list] " Stéphane Glondu 0 siblings, 1 reply; 4+ messages in thread From: Joel Reymont @ 2009-04-16 13:04 UTC (permalink / raw) To: O'Caml Mailing List ./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o ocamlbuild/ocamlbuild.native Undefined symbols: "_unix_setgroups", referenced from: _camlUnix__215 in unix.a(unix.o) _unix_setgroups$non_lazy_ptr in unix.a(unix.o) "_unix_initgroups", referenced from: _camlUnix__215 in unix.a(unix.o) _unix_initgroups$non_lazy_ptr in unix.a(unix.o) ld: symbol(s) not found collect2: ld returned 1 exit status File "caml_startup", line 1, characters 0-1: Error: Error during linking Exit code 2 while executing this command: ./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o ocamlbuild/ocamlbuild.native --- Mac hacker with a performance bent http://linkedin.com/in/joelreymont ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] cvs ocaml build failing 2009-04-16 13:04 cvs ocaml build failing Joel Reymont @ 2009-04-16 16:16 ` Stéphane Glondu [not found] ` <be68c3dc0904160930g106490b6r44b2dbff8e551daf@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: Stéphane Glondu @ 2009-04-16 16:16 UTC (permalink / raw) To: Joel Reymont; +Cc: O'Caml Mailing List Joel Reymont a écrit : > ./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix > ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx > ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o > ocamlbuild/ocamlbuild.native > Undefined symbols: > "_unix_setgroups", referenced from: > _camlUnix__215 in unix.a(unix.o) > _unix_setgroups$non_lazy_ptr in unix.a(unix.o) > "_unix_initgroups", referenced from: > _camlUnix__215 in unix.a(unix.o) > _unix_initgroups$non_lazy_ptr in unix.a(unix.o) > ld: symbol(s) not found > collect2: ld returned 1 exit status > File "caml_startup", line 1, characters 0-1: > Error: Error during linking > Exit code 2 while executing this command: > ./ocamlopt.opt -nostdlib unix.cmxa -g -I stdlib -I otherlibs/unix > ocamlbuild/ocamlbuild_executor.cmx ocamlbuild/ocamlbuild_pack.cmx > ocamlbuild/ocamlbuild_unix_plugin.cmx ocamlbuild/ocamlbuild.cmx -o > ocamlbuild/ocamlbuild.native Are you using the ocamlbuild-based build system? That would be my fault (I guess). See PR#3047. I haven't tested the patch with the ocamlbuild-based build system, but I guess "initgroups.o" and "setgroups.o" are missing from otherlibs/unix/libunix.clib... Could you check that updating libunix.clib solves your build failure? Cheers, -- Stéphane ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <be68c3dc0904160930g106490b6r44b2dbff8e551daf@mail.gmail.com>]
* Re: [Caml-list] cvs ocaml build failing [not found] ` <be68c3dc0904160930g106490b6r44b2dbff8e551daf@mail.gmail.com> @ 2009-04-16 16:50 ` Stéphane Glondu 2009-04-16 17:14 ` Joel Reymont 0 siblings, 1 reply; 4+ messages in thread From: Stéphane Glondu @ 2009-04-16 16:50 UTC (permalink / raw) To: Joel Reymont; +Cc: caml-list Joel Reymont a écrit : >> That would be my fault (I guess). See PR#3047. I haven't tested the >> patch with the ocamlbuild-based build system, but I guess "initgroups.o" >> and "setgroups.o" are missing from otherlibs/unix/libunix.clib... Could >> you check that updating libunix.clib solves your build failure? > > How do I check? Add initgroups.o and setgroups.o in otherlibs/unix/libunix.clib, then launch again the compilation. > BTW, there was another error with regular make process. > > boot/ocamlrun boot/ocamlc -nostdlib -I boot -linkall -o ocaml.tmp > toplevel/toplevellib.cma toplevel/topstart.cmo > File "_none_", line 1, characters 0-1: > Error: Error while linking boot/stdlib.cma(Pervasives): > The external function `caml_log1p_float' is not available > make[1]: *** [ocaml] Error 2 It seems that -lm is missing in BYTECCLIBS and/or NATIVECCLIBS (see config/Makefile). However, the ./configure script should have done this for you. This might be worth a bugreport. Please pay attention and don't mix both build systems: either use make or ocamlbuild, but don't run make after having used ocamlbuild nor vice-versa. To be sure, start from a fresh CVS checkout. Cheers, -- Stéphane ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] cvs ocaml build failing 2009-04-16 16:50 ` Stéphane Glondu @ 2009-04-16 17:14 ` Joel Reymont 0 siblings, 0 replies; 4+ messages in thread From: Joel Reymont @ 2009-04-16 17:14 UTC (permalink / raw) To: Stéphane Glondu; +Cc: caml-list On Apr 16, 2009, at 5:50 PM, Stéphane Glondu wrote: > Add initgroups.o and setgroups.o in otherlibs/unix/libunix.clib, then > launch again the compilation. Seems to help but still bombs out. ./build/fastworld.sh ... + boot/ocamlyacc -v ocamldoc/odoc_text_parser.mly 5 shift/reduce conflicts. Solver failed: Ocamlbuild knows of no rules that apply to a target named ocamldoc/ odoc_opt.mlast. This can happen if you ask Ocamlbuild to build a target with the wrong extension (e.g. .opt instead of .native) or if the source files live in directories that have not been specified as include directories. Backtrace: - Failed to build the target ocamldoc/ocamldoc.opt - Building ocamldoc/ocamldoc.opt: - Building ocamldoc/odoc_opt.native: - Building ocamldoc/odoc_opt.cmx: - Failed to build all of these: - Building ocamldoc/odoc_opt.ml: - Failed to build all of these: - Building ocamldoc/odoc_opt.mlast - Building ocamldoc/odoc_opt.ml4 - Building ocamldoc/odoc_opt.mlbuild - Building ocamldoc/odoc_opt.mly - Building ocamldoc/odoc_opt.mll - Building ocamldoc/odoc_opt.mlpack Compilation unsuccessful after building 2136 targets (681 cached) in 00:00:49. > It seems that -lm is missing in BYTECCLIBS and/or NATIVECCLIBS (see > config/Makefile). However, the ./configure script should have done > this > for you. This might be worth a bugreport. BYTECCLIBS= -lcurses -lpthread NATIVECCLIBS= This was all working fine before, ocamlbuild and make. > Please pay attention and don't mix both build systems: either use make > or ocamlbuild, but don't run make after having used ocamlbuild nor > vice-versa. To be sure, start from a fresh CVS checkout. I don't mix and I always do 'make clean', 'make distclean' and './ build/distclean.sh'. Thanks, Joel --- Mac hacker with a performance bent http://linkedin.com/in/joelreymont ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-16 17:15 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-04-16 13:04 cvs ocaml build failing Joel Reymont 2009-04-16 16:16 ` [Caml-list] " Stéphane Glondu [not found] ` <be68c3dc0904160930g106490b6r44b2dbff8e551daf@mail.gmail.com> 2009-04-16 16:50 ` Stéphane Glondu 2009-04-16 17:14 ` Joel Reymont
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox