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

Opam build fails on Ubuntu 16.04 using Ocaml 4.04.2 #99

Open
tomsib2001 opened this issue Dec 9, 2017 · 4 comments
Open

Opam build fails on Ubuntu 16.04 using Ocaml 4.04.2 #99

tomsib2001 opened this issue Dec 9, 2017 · 4 comments

Comments

@tomsib2001
Copy link

tomsib2001 commented Dec 9, 2017

Hi,
When I try to install omake 0.10.3 using opam, i get the following error:

# opam-version 1.2.2
# os           linux
# command      make
# path         /home/thomas/.opam/tezos_fresh/build/omake.0.10.3
# compiler     4.04.2
# exit-code    1
# env-file     /home/thomas/.opam/tezos_fresh/build/omake.0.10.3/omake-6858-5f1023.env
# stdout-file  /home/thomas/.opam/tezos_fresh/build/omake.0.10.3/omake-6858-5f1023.out
# stderr-file  /home/thomas/.opam/tezos_fresh/build/omake.0.10.3/omake-6858-5f1023.err
### stderr ###
# *** Error in directory /home/thomas/.opam/tezos_fresh/build/omake.0.10.3: No way to execute phony target: default

The error can be replicated by simply doing make.

@gerdstolpmann
Copy link
Collaborator

Hi,
I cannot reproduce this. Tried this by installing the official Ubuntu 16.04 Docker image, followed by apt-get install build-essential m4 opam, then initialized opam (opam init, opam switch 4.04.2), then installed omake.

Any special environment variables (omake as a build tool is somewhat sensitive to this)? What is ocamlc -config?

@tomsib2001
Copy link
Author

Hi,
Here is the output I get for ocamlc -config:

version: 4.04.2
standard_library_default: /home/thomas/.opam/tezos_fresh/lib/ocaml
standard_library: /home/thomas/.opam/tezos_fresh/lib/ocaml
standard_runtime: /home/thomas/.opam/tezos_fresh/bin/ocamlrun
ccomp_type: cc
bytecomp_c_compiler: gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC
bytecomp_c_libraries: -lm  -ldl -lcurses -lpthread                  
native_c_compiler: gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
native_c_libraries: -lm  -ldl
native_pack_linker: ld -r  -o 
ranlib: ranlib
cc_profile: -pg
architecture: amd64
model: default
system: linux
asm: as
asm_cfi_supported: true
with_frame_pointers: false
ext_obj: .o
ext_asm: .s
ext_lib: .a
ext_dll: .so
os_type: Unix
default_executable_name: a.out
systhread_supported: true
host: x86_64-unknown-linux-gnu
target: x86_64-unknown-linux-gnu
flambda: false
spacetime: false
safe_string: false
exec_magic_number: Caml1999X011
cmi_magic_number: Caml1999I021
cmo_magic_number: Caml1999O011
cma_magic_number: Caml1999A012
cmx_magic_number: Caml1999Y015
cmxa_magic_number: Caml1999Z014
ast_impl_magic_number: Caml1999M020
ast_intf_magic_number: Caml1999N018
cmxs_magic_number: Caml2007D002
cmt_magic_number: Caml2012T008

My fix for the bug was to clone the repository, pin the directory and modify the build line in the opam file by changing make to make all.

@gerdstolpmann
Copy link
Collaborator

Still, there is something different on your system. Which make utility do you use? I could not find the string "no way to execute" in the source of GNU make, so it must be something else.

@tomsib2001
Copy link
Author

tomsib2001 commented Dec 11, 2017

make -v returns

GNU Make 4.1
Built for x86_64-pc-linux-gnu

Otherwise, my system is pretty much brand new.

EDIT: I found the string "No way to execute phony target" in https://github.com/ocaml-omake/omake/blob/master/make.ml so apparently, make is trying to use omake already.

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

2 participants