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

ecl build with Xcode 12 #30594

Closed
jhpalmieri opened this issue Sep 17, 2020 · 15 comments
Closed

ecl build with Xcode 12 #30594

jhpalmieri opened this issue Sep 17, 2020 · 15 comments

Comments

@jhpalmieri
Copy link
Member

The configure script for ecl fails with Xcode 12, with this kind of error in config.log:

conftest.c:4:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
  exit(0);
  ^
conftest.c:4:3: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
1 error generated.

upstream, in the develop branch, this is fixed in https://gitlab.com/embeddable-common-lisp/ecl/-/merge_requests/231

Upstream: Fixed upstream, but not in a stable release.

CC: @dimpase @spaghettisalat

Component: packages: standard

Author: John Palmieri

Branch/Commit: e5aeb62

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/30594

@jhpalmieri
Copy link
Member Author

comment:1

We can imitate the changes in #30593. Here is a patch to do that. It works, but is there a better way?

@jhpalmieri
Copy link
Member Author

Branch: u/jhpalmieri/ecl-vs-xcode12

@jhpalmieri
Copy link
Member Author

Commit: e5aeb62

@jhpalmieri
Copy link
Member Author

New commits:

e5aeb62trac 30594: allow ecl to build with Xcode 12.

@jhpalmieri
Copy link
Member Author

Author: John Palmieri

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

comment:5

this seems to come from an autoconf macro, not from configure.ac itself, but which one needs to be dug up.

aclocal.m4 has hand-written macros with C/C++ programs calling exit(), and not including stdlib.h (which, by right, must be done, according to man 3 exit) - I suppose it is from there.

Once Apple in its infinite wisdom allows the download of Xcode 12 on my machine to complete, I'll have a look (assuming it is reproducible on macOS 10).

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

comment:6

Is this on macOS 10, or only on Big Sur?

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

comment:7

should not be a blocker, as only beta tools are affected.

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

comment:8

I've provided a PR for ecl to fix this: https://gitlab.com/embeddable-common-lisp/ecl/-/merge_requests/231

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

Upstream: Completely fixed; Fix reported upstream

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

Changed upstream from Completely fixed; Fix reported upstream to Fixed upstream, but not in a stable release.

@dimpase

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

comment:9

the PR has been merged by upstream.

@dimpase
Copy link
Member

dimpase commented Sep 18, 2020

Reviewer: Dima Pasechnik

@vbraun
Copy link
Member

vbraun commented Sep 19, 2020

Changed branch from u/jhpalmieri/ecl-vs-xcode12 to e5aeb62

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