-
Notifications
You must be signed in to change notification settings - Fork 61
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
opam installation broken on FreeBSD #61
Comments
Can you give the output with |
stephane@sequoia:/sequoia/ocaml/ocaml-contribs/tyxml % opam install tyxml --verbose
=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #=== ERROR while installing tyxml.3.3.0 =======================================# opam-version 1.2.0os freebsdcommand ./configure --enable-syntax --prefix /sequoia/.opam/4.02.1path /sequoia/.opam/4.02.1/build/tyxml.3.3.0compiler 4.02.1exit-code 2env-file /sequoia/.opam/4.02.1/build/tyxml.3.3.0/tyxml-70700-5f1023.envstdout-file /sequoia/.opam/4.02.1/build/tyxml.3.3.0/tyxml-70700-5f1023.outstderr-file /sequoia/.opam/4.02.1/build/tyxml.3.3.0/tyxml-70700-5f1023.errstderrmake: don't know how to make ./setup.exe. Stop'opam install tyxml --verbose' failed. And the Makefile is the following one (notice the ./ for the SETUP var): OASIS_STARTDO NOT EDIT (digest: 46f8bd9984975bd4727bed22d0876cd2)SETUP = ./setup.exe build: setup.data $(SETUP) doc: setup.data $(SETUP) build test: setup.data $(SETUP) build all: $(SETUP) install: setup.data $(SETUP) uninstall: setup.data $(SETUP) reinstall: setup.data $(SETUP) clean: $(SETUP) distclean: $(SETUP) setup.data: $(SETUP) configure: $(SETUP) setup.exe: setup.ml .PHONY: build doc test all install uninstall reinstall clean distclean configure OASIS_STOPwikidoc: $(SETUP) setup.data build FWIW, if i go to the build directory and type "gmake setup.exe", it is able to build the setup.exe file. Otherwise, this file doesn't exist in the build directory. |
Try to pin the git version ( |
I've reported the issue upstream to oasis here. |
Is it working if you replace all the
by this one
|
I can confirm that with the current version of tyxml ("opam pin add tyxml https://github.com/ocsigen/tyxml.git") the installation now works. Thank you very much! Merci beaucoup ! |
If you can test the thing above as well with the old Makefile, it would be super. |
The issue is now solved but just to complete the history, i also tried the suggestion from jpdeplaix. And that doesn't work, i get the following error:
The Makefile modified for this test:
|
Ok, it looks like there is no default
|
Nope:
The Makefile:
And indeed, i don't have any "setup.exe" in the directory. May be we should stay with the solution given by Drup? It works and it has been committed in the repository. So i think it will be ok for the next releases. |
@slegrand45 The solution I implemented is a local workaround. @jpdeplaix is trying to fix oasis, which was use to generate the faulty makefile. ;) (and uses you as FreeBSD guinea pig :p) |
Ah, ok. I didn't understand that. Sorry. So i'm volunteer to test any other suggestion proposed by @jpdeplaix :) |
The problem comes from the automatic variable "$<". This variable is empty when the configure script runs. So the setup.exe is never built. If i replace this variable by "setup.ml" in the Makefile, that works:
|
Yes obviously. I know where does it comes from. I don't have much time to fix it properly today. I'll do it tuesday. Thanks anyway. |
Ok. Thank you. |
Hi,
Tested with tyxml.3.3.0 opam package on FreeBSD:
Building uutf.0.9.3:
./pkg/pkg-git
./pkg/build true
Installing uutf.0.9.3.
Building tyxml.3.3.0:
./configure --enable-syntax --prefix /sequoia/.opam/4.02.1
gmake
gmake install
[ERROR] The compilation of tyxml.3.3.0 failed.
Removing tyxml.3.3.0.
ocamlfind remove tyxml
#=== ERROR while installing tyxml.3.3.0 =======================================#
opam-version 1.2.0
os freebsd
command ./configure --enable-syntax --prefix /sequoia/.opam/4.02.1
path /sequoia/.opam/4.02.1/build/tyxml.3.3.0
compiler 4.02.1
exit-code 2
env-file /sequoia/.opam/4.02.1/build/tyxml.3.3.0/tyxml-65153-ffb3fd.env
stdout-file /sequoia/.opam/4.02.1/build/tyxml.3.3.0/tyxml-65153-ffb3fd.out
stderr-file /sequoia/.opam/4.02.1/build/tyxml.3.3.0/tyxml-65153-ffb3fd.err
stderr
make: don't know how to make ./setup.exe. Stop
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
These actions have been completed successfully
The following failed
The text was updated successfully, but these errors were encountered: