Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlbuild fails with error cannot open linker script file /usr/src/mariner/BUILD/module_info.ld #5984

Open
llly opened this issue Aug 11, 2023 · 0 comments

Comments

@llly
Copy link

llly commented Aug 11, 2023

I'm trying to build ocaml app under

NAME="Common Base Linux Mariner"
VERSION="2.0.20230721"

But it fails with error message

ocamlbuild ......
+ /usr/bin/ocamlopt.opt ......
/usr/bin/ld: cannot open linker script file /usr/src/mariner/BUILD/module_info.ld: No such file or directory
collect2: error: ld returned 1 exit status
File "caml_startup", line 1:
Error: Error during linking (exit code 1)

After reviewing #1708 and #1824, I think this error is caused by LDFLAGS in ocaml spec.

https://github.com/microsoft/CBL-Mariner/blob/73e50ecc3ff6adf0e47ddb68b3c88b6be14c76fd/SPECS/ocaml/ocaml.spec#L121-L121

Currently I can workaround this failure by generating module_info.ld using /usr/lib/rpm/mariner/gen-ld-script.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant