Skip to content

Commit 6618849

Browse files
committed
No chmod of entire directory esp. .git/ when cross-compiling
Get: .. [Release] Triggering OCaml build_cross because /work/build/DkSDKFiles/cfg-Release/o/opt/mlcross/android_x86_64/bin/ocaml does not exist -- .. Running: /work/build/DkSDKFiles/sb/with-dksdk-target-abi.e45a5a5c.Release.env.sh /work/build/DkSDKFiles/with-unix.sh sh -c /work/build/DkSDKFiles/cfg-Release/o/share/dkml/repro/100co/vendor/dkml-compiler/src/r-c-ocaml-3-build_cross-noargs.sh [2024-11-22T09:43:11+00:00] genWrapper [2024-11-22T09:43:11+00:00] genWrapper [2024-11-22T09:43:11+00:00] /usr/bin/chmod /usr/bin/chmod: changing permissions of './.git/objects/61/a9d793fd254829dbfc97bf30e84ad46da7b280': Permission denied ... /usr/bin/chmod: changing permissions of './.git/objects/25/8e6d4977dc46a213b9ad1a683ce0b78a2d7704': Permission denied CMake Error at fetch/dksdk-cmake/cmake/targets/115-ocaml-config/core.cmake:85 (execute_process): execute_process error getting child return code: No such file or directory Call Stack (most recent call first): fetch/dksdk-cmake/cmake/targets/115-ocaml-config/core.cmake:100 (find_ocaml_config_var) fetch/dksdk-cmake/cmake/targets/115-ocaml-config/CMakeLists.txt:24 (include) inside a macOS Docker container.
1 parent 3aa3e95 commit 6618849

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/r-c-ocaml-3-build_cross.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,6 @@ build_world() {
353353
# shellcheck disable=SC2086
354354
log_trace genWrapper "$build_world_BUILD_ROOT/support/ocamloptTarget.wrapper" "$build_world_BUILD_ROOT"/support/with-target-c-compiler.sh "$OCAMLSRC_MIXED"/support/with-linking-on-host.sh "$build_world_BUILD_ROOT/ocamlopt.opt$build_world_TARGET_EXE_EXT" -I "$build_world_BUILD_ROOT/stdlib" -I "$build_world_BUILD_ROOT/otherlibs/unix" -nostdlib
355355

356-
# macOS, and probably Windows, don't like the way the next `make clean` removes read-only files.
357-
# would get ... rm: Debug/dksdk/ocaml/opt/mlcross/darwin_x86_64: Permission denied
358-
log_trace "$DKMLSYS_CHMOD" -R u+w .
359-
360356
# clean (otherwise you will 'make inconsistent assumptions' errors with a mix of host + target binaries)
361357
make clean
362358

0 commit comments

Comments
 (0)