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

Update for GNAT FSF 14.1 #65

Merged
merged 4 commits into from
May 30, 2024
Merged

Update for GNAT FSF 14.1 #65

merged 4 commits into from
May 30, 2024

Conversation

Fabien-Chouteau
Copy link
Member

No description provided.

@reznikmm
Copy link
Contributor

@Fabien-Chouteau We need to change in gcc.anod:

                    "https://github.com/iains/gcc-13-branch/archive/refs/"
                    + "tags/gcc-13.2-darwin-r0.tar.gz"

to

                    "https://github.com/iains/gcc-14-branch/archive/refs/"
                    + "tags/gcc-14.1-darwin-r0.tar.gz"

@simonjwright
Copy link
Contributor

Following suggestions here, I've tried using later versions of Xcode (v1, v3; for v3, which doesn't provide m4, I've set M4=gm4); no change.

I've also tried removing the GCC configure setting --without-build-config, remembering vaguely a related issue (I had --with-build-config=no). No improvement.

The really strange thing is that this error happens in stage 2, where the compiler in use is the compiler built in stage 1 (i.e. a GCC 14.1 compiler). When I used my local GCC 14.1 to build a program with trampolines, it generated calls to ___gcc_nested_func_ptr_created and performed a static link, picking up the symbol from the new libheapt_w.a.

Using GCC 13.2, the same program with trampolines picks up ___builtin_nested_func_ptr_created from libgcc.a.

Running on Github, the built stage 2 gen_il-main

  • fails to run, looking for ___builtin_nested_func_ptr_created
  • which is the equivalent symbol generated by GCC 13.2
  • in libgcc_s.dylib
  • and is unsurprisingly missing from the version created by GCC 14.1.

but

  • if it needs that symbol, how did it link?
  • how come it needs that symbol anyway?
  • and why is it looking for a shared library?

@Fabien-Chouteau Fabien-Chouteau merged commit 7da1df3 into main May 30, 2024
24 of 28 checks passed
@Fabien-Chouteau Fabien-Chouteau deleted the gnat-fsf-14.1 branch May 30, 2024 14:19
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

Successfully merging this pull request may close these issues.

3 participants