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

In configure, the ccfamily variable is not defined #7919

Closed
vicuna opened this issue Feb 13, 2019 · 4 comments
Closed

In configure, the ccfamily variable is not defined #7919

vicuna opened this issue Feb 13, 2019 · 4 comments
Assignees
Milestone

Comments

@vicuna
Copy link

vicuna commented Feb 13, 2019

Original bug ID: 7919
Reporter: Vincent L
Assigned to: @shindere
Status: assigned (set by @xavierleroy on 2019-03-09T09:37:11Z)
Resolution: open
Priority: normal
Severity: major
Platform: Darwin
OS: OSX
Version: 4.08.0+dev/beta1/beta2
Target version: 4.08.0+dev/beta1/beta2
Category: configure and build/install
Monitored by: @nojb

Bug description

The configure script relies on a ccfamily variable to determine what program to use as assembler (https://github.com/ocaml/ocaml/blob/trunk/configure.ac#L934).

It used to be defined there:

ocaml/configure

Line 409 in c5c0bdc

ccfamily=`$cc -E cckind.c | grep '^[a-z]' | tr -s ' ' '-'`

This makes compilation of OCaml 4.08.0+beta1 fail on OSX with clang and no gcc.

Example failing log: https://logs.nix.ci/?key=nixos/nixpkgs.55570&attempt_id=a52f6083-51ee-432c-bdfd-1a5704c58db1

@vicuna
Copy link
Author

vicuna commented Mar 5, 2019

Comment author: Vincent L

This problem is still there with OCaml 4.08.0+beta2:

gcc -arch x86_64 -c -DSYS_macosx -I../runtime -DMODEL_default -o amd64.o amd64.S ||
{ echo "If your assembler produced syntax errors, it is probably";
echo "unhappy with the preprocessor. Check your assembler, or";
echo "try producing amd64.o by hand.";
exit 2; }
/nix/store/g9cis4hsnzcjkzfa77nif7kzq9bsqmpg-bash-4.4-p23/bin/bash: gcc: command not found
If your assembler produced syntax errors, it is probably
unhappy with the preprocessor. Check your assembler, or
try producing amd64.o by hand.
make[3]: *** [Makefile:370: amd64.o] Error 2

@vicuna vicuna added this to the 4.08.0 milestone Mar 14, 2019
@shindere
Copy link
Contributor

Closed by #2311

@vbgl
Copy link
Contributor

vbgl commented Mar 19, 2019

Thank you.

@shindere
Copy link
Contributor

shindere commented Mar 19, 2019 via email

@vicuna vicuna added the bug label Mar 20, 2019
@nojb nojb modified the milestones: 4.08.0, 4.08 Mar 29, 2019
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

4 participants