caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamlc compiles hello world, ocamlopt not
@ 2013-01-10 13:57 r0ller
  2013-01-10 14:25 ` Gerd Stolpmann
  0 siblings, 1 reply; 18+ messages in thread
From: r0ller @ 2013-01-10 13:57 UTC (permalink / raw)
  To: caml-list

Hi All,

I'm trying to make ocaml compiler (4.00.1) work on minix (current 3.2.1) and
managed to get to point 3) and 4) of the INSTALL intsructions. According to
point 3) make bootstrap reports success and make opt (point 4) worked fine as
well. However, point 5) that is make opt.opt gives linking errors.
Nevertheless, as far as I could understand, this should not pose any problem
as then I only miss the optimized compiler versions that is the ones ending
in .opt and they're missing indeed. Still, when trying to compile a hello
world program called smallest.ml like:

print_string "hello, world\n"

by executing 'ocamlopt smallest.ml -o smallest', I get roughly the same
linking errors I got when make opt.opt failed (see at the end). When later
adding the -verbose option I got:

+ as -o 'smallest.o' 'smallest.s'
+ as -o '/tmp/camlstartup219145.o' '/tmp/camlstartupbc831e.s'
+ gcc -o 'smallest'   '-L/usr/local/lib/ocaml'  '/tmp/camlstartup219145.o' '/
usr/local/lib/ocaml/std_exit.o' 'smallest.o' '/usr/local/lib/ocaml/stdlib.a'
'/usr/local/lib/ocaml/libasmrun.a' -lm

If this simple hello world is compiled with ocamlc then it works fine. I also
must admit that I'm not an ocaml expert at all. Could you please, tell me
what's going wrong? Thanks for your help in advance!

Best regards,
r0ller

/tmp/camlstartup720305.o: In function `L103':
(.text+0x7): undefined reference to `_caml_globals_inited'
/tmp/camlstartup720305.o: In function `L104':
(.text+0x13): undefined reference to `_caml_globals_inited'
/tmp/camlstartup720305.o: In function `L105':
(.text+0x1f): undefined reference to `_caml_globals_inited'
/tmp/camlstartup720305.o: In function `L107':
(.text+0x2f): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L107':
(.text+0x37): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L107':
(.text+0x3d): undefined reference to `_caml_young_limit'
/tmp/camlstartup720305.o: In function `L112':
(.text+0x97): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L112':
(.text+0x9f): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L112':
(.text+0xa5): undefined reference to `_caml_young_limit'
/tmp/camlstartup720305.o: In function `L117':
(.text+0xf3): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L117':
(.text+0xfb): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L117':
(.text+0x101): undefined reference to `_caml_young_limit'
/tmp/camlstartup720305.o: In function `L122':
(.text+0x14b): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L122':
(.text+0x153): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L122':
(.text+0x159): undefined reference to `_caml_young_limit'
/tmp/camlstartup720305.o: In function `L127':
(.text+0x1a3): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L127':
(.text+0x1ab): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L127':
(.text+0x1b1): undefined reference to `_caml_young_limit'
/tmp/camlstartup720305.o: In function `L132':
(.text+0x1f3): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L132':
(.text+0x1fb): undefined reference to `_caml_young_ptr'
/tmp/camlstartup720305.o: In function `L132':
(.text+0x201): undefined reference to `_caml_young_limit'
/usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L109':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:250: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:250: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:252: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L111':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:252: undefined reference
to `_caml_exception_pointer'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__build_result_1224':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:327: undefined reference
to `_caml_blit_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L118':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:330: undefined reference
to `_caml_ml_input_scan_line'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L119':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:334: undefined reference
to `_caml_create_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L121':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:334: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:334: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:334: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L116':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:336: undefined reference
to `_caml_create_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L125':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:337: undefined reference
to `_caml_ml_input'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L126':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:338: undefined reference
to `_caml_ml_input_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L128':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:338: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:338: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:338: undefined reference
to `_caml_young_limit'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:342: undefined reference
to `_caml_create_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L114':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:344: undefined reference
to `_caml_create_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L132':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:345: undefined reference
to `_caml_ml_input'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L134':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:345: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:345: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:345: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1358':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_set_binary_mode'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1360':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_close_channel'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1362':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_channel_size'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1364':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_pos_in'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1366':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_seek_in'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1368':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_input_value'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1370':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_input_int'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1372':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_input_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1374':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_input_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1376':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_set_binary_mode'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1378':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_channel_size'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1380':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_pos_out'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1382':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_seek_out'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1384':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_output_int'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1386':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1388':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1390':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:446: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L174':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:22: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:22: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:22: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L179':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:23: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:23: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:23: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L184':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:37: undefined reference
to `_caml_lessequal'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L187':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:38: undefined reference
to `_caml_greaterequal'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L192':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:149: undefined reference
to `_caml_create_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L193':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:150: undefined reference
to `_caml_blit_string'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:151: undefined reference
to `_caml_blit_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__bool_of_string_1119':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:177: undefined reference
to `_caml_string_notequal'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:177: undefined reference
to `_caml_string_notequal'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__string_of_int_1120':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:183: undefined reference
to `_caml_format_int'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L204':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:191: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:191: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:191: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__string_of_float_1130':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:202: undefined reference
to `_caml_format_float'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L212':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:211: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:211: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:211: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__open_out_gen_1156':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:236: undefined reference
to `_caml_sys_open'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L216':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:236: undefined reference
to `_caml_ml_open_descriptor_out'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__flush_all_1166':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:253: undefined reference
to `_caml_ml_out_channels_list'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__output_string_1172':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:261: undefined reference
to `_caml_ml_output'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__output_1175':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:266: undefined reference
to `_caml_ml_output'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__output_value_1183':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:273: undefined reference
to `_caml_output_value'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L229':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:279: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L230':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:279: undefined reference
to `_caml_ml_close_channel'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L235':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:280: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:280: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:281: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L237':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:281: undefined reference
to `_caml_exception_pointer'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L233':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:281: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:281: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:282: undefined reference
to `_caml_ml_close_channel'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L238':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:282: undefined reference
to `_caml_exception_pointer'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__open_in_gen_1195':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:289: undefined reference
to `_caml_sys_open'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L240':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:289: undefined reference
to `_caml_ml_open_descriptor_in'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__input_1205':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:305: undefined reference
to `_caml_ml_input'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L248':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:309: undefined reference
to `_caml_ml_input'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L251':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:309: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:309: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:309: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L258':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:322: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:322: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:322: undefined reference
to `_caml_young_limit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L262':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:357: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:357: undefined reference
to `_caml_exception_pointer'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:357: undefined reference
to `_caml_ml_close_channel'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L264':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:357: undefined reference
to `_caml_exception_pointer'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__print_char_1247':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:363: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L273':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:368: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L274':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:368: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__print_newline_1257':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:369: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L277':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:369: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__prerr_char_1258':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:373: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L287':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:378: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L288':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:378: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__prerr_newline_1268':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:379: undefined reference
to `_caml_ml_output_char'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L291':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:379: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__read_line_1269':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:383: undefined reference
to `_caml_ml_flush'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L296':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:384: undefined reference
to `_caml_int_of_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L299':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_float_of_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1461':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_ml_channel_size_64'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1459':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_ml_pos_in_64'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1457':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_ml_seek_in_64'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1455':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_ml_channel_size_64'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1453':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_ml_pos_out_64'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__fun_1451':
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:385: undefined reference
to `_caml_ml_seek_out_64'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L315':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:434: undefined reference
to `_caml_create_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L316':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:435: undefined reference
to `_caml_blit_string'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L318':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:444: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:444: undefined reference
to `_caml_young_ptr'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:444: undefined reference
to `_caml_young_limit'
 /home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:444: undefined reference
to `_caml_modify'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L323':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:452: undefined reference
to `_caml_sys_exit'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L326':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:120: undefined reference
to `_caml_int64_float_of_bits'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L327':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:122: undefined reference
to `_caml_int64_float_of_bits'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L328':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:124: undefined reference
to `_caml_int64_float_of_bits'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L329':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:126: undefined reference
to `_caml_int64_float_of_bits'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L330':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:128: undefined reference
to `_caml_int64_float_of_bits'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o):/home/r0ller/ocaml/ocaml-4.00.1/
stdlib/pervasives.ml:130: more undefined references to
`_caml_int64_float_of_bits' follow
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L332':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:222: undefined reference
to `_caml_ml_open_descriptor_in'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L333':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:223: undefined reference
to `_caml_ml_open_descriptor_out'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L334':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:224: undefined reference
to `_caml_ml_open_descriptor_out'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `L336':
/home/r0ller/ocaml/ocaml-4.00.1/stdlib/pervasives.ml:457: undefined reference
to `_caml_register_named_value'
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__2':
(.data+0x554): undefined reference to `_caml_int64_ops'
/usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `_camlPervasives__3':
(.data+0x564): undefined reference to `_caml_int64_ops'
/usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `_camlPervasives__4':
(.data+0x574): undefined reference to `_caml_int64_ops'
/usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `_camlPervasives__5':
(.data+0x584): undefined reference to `_caml_int64_ops'
/usr/local/lib/ocaml/stdlib.a(pervasives.o): In function `_camlPervasives__6':
(.data+0x594): undefined reference to `_caml_int64_ops'
/usr/local/lib/ocaml/stdlib.a(pervasives.o):(.data+0x5a4): more undefined
references to `_caml_int64_ops' follow
 /usr/local/lib/ocaml/stdlib.a(pervasives.o): In function
`_camlPervasives__74':
 (.data+0x710): undefined reference to `_caml_register_named_value'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_call_gc':
i386.S:(.text+0x4): undefined reference to `_caml_last_return_address'
i386.S:(.text+0xd): undefined reference to `_caml_bottom_of_stack'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L105':
i386.S:(.text+0x29): undefined reference to `_caml_gc_regs'
i386.S:(.text+0x2e): undefined reference to `_caml_garbage_collection'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_alloc1':
i386.S:(.text+0x3b): undefined reference to `_caml_young_ptr'
i386.S:(.text+0x43): undefined reference to `_caml_young_ptr'
i386.S:(.text+0x49): undefined reference to `_caml_young_limit'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L100':
i386.S:(.text+0x54): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x5d): undefined reference to `_caml_bottom_of_stack'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_alloc2':
i386.S:(.text+0x6d): undefined reference to `_caml_young_ptr'
i386.S:(.text+0x75): undefined reference to `_caml_young_ptr'
i386.S:(.text+0x7b): undefined reference to `_caml_young_limit'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L101':
i386.S:(.text+0x86): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x8f): undefined reference to `_caml_bottom_of_stack'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_alloc3':
i386.S:(.text+0x9f): undefined reference to `_caml_young_ptr'
i386.S:(.text+0xa7): undefined reference to `_caml_young_ptr'
i386.S:(.text+0xad): undefined reference to `_caml_young_limit'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L102':
i386.S:(.text+0xb8): undefined reference to `_caml_last_return_address'
i386.S:(.text+0xc1): undefined reference to `_caml_bottom_of_stack'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_allocN':
i386.S:(.text+0xd2): undefined reference to `_caml_young_ptr'
i386.S:(.text+0xda): undefined reference to `_caml_young_limit'
i386.S:(.text+0xe1): undefined reference to `_caml_young_ptr'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L103':
i386.S:(.text+0xe8): undefined reference to `_caml_young_ptr'
i386.S:(.text+0xf1): undefined reference to `_caml_young_ptr'
i386.S:(.text+0xfa): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x103): undefined reference to `_caml_bottom_of_stack'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_c_call':
i386.S:(.text+0x117): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x121): undefined reference to `_caml_bottom_of_stack'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L106':
i386.S:(.text+0x141): undefined reference to `_caml_gc_regs'
i386.S:(.text+0x147): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x14d): undefined reference to `_caml_bottom_of_stack'
i386.S:(.text+0x158): undefined reference to `_caml_exception_pointer'
i386.S:(.text+0x15e): undefined reference to `_caml_exception_pointer'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L107':
i386.S:(.text+0x166): undefined reference to `_caml_exception_pointer'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L109':
i386.S:(.text+0x16f): undefined reference to `_caml_bottom_of_stack'
i386.S:(.text+0x175): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x17b): undefined reference to `_caml_gc_regs'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_raise_exn':
i386.S:(.text+0x18c): undefined reference to `_caml_backtrace_active'
i386.S:(.text+0x198): undefined reference to `_caml_exception_pointer'
i386.S:(.text+0x19e): undefined reference to `_caml_exception_pointer'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L110':
i386.S:(.text+0x1a7): undefined reference to `_caml_exception_pointer'
i386.S:(.text+0x1b7): undefined reference to `_caml_stash_backtrace'
i386.S:(.text+0x1c1): undefined reference to `_caml_exception_pointer'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `_caml_raise_exception':
i386.S:(.text+0x1c8): undefined reference to `_caml_backtrace_active'
i386.S:(.text+0x1d8): undefined reference to `_caml_exception_pointer'
i386.S:(.text+0x1de): undefined reference to `_caml_exception_pointer'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function `L111':
i386.S:(.text+0x1e9): undefined reference to `_caml_exception_pointer'
i386.S:(.text+0x1ef): undefined reference to `_caml_bottom_of_stack'
i386.S:(.text+0x1f5): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x1fb): undefined reference to `_caml_stash_backtrace'
i386.S:(.text+0x203): undefined reference to `_caml_exception_pointer'
i386.S:(.text+0x209): undefined reference to `_caml_exception_pointer'
/usr/local/lib/ocaml/libasmrun.a(i386.o): In function
`_caml_ml_array_bound_error':
 i386.S:(.text+0x26f): undefined reference to `_caml_last_return_address'
i386.S:(.text+0x279): undefined reference to `_caml_bottom_of_stack'
i386.S:(.text+0x27e): undefined reference to `_caml_array_bound_error'
/usr/local/lib/ocaml/libasmrun.a(startup.o): In function `caml_main':
startup.c:(.text+0x1eb): undefined reference to `caml_data_segments'
startup.c:(.text+0x240): undefined reference to `caml_code_segments'
startup.c:(.text+0x32b): undefined reference to `caml_start_program'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_is_special_exception':
 fail.c:(.text+0x7): undefined reference to `caml_exn_Match_failure'
fail.c:(.text+0xe): undefined reference to `caml_exn_Assert_failure'
fail.c:(.text+0x15): undefined reference to
`caml_exn_Undefined_recursive_module'
 /usr/local/lib/ocaml/libasmrun.a(fail.o): In function `caml_raise':
fail.c:(.text+0x73): undefined reference to `caml_raise_exception'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_array_bound_error':
fail.c:(.text+0xa7): undefined reference to `caml_exn_Invalid_argument'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_raise_stack_overflow':
 fail.c:(.text+0xf4): undefined reference to `caml_bucket_Stack_overflow'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_raise_out_of_memory':
 fail.c:(.text+0x104): undefined reference to `caml_bucket_Out_of_memory'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function `caml_raise_sys_error':
fail.c:(.text+0x203): undefined reference to `caml_exn_Sys_error'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function `caml_invalid_argument':
fail.c:(.text+0x230): undefined reference to `caml_exn_Invalid_argument'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function `caml_failwith':
fail.c:(.text+0x243): undefined reference to `caml_exn_Failure'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_raise_sys_blocked_io':
 fail.c:(.text+0x2ba): undefined reference to `caml_exn_Sys_blocked_io'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function `caml_raise_not_found':
fail.c:(.text+0x2ca): undefined reference to `caml_exn_Not_found'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_raise_zero_divide':
fail.c:(.text+0x2da): undefined reference to `caml_exn_Division_by_zero'
/usr/local/lib/ocaml/libasmrun.a(fail.o): In function
`caml_raise_end_of_file':
fail.c:(.text+0x2ea): undefined reference to `caml_exn_End_of_file'
/usr/local/lib/ocaml/libasmrun.a(roots.o): In function
`caml_init_frame_descriptors':
 roots.c:(.text+0x1dd): undefined reference to `caml_frametable'
roots.c:(.text+0x1eb): undefined reference to `caml_frametable'
/usr/local/lib/ocaml/libasmrun.a(roots.o): In function `caml_do_roots':
roots.c:(.text+0x32a): undefined reference to `caml_globals'
roots.c:(.text+0x367): undefined reference to `caml_globals'
/usr/local/lib/ocaml/libasmrun.a(roots.o): In function
`caml_oldify_local_roots':
 roots.c:(.text+0x467): undefined reference to `caml_globals'
roots.c:(.text+0x472): undefined reference to `caml_globals'
/usr/local/lib/ocaml/libasmrun.a(signals.o): In function
`caml_execute_signal':
signals.c:(.text+0x115): undefined reference to `caml_callback_exn'
/usr/local/lib/ocaml/libasmrun.a(printexc.o): In function
`caml_fatal_uncaught_exception':
 printexc.c:(.text+0x25a): undefined reference to `caml_callback_exn'
/usr/local/lib/ocaml/libasmrun.a(callback.o): In function `caml_callback3':
callback.c:(.text+0x12c): undefined reference to `caml_callback3_exn'
/usr/local/lib/ocaml/libasmrun.a(callback.o): In function `caml_callback2':
callback.c:(.text+0x15b): undefined reference to `caml_callback2_exn'
/usr/local/lib/ocaml/libasmrun.a(callback.o): In function `caml_callback':
callback.c:(.text+0x187): undefined reference to `caml_callback_exn'
/usr/local/lib/ocaml/libasmrun.a(callback.o): In function
`caml_callbackN_exn':
callback.c:(.text+0x242): undefined reference to `caml_callback_exn'
callback.c:(.text+0x278): undefined reference to `caml_callback2_exn'
callback.c:(.text+0x2ae): undefined reference to `caml_callback3_exn'
/usr/local/lib/ocaml/libasmrun.a(finalise.o): In function
`caml_final_do_calls':
 finalise.c:(.text+0x2e7): undefined reference to `caml_callback_exn'
collect2: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [Caml-list] ocamlc compiles hello world, ocamlopt not
@ 2013-01-10 14:48 r0ller
  2013-01-10 16:08 ` Gerd Stolpmann
  0 siblings, 1 reply; 18+ messages in thread
From: r0ller @ 2013-01-10 14:48 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: TEXT/plain, Size: 1059 bytes --]

Hi Gerd,

Thanks for the quick answer! Please, find the output of nm attached -for the first try, size limit was exceeded, hopefully now it'll get through as attachment.

Thanks&regards,
r0ller

Gerd Stolpmann <info@gerd-stolpmann.de> írta:
>Am Donnerstag, den 10.01.2013, 14:57 +0100 schrieb r0ller@freemail.hu:
These errors would mean that stdlib.a and libasmrun.a do not contain the
symbols they are supposed to contain.
What's the output of

nm /usr/local/lib/ocaml/libasmrun.a?
You should normally find here the missing symbols the linker is
complaining about.

Gerd

------------------------------------------------------------>
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de>
Creator of GODI and camlcity.org.>
Contact details:        http://www.camlcity.org/contact.html>
Company homepage:       http://www.gerd-stolpmann.de>
*** Searching for new projects! Need consulting for system>
*** programming in Ocaml? Gerd Stolpmann can help you.>
------------------------------------------------------------>
>


[-- Attachment #2: nm_out.zip --]
[-- Type: APPLICATION/zip, Size: 8860 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <fa.J86NbZyp4NcoVDLx3IIZPjh6Xsw@ifi.uio.no>]
[parent not found: <fa.tMEIU2eZ10ydMQJpEId8zYmuWpo@ifi.uio.no>]
[parent not found: <fa.rDSh+u4grOqB/jgTnZaDUQoT+s0@ifi.uio.no>]

end of thread, other threads:[~2013-01-17 19:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-10 13:57 [Caml-list] ocamlc compiles hello world, ocamlopt not r0ller
2013-01-10 14:25 ` Gerd Stolpmann
2013-01-10 14:48 r0ller
2013-01-10 16:08 ` Gerd Stolpmann
2013-01-11  9:28   ` r0ller
2013-01-11  9:56     ` Xavier Leroy
     [not found] <fa.J86NbZyp4NcoVDLx3IIZPjh6Xsw@ifi.uio.no>
     [not found] ` <fa.cI6IwITMmpEcG/xX8jnbm1tXnWU@ifi.uio.no>
2013-01-11 16:13   ` r0ller
2013-01-11 16:23     ` r0ller
2013-01-16  8:02       ` r0ller
2013-01-16  8:56         ` Francois Berenger
2013-01-16  9:01           ` AW: " Gerd Stolpmann
2013-01-16  9:48             ` Basile Starynkevitch
2013-01-16 22:32               ` Benedikt Meurer
2013-01-16 23:17                 ` Gabriel Scherer
2013-01-17 19:34                   ` Benedikt Meurer
     [not found] <fa.tMEIU2eZ10ydMQJpEId8zYmuWpo@ifi.uio.no>
     [not found] ` <fa.5ytRg9PGwzfRT5U12a+96CThPHM@ifi.uio.no>
     [not found]   ` <fa.fEvQzwMsL9tn+Q+kKoqZrwKQpHs@ifi.uio.no>
     [not found]     ` <fa.gj9h88pWsiKoDqywSvikWobc2Gk@ifi.uio.no>
     [not found]       ` <fa.yuD604fWUWzMhQKQ2PVUY9+PSRs@ifi.uio.no>
     [not found]         ` <fa.SiWjqBgSRaJHHtRDr1LQlRGec/I@ifi.uio.no>
2013-01-16  9:29           ` r0ller
     [not found]           ` <fa.vGYTX053VB/7kO+WVlnBXs6LyWM@ifi.uio.no>
2013-01-16  9:36             ` r0ller
     [not found]             ` <fa.3ZA77VqUCTh0CDJf/dKc9fxM234@ifi.uio.no>
2013-01-16 10:16               ` r0ller
     [not found] <fa.rDSh+u4grOqB/jgTnZaDUQoT+s0@ifi.uio.no>
     [not found] ` <fa.53tG84D0PDsZ/dZaWLkOQvsLfTU@ifi.uio.no>
2013-01-16 10:20   ` r0ller

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).