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

gcc11 on 13.x #934

Closed
TheSin- opened this issue Dec 24, 2022 · 6 comments
Closed

gcc11 on 13.x #934

TheSin- opened this issue Dec 24, 2022 · 6 comments

Comments

@TheSin-
Copy link
Member

TheSin- commented Dec 24, 2022

Not sure when this starts, and I'm sure it's known but it's not reported here so wanted to make sure others see it.

ld: targeted OS version does not support -reexported_symbols_list

This is the issue.

@TheSin-
Copy link
Member Author

TheSin- commented Dec 24, 2022

I should have mentioned this is Xcode 14.2 since it might be more dependant on the Xcode rather then the OS version

@nieder
Copy link
Member

nieder commented Dec 25, 2022

x86_64 or ARM?

@TheSin-
Copy link
Member Author

TheSin- commented Dec 25, 2022

Shoot I’m sorry still x86 atm, I’m working on a baseline for 13.x before I start on apple silicon

@dhomeier
Copy link
Contributor

I got a bit further down the way on arm (or when removing the -reexported_symbols_list flag on x86_64) to the point

xgcc: warning: could not understand version '13.1'
checking for x86_64-apple-darwin22.2.0-gcc... /opt/x64/src/fink.build/gcc11-11.3.0-2/darwin_objdir/./gcc/xgcc -B/opt/x64/src/fink.build/gcc11-11.3.0-2/darwin_objdir/./gcc/ -B/opt/x64/lib/gcc11/x86_64-apple-darwin22.2.0/bin/ -B/opt/x64/lib/gcc11/x86_64-apple-darwin22.2.0/lib/ -isystem /opt/x64/lib/gcc11/x86_64-apple-darwin22.2.0/include -isystem /opt/x64/lib/gcc11/x86_64-apple-darwin22.2.0/sys-include   -fno-checking
checking whether the C compiler works... no
configure: error: in `/opt/x64/src/fink.build/gcc11-11.3.0-2/darwin_objdir/x86_64-apple-darwin22.2.0/libgomp':
configure: error: C compiler cannot create executables

I think I had only built this on Monterey with Xcode 14.0 or 14.1, but it's apparently rather a macOS Ventura problem: iains/gcc-11-branch#5.
I've pushed a new revision including the Homebrew patch mentioned there to #928, tested on 13.1 arm and x86_64.

@nieder
Copy link
Member

nieder commented Dec 31, 2022

I've pushed @dhomeier 's relevant changes from #928. Please test.

@TheSin-
Copy link
Member Author

TheSin- commented Dec 31, 2022

Confirmed it fixed the build

Preparing to unpack .../gcc11-compiler_11.3.0-3_darwin-x86_64.deb ...
Unpacking gcc11-compiler (11.3.0-3) over (11.3.0-1) ...
Preparing to unpack .../gcc11-shlibs_11.3.0-3_darwin-x86_64.deb ...
Unpacking gcc11-shlibs (11.3.0-3) over (11.3.0-1) ...
Setting up gcc11-shlibs (11.3.0-3) ...
Setting up gcc11-compiler (11.3.0-3) ...
Processing triggers for man-db (2.9.4-2.1) ...
mandb: the setuid man user "man" does not exist
Updating the list of locally available binary packages.
Scanning dists/stable/main/binary-darwin-x86_64
New package: dists/stable/main/binary-darwin-x86_64/languages/gcc11-shlibs_11.3.0-3_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/languages/gcc11-compiler_11.3.0-3_darwin-x86_64.deb
New package: dists/stable/main/binary-darwin-x86_64/languages/gcc11_11.3.0-3_darwin-x86_64.deb

@nieder nieder closed this as completed Dec 31, 2022
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

3 participants