Opened 14 years ago

Closed 13 years ago

#26146 closed defect (worksforme)

Ocaml failed to build with Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected")

Reported by: tianyicui@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: nchaimov@…, medgno@…
Port: ocaml

Description (last modified by mf2k (Frank Schima))

I simply run "port install ocaml" and failed with:

Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file /SourceCache/ld64/ld64-115.4/src/ld/parsers/macho_relocatable_file.cpp, line 1504.

I'm not sure what's the problem, I'd like to help provide more information, thanks.

The tail of build log is below, the complete build log is attached:

:info:build boot/ocamlrun ./ocamlopt -nostdlib -I stdlib -I otherlibs/dynlink  -ccopt "" -o ocamlc.opt \
:info:build           utils/misc.cmx utils/tbl.cmx utils/config.cmx utils/clflags.cmx utils/terminfo.cmx utils/ccomp.cmx utils/warnings.cmx utils/consistbl.cmx parsing/linenum.cmx parsing/location.cmx parsing/longident.cmx parsing/syntaxerr.cmx parsing/parser.cmx parsing/lexer.cmx parsing/parse.cmx parsing/printast.cmx typing/unused_var.cmx typing/ident.cmx typing/path.cmx typing/primitive.cmx typing/types.cmx typing/btype.cmx typing/oprint.cmx typing/subst.cmx typing/predef.cmx typing/datarepr.cmx typing/env.cmx typing/typedtree.cmx typing/ctype.cmx typing/printtyp.cmx typing/includeclass.cmx typing/mtype.cmx typing/includecore.cmx typing/includemod.cmx typing/parmatch.cmx typing/typetexp.cmx typing/stypes.cmx typing/typecore.cmx typing/typedecl.cmx typing/typeclass.cmx typing/typemod.cmx bytecomp/lambda.cmx bytecomp/printlambda.cmx bytecomp/typeopt.cmx bytecomp/switch.cmx bytecomp/matching.cmx bytecomp/translobj.cmx bytecomp/translcore.cmx bytecomp/translclass.cmx bytecomp/translmod.cmx bytecomp/simplif.cmx bytecomp/runtimedef.cmx bytecomp/meta.cmx bytecomp/instruct.cmx bytecomp/bytegen.cmx bytecomp/printinstr.cmx bytecomp/opcodes.cmx bytecomp/emitcode.cmx bytecomp/bytesections.cmx bytecomp/dll.cmx bytecomp/symtable.cmx bytecomp/bytelink.cmx bytecomp/bytelibrarian.cmx bytecomp/bytepackager.cmx driver/pparse.cmx driver/errors.cmx driver/compile.cmx driver/main_args.cmx driver/main.cmx \
:info:build           asmrun/meta.o asmrun/dynlink.o -cclib "-lcurses -lpthread"
:info:build Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file /SourceCache/ld64/ld64-115.4/src/ld/parsers/macho_relocatable_file.cpp, line 1504.
:info:build 0  0x10001071f  __assert_rtn + 79
:info:build 1  0x10006a271  mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions const&) + 2785
:info:build 2  0x10001bd27  mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, unsigned int, mach_o::relocatable::ParserOptions const&) + 1175
:info:build 3  0x100098b7e  ld::tool::InputFiles::makeFile(Options::FileInfo const&) + 238
:info:build 4  0x100099603  ld::tool::InputFiles::InputFiles(Options&, char const**) + 563
:info:build 5  0x100012124  main + 260
:info:build collect2: ld returned 1 exit status
:info:build File "caml_startup", line 1, characters 0-1:
:info:build Error: Error during linking
:info:build make[1]: *** [ocamlc.opt] Error 2
:info:build make: *** [world.opt] Error 2
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ocaml/work/ocaml-3.11.2" && unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && /usr/bin/make world.opt " returned error 2
:error:build Target org.macports.build returned: shell command failed
:debug:build Backtrace: shell command failed
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for ocaml): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for ocaml is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ocaml/main.log

Attachments (1)

main.log (147.6 KB) - added by tianyicui@… 14 years ago.

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by tianyicui@…

Attachment: main.log added

comment:1 Changed 14 years ago by tianyicui@…

Cc: tianyicui@… added

Cc Me!

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: tianyicui@… removed
Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…

comment:3 Changed 14 years ago by nchaimov@…

Cc: nchaimov@… added

Cc Me!

comment:4 Changed 14 years ago by medgno@…

Cc: medgno@… added

Cc Me!

comment:5 Changed 13 years ago by medgno@…

It now Works For Me (tm). I don't know if there was an update, or if uninstalling and re-installing the Xcode preview helped.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Closing as per comment:5 since the port has indeed been updated.

Note: See TracTickets for help on using tickets.