Skip to content

3.20.2 build error: Error: posix_spawn(): Exec format error #12576

@barracuda156

Description

@barracuda156

Could someone say what might be causing this failure with Dune 3.20.x? Dune 3.19.1 builds normally on the same system with everything else identical (these were successive builds, 3.19.1 worked and 3.20.2 upgrade failed).

Expected Behavior

Build should succeed.

Actual Behavior

--->  Configuring ocaml-dune
Executing:  cd "/opt/local/var/macports/build/ocaml-dune-3d7a7125/work/dune-3.20.2" && ./configure --bindir /opt/local/bin --datadir /opt/local/share/ocaml-dune --docdir /opt/local/share/doc --etcdir /opt/local/etc --libdir /opt/local/lib/ocaml/site-lib --mandir /opt/local/share/man --sbindir /opt/local/sbin 
--->  Building ocaml-dune
Executing:  cd "/opt/local/var/macports/build/ocaml-dune-3d7a7125/work/dune-3.20.2" && DUNE_CONFIG__COPY_FILE=portable /usr/bin/make release 
ocamlc -output-complete-exe -g -o .duneboot.exe -I boot unix.cma boot/[libs.ml](http://libs.ml/) boot/[duneboot.ml](http://duneboot.ml/)
./.duneboot.exe
Error: posix_spawn(): Exec format error
-> required by _build/default/doc/dune-cache.1
-> required by _build/install/default/man/man1/dune-cache.1
-> required by _build/default/dune.install
-> required by alias install
make: *** [release] Error 1
Command failed:  cd "/opt/local/var/macports/build/ocaml-dune-3d7a7125/work/dune-3.20.2" && DUNE_CONFIG__COPY_FILE=portable /usr/bin/make release 
Exit code: 2
Error: Failed to build ocaml-dune: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_ppcports_ocaml_ocaml-dune/ocaml-dune/main.log for details.

Reproduction

Run the build.

Specifications

  • Version of dune (output of dune --version): 3.20.2
  • Version of ocaml (output of ocamlc --version): 4.14.2
  • Operating system (distribution and version): macOS 10.6.8

Additional information

MacPorts build env.

@rgrinberg Maybe you can suggest where to look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosIssues that relate to Dune on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions