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

macOS 10.14 tracking issue #28817

Closed
9 tasks done
mistydemeo opened this issue Jun 8, 2018 · 96 comments
Closed
9 tasks done

macOS 10.14 tracking issue #28817

mistydemeo opened this issue Jun 8, 2018 · 96 comments
Labels
10.14 Mojave is specifically affected outdated PR was locked due to age stale No recent activity

Comments

@mistydemeo
Copy link
Member

mistydemeo commented Jun 8, 2018

macOS 10.14 beta 1 is out, along with betas of Xcode and the CLT.

Homebrew

Formulae

@mistydemeo mistydemeo added the 10.14 Mojave is specifically affected label Jun 8, 2018
@DomT4
Copy link
Member

DomT4 commented Jun 9, 2018

I can't get subversion to build on 10.14. It craps out during the swig bindings stage IIRC. I'll try and produce a full build log whenever I work out why my VM has suddenly lost the ability to connect to the internet 🙃.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jun 9, 2018

did you install /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg yet?

@DomT4
Copy link
Member

DomT4 commented Jun 9, 2018

No. I'll do that & see how it goes. (I really can't work out what they're trying to achieve with the CLT changes in 10.14 but 🤷‍♂️)

@DomT4
Copy link
Member

DomT4 commented Jun 9, 2018

Yeah, that resolved the issue.

@ilovezfs
Copy link
Contributor

ilovezfs commented Jun 9, 2018

does Homebrew/brew#4299 also resolve it without macOS_SDK_headers_for_macOS_10.14.pkg ?

@DomT4
Copy link
Member

DomT4 commented Jun 9, 2018

Is there a clean way to uninstall macOS_SDK_headers_for_macOS_10.14.pkg without having to disable system integrity & manually wipe out /usr/include?

@ilovezfs
Copy link
Contributor

ilovezfs commented Jun 9, 2018

I don't know whether pkgutil --unlink still works despite having been made undocumented. Maybe?

@ilovezfs
Copy link
Contributor

ilovezfs commented Jun 9, 2018

btw csrutil enable --without fs can ease testing without complete SIPlessness

@DomT4
Copy link
Member

DomT4 commented Jun 9, 2018

sudo pkgutil --unlink com.apple.pkg.CLTools_Executables seems to do nothing at least, and apparently that's the right one to aim for:

pkgutil --file-info /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

pkgid: com.apple.pkg.CLTools_Executables
pkg-version: 10.0.0.0.1.1527767617
install-time: 1528420005
uid: 0
gid: 80
mode: 644

I don't mind disabling SIP entirely/partially as it's only a VM; was just wondering if I could avoid rebooting the thing really, heh.

@DomT4
Copy link
Member

DomT4 commented Jun 10, 2018

Somehow subversion is now building fine, without that PR & with /usr/include killed. Cue confusion.

@DomT4
Copy link
Member

DomT4 commented Jun 12, 2018

nettle fails to build on the make check stage:

PASS: ecdh
PASS: eddsa-compress
PASS: eddsa-sign
PASS: eddsa-verify
PASS: ed25519
PASS: cxx
PASS: sexp-conv
PASS: pkcs1-conv
PASS: nettle-pbkdf2
Exported symbols in libnettle.a, lacking the nettle prefix:
00000000000001b0 T ____chkstk_darwin
0000000000000230 T ____chkstk_darwin
0000000000000350 T ____chkstk_darwin
0000000000000360 T ____chkstk_darwin
0000000000000380 T ____chkstk_darwin
FAIL: symbols
PASS: dlopen
====================
1 of 94 tests failed
====================
make[1]: *** [check] Error 1
make: *** [check] Error 2

@mistydemeo
Copy link
Member Author

00000000000001b0 T ____chkstk_darwin
0000000000000230 T ____chkstk_darwin
0000000000000350 T ____chkstk_darwin
0000000000000360 T ____chkstk_darwin
0000000000000380 T ____chkstk_darwin

This may be from the new LLVM version; it looks like the ___chkstk_darwin function was added as a part of stack checking. Essentially every binary compiled with Xcode 10 has ___chkstk_darwin.

I found a reference to this in this LLVM code review: https://reviews.llvm.org/D40857

@DomT4
Copy link
Member

DomT4 commented Jun 13, 2018

Thanks! That does indeed seem to be the case, poking around with nm. It looks like it only creeps into most rather than all libraries/binaries; I'm not sure why it doesn't appear completely consistently.

I've opened a PR with a tested fix in #28958. Are we reporting this stuff upstream yet or waiting to see what happens over time?

@mistydemeo
Copy link
Member Author

Are we reporting this stuff upstream yet or waiting to see what happens over time?

I'm reporting things that have been documented in release notes or otherwise seem to be intentional, and stuff that might not be I'm going to let sit for a few betas to see what happens. Not sure where this one falls, tbh!

@uyjulian
Copy link
Contributor

uyjulian commented Jun 24, 2018

There is an issue with tar archives containing multiple files with different cases on APFS case-insensitive filesystems, such as gobject-introspection (gobject-introspection-1.56.1/docs/reference/html/gi-gitypelib.html). It will fail with "Can't unlink already-existing object".

EASY WAY OUT for users: brew install <formulae_name> --force-bottle

FIX for developers/build-from-source: Install 10.14 Beta 6.

HACK for developers/build-from-source for 10.14 Beta 5 and lower: Install libarchive, then in /usr/local/Homebrew/Library/Homebrew/unpack_strategy/tar.rb in line 17 change "xf" to "xfk" and in line 17 change "tar" to "/usr/local/opt/libarchive/bin/tar".

@lukeberry99
Copy link

Hi @uyjulian I'm trying to install emacs-plus from d12frosted/emacs-plus cask... I'm getting gobject-introspection-1.56.1/docs/reference/html/gi-gitypelib.html: Can't unlink already-existing object

How wouid I go about fixing this? Where do I find download_strategy.rb? I'm really new to homebrew, any help would be greatly appreciated. Cheers!

@uyjulian
Copy link
Contributor

uyjulian commented Jun 28, 2018

@lukeberry99 /usr/local/Homebrew/Library/Homebrew/download_strategy.rb

You could have also found it yourself by running mdfind download_strategy.rb

@theeternalsw0rd
Copy link

theeternalsw0rd commented Jun 28, 2018

I've noticed a few weird issues. Files and directories are installing with weird permissions. Sometimes 0444, sometimes 0555. I've also had a similar issue to Homebrew/legacy-homebrew#40653 when trying to compile exa and the same workaround worked.

Exa also won't reinstall if its bin directory is not empty and won't install if it's bin directory does not exist. I had to uninstall exa and manually create the /usr/local/Cellar/exa/0.8.0/bin directory and then use brew reinstall instead of install because I guess the existence of the /usr/local/Cellar/exa/0.8.0 is enough to make brew think it is already installed.

I've also had issues where a package will fail to reinstall only to work the next time without changing anything.

Figured maybe something was wrong with my environment but brew doctor only gives a few warnings about some third party libraries present and the fact I'm running 10.14. I'm not sure what else to check.

@mistydemeo
Copy link
Member Author

I've also had a similar issue to Homebrew/legacy-homebrew#40653 when trying to compile exa and the same workaround worked.

Filed a radar: rdar://41651999. It looks like libgcc_s.10.4 and libgcc_s.10.5 are missing. Certain clang flags causes it to try to link against them - specifically values for --target. Namely:

  • --target=x86_64-apple-darwin - tries to link against libgcc_s.10.4
  • --target=x86_64-apple-darwin4 through --target=x86_64-apple-darwin8 - tries to link against libgcc_s.10.4
  • --target=x86_64-apple-darwin9 - tries to link against libgcc_s.10.5

This makes sense since Mac OS X 10.0 was Darwin 4, 10.4 was Darwin 8, 10.5 was Darwin 9, etc. It tracks that it tries to link against those specific libgcc_s versions for those targets. exa trying to pass --target=x86_64-apple-darwin is probably having the unexpected effect of it ending up targeting a very old OS X libc version, which is not obvious. It works as long as the stub libgcc_s files exist, and fails if they're gone.

@mistydemeo
Copy link
Member Author

@uyjulian @lukeberry99 This is the same issue as the texi2html bug we've got in the list. I've filed a radar already, so I expect to see it fixed in an upcoming beta.

@mistydemeo
Copy link
Member Author

@theeternalsw0rd I can't reproduce your permissions issues. I'll need your brew gist-logs exa and some more info about your setup to diagnose.

@karanmartian
Copy link

Hi @uyjulian regarding the gobject-introspection-1.56.1/docs/reference/html/gi-gitypelib.html). It will fail with "Can't unlink already-existing object issue, i am facing this error too and trying to edit the .rb file. When you say add "k" at line 236 you are saying "xk" or replace the "x" with "k" or some << k. I did not get that part. I am stuck at this error.

@uyjulian
Copy link
Contributor

uyjulian commented Jul 6, 2018

@karanmartian Set it to "xk"

@theeternalsw0rd
Copy link

@mistydemeo my other permissions issues didn't show up after the latest Xcode beta update. Still have the issue with exa though https://gist.github.com/theeternalsw0rd/d714c0935c32ef4a15516cca52e4e9cd (I get the same error whether installing or reinstalling so I'm only including an attempted reinstall)

@theeternalsw0rd
Copy link

exiftool won't build due to a lack of config.h for the system perl. I'm waiting on filing a bug with Apple until I've installed the latest OS build.

@karanmartian
Copy link

@uyjulian I made the required change using nano editor on the two lines in homebrew’s download_strategy.rb. nano allows me to save it but somehow the file is reverted back to the original version when the error shows up again on bash. Its not sticking..

@ilovezfs
Copy link
Contributor

ilovezfs commented Jul 7, 2018

You have to set HOMEBREW_DEVELOPER=1 in the environment or have used any brew developer command ever to suppress that behavior.

@karanmartian
Copy link

karanmartian commented Jul 7, 2018

Ok I set the that env variable to 1 and edited and now I get all sorts of errors in the syntax on bash:

/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require': /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:194: syntax error, unexpected << (SyntaxError) <<<<<<< Updated upstream

@DomT4
Copy link
Member

DomT4 commented Aug 30, 2018

postgresql and family are fixed, at the cost of the Mojave bottles lacking installed documentation for now.

@stale
Copy link

stale bot commented Sep 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label Sep 23, 2018
@fxcoudert fxcoudert removed the stale No recent activity label Sep 24, 2018
@fxcoudert
Copy link
Member

fxcoudert commented Sep 30, 2018

An update on the remaining Mojave / Xcode 10 issues, with links to the upstream bug reports. By order of install counts:

More than 100 installs per month

10 to 100 installs per month

Less than 10 installs per month

@PhilCai1993
Copy link

PhilCai1993 commented Oct 10, 2018

@fxcoudert facebook/chisel#249 (comment)
facebook/chisel
Some compiler errors are caused by Xcode new build system.

@stale
Copy link

stale bot commented Nov 26, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added stale No recent activity and removed stale No recent activity labels Nov 26, 2018
@stale
Copy link

stale bot commented Dec 22, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label Dec 22, 2018
@MikeMcQuaid
Copy link
Member

Closing as Mojave has been released for a while now and thinks are working well. Great work everyone 🎉

@nurey
Copy link

nurey commented Jan 3, 2019

I am getting the postgresql/perl issue still, when running brew install postgresql --with-python on Mojave.

checking for perl.h... no
configure: error: header file <perl.h> is required for Perl

@lock lock bot added the outdated PR was locked due to age label Feb 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
10.14 Mojave is specifically affected outdated PR was locked due to age stale No recent activity
Projects
None yet
Development

No branches or pull requests