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 does not build Xcode 15/ MacOS 12 & 13 #1073

Open
sth0 opened this issue Oct 3, 2023 · 2 comments
Open

gcc11 does not build Xcode 15/ MacOS 12 & 13 #1073

sth0 opened this issue Oct 3, 2023 · 2 comments

Comments

@sth0
Copy link
Contributor

sth0 commented Oct 3, 2023

2 issues.
One, must use fink version of patch and not CLT version which complains patches are out of order. Adding "patch" to BuildDepends resolves this.

Second issue is that I get a lot of warnings here about the version of install-info. It cumulates as a rejection of the "-i" option for some command (not sure which). However the build stops then and waits for input from stdin. This is somewhere in the searching for affected libraries(?). If it is the perl command that is throwing this error then the find command is not finding any files. There should be a check that the find command comes up empty and not pass an empty list to perl?

	perl -pi -e "s, /[^ ']*/gcc11-11.4.0-1/darwin_objdir/[^ ']*,,g" `find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name 'libasan.la'`

....
find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name 'libasan.la'
-i used with no filenames on the command line, reading from STDIN.

Here is a longer excerpt from the build output showing both issues. Does it need a specific version of install-info? Will attach a longer output where check why libasan and libubsan don't exist and if they are supposed to.

-Scott

"find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/info -name '.info'
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
basename $infofile
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments

# remove build path from .la files
perl -pi -e "s, \-L[^ ']*/gcc11-11.4.0-1/darwin_objdir/[^ ']*,,g" `find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name '*.la'`

find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name '*.la'

if [ "x86_64" = "arm" ]; then
	arch=aarch64
else
	arch=x86_64
	perl -pi -e "s, /[^ ']*/gcc11-11.4.0-1/darwin_objdir/[^ ']*,,g" `find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name 'libasan.la'`
	perl -pi -e "s, /[^ ']*/gcc11-11.4.0-1/darwin_objdir/[^ ']*,,g" `find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name 'libubsan.la'`
fi

find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name 'libasan.la'
-i used with no filenames on the command line, reading from STDIN.

find /opt/sw/src/fink.build/root-gcc11-11.4.0-1/opt/sw/lib/gcc11/lib -name 'libubsan.la'
-i used with no filenames on the command line, reading from STDIN.
^D
''

@sth0
Copy link
Contributor Author

sth0 commented Oct 4, 2023

Here is the full log. I typed ^D twice on the input to satisfy the perl calls.
fink-gcc11-log.txt

@dhomeier
Copy link
Contributor

dhomeier commented Oct 4, 2023

I have marked #1033 that deals with the whole lib*san situation ready for review now.
Since both are disabled upstream for macOS 13+, the respective dylibs will be missing from the Shlibs splitoff ; only solution to handle this I found was creating an extra dist-restricted package for Ventura (meaning we will also need and extra gcc11-14.0.info for Sonoma).
The patches from the Homebrew branch for arm64 are a bit cleaner (30% shorter and no line offsets), but I have not tested them with Xcode 15's patch, so if you could confirm if they work as is or still newhat the correct handling for thise isew nod Fink's patch, I'll update the BDeps accordingly.
Still warnings about install-info likely; I don't know what the correct handling for those is.

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