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

ocamlfind 1.8.1 doesn't build #75

Open
Khady opened this issue Oct 2, 2020 · 4 comments
Open

ocamlfind 1.8.1 doesn't build #75

Khady opened this issue Oct 2, 2020 · 4 comments

Comments

@Khady
Copy link

Khady commented Oct 2, 2020

$ esy
info esy 0.6.7 (using package.json)
info checking https://github.com/ocaml/opam-repository for updates...
info checking https://github.com/esy-ocaml/esy-opam-override for updates...
info resolving esy packages: done                         
info solving esy constraints: done         
info resolving npm packages: done
info fetching: done                                                                                                       
info installing: done                                                                                                                
info building @opam/ocamlbuild@opam:0.14.0@6ac75d03
info building @opam/ocamlfind@opam:1.8.1@ff07b0f9
info building @opam/stdio@opam:v0.14.0@a624e254
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @opam/ocamlfind@opam:1.8.1
    # esy-build-package: pwd: /home/louis/.esy/3/b/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db
    # esy-build-package: running: 'bash' '-c' 'true'
    # esy-build-package: running: './configure' '-bindir' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/bin' '-sitelib' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/lib' '-mandir' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/man' '-config' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/lib/findlib.conf' '-no-custom' '-no-topfind'
    Welcome to findlib version 1.8.1
    Configuring core...
    Checking for #remove_directory...
    Testing threading model...
    systhread_supported: true
    Testing DLLs...
    Testing whether ppxopt can be supported...
    Checking for ocamlc -opaque...
    Configuring libraries...
    native dynlink: found
    labltk: not present
    ocamlbuild: not present
    camlp4: not present (normal since OCaml-4.02)
    compiler-libs: found
    dbm: not present (normal since OCaml-4.00)
    num: not present (normal since OCaml-4.06)
    bytes: found, installing fake library
    spacetime: found
    graphics: not found
    Configuration for dynlink written to site-lib-src/dynlink/META
    Configuration for str written to site-lib-src/str/META
    Configuration for threads written to site-lib-src/threads/META
    Configuration for unix written to site-lib-src/unix/META
    Configuration for stdlib written to site-lib-src/stdlib/META
    Configuration for bigarray written to site-lib-src/bigarray/META
    Configuration for ocamldoc written to site-lib-src/ocamldoc/META
    Configuration for compiler-libs written to site-lib-src/compiler-libs/META
    Configuration for bytes written to site-lib-src/bytes/META
    Configuration for raw_spacetime written to site-lib-src/raw_spacetime/META
    Detecting compiler arguments: (extractor built) FAILED (see the file ocargs.log for details)
    error: command failed: './configure' '-bindir' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/bin' '-sitelib' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/lib' '-mandir' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/man' '-config' '/home/louis/.esy/3____________________________________________________________________/s/opam__s__ocamlfind-opam__c__1.8.1-3ed6d6db/lib/findlib.conf' '-no-custom' '-no-topfind' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building @opam/ocamlfind@opam:1.8.1
esy: exiting due to errors above

Can reproduce on https://github.com/Khady/modern-ocaml/tree/ocaml-411

@Khady
Copy link
Author

Khady commented Oct 2, 2020

no error with ocaml 4.11.0, only with 4.11.1000.

@glennsl
Copy link

glennsl commented Oct 3, 2020

Getting same error with 4.10.1002. Contents of ocargs.log is:

ocamlc -o extract_args str.cma extract_args.ml
tools/extract_args/extract_args: line 2: syntax error near unexpected token `$'\001\001C''
tools/extract_args/extract_args: line 2: `T�W%.7@IR[gt}���c(C'

@glennsl
Copy link

glennsl commented Oct 3, 2020

I can't easily upgrade to 4.11.0, but downgrading to 4.10.0 also worked.

@ManasJayanth
Copy link
Collaborator

@glennsl The fix can be found in the nightly release

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

No branches or pull requests

3 participants