I upgraded one of my Macs from 10.11 to macOS 10.12 Sierra beta 3, and now all of the binaries in my /nix
store die immediately with Illegal Instruction: 4
. It appears this may have something to do with the minimum OS X SDK version they were compiled with.
I tried to build from scratch by running the initial Nixpkgs shell script, but the binaries included in that tarball die with the same error.
Pretty sure that error arises from dyld
moaning about something in your Mach-O. Any chance you could try setting a few of these variables to ask dyld
to tell you what it's up to and see if it shows you what might be wrong?
I had to restore from backup to get work done, so I don't have access to the beta for the time being. I know that's not very helpful, but mainly I wanted to let you know that there's a probable issue coming with 10.12.
I may have a chance to try again using an external drive in the next week or two. If so, I'll follow up.
No problem, I'll try to take a look if I get some time. Thanks for flagging!
@copumpkin Is this going to happen for everyone once 10.12 is released?
Probably? Hard to say without knowing what caused it, but I doubt it was
anything user-specific
On Tue, Aug 2, 2016 at 22:17 Matthew Justin Bauer [email protected]
wrote:
@copumpkin https://github.com/copumpkin Is this going to happen for
everyone once 10.12 is released?—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/17372#issuecomment-237113504,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAKPydh5xfkfLPNRyNxTEsXqsiTzBXzks5qb_oegaJpZM4JYqmG
.
Here's the output of nix-store --init
with the DYLD
environment variables set. This was on OS X 10.12 Beta (16A293a).
Same issue on 10.12 Beta (16A284a)
| => nix-store --init
Illegal instruction: 4
Agreed. My log with debug variables set looks pretty much the same and I (being an OS X noob) can’t see anything interesting in it.
@copumpkin I’m really interested in getting things working again. Any ideas where to look?
@copumpkin - I'm also interested, let me know if there is anything I can do to help. Presumably I need to know how to compile nix for OS X, and how to debug with gdb
Hmm, I just installed 16A320 in a VM and everything seems to be working smoothly. Can someone with the issue see if it still occurs in the latest version?
Is this some kind of secret build available only for people with paid accounts? I see it neither in App Store nor on the website.
So, basically, I just reinstalled Nix manually (by downloading the installation tarball, extracting and registering it in the store). Binaries that ship there work just fine so I’m now reinstalling the environment. Hopefully it will work.
What I don’t get is why exactly nix binaries which I had in my store did not work.
This appears to be fixed in 16A320 for me, as well, including the binaries that Nix is currently grabbing from my own private binary cache that were built on a 10.11 machine.
(I am, however, running into other issues, including a few link errors. I'll work on those and file separate issues if needed.)
Nope, looks like I need to rebuild from scratch just as @kirelagin had to do. On a fresh 10.12 install, I was able to use most of my pre-built binaries from my private binary cache, but I had problems with several Haskell packages which failed at link time on libiconv. On an in-place 10.12 upgrade, however, I got the Illegal Instruction: 4
error when trying to run nix-env
. Strange.
Anyway, downloading the nix tarballs and starting from scratch appears to be working so far. I'll report any issues that come up during the rebuild.
@dhess Regarding libiconv you might want to have a look at #18461.
Might it be that the upgrade procedure somehow corrupts binaries in the store?
I was smart enough to collect garbage after the rebuild, so I don’t have them around anymore. Does anyone still have?
I've just upgraded to Sierra, and can confirm that everything working smoothly.
Unfortunately, not for me. All binaries from my nix store fail with Illegal Instruction
or Segmentation Fault
.
@cresh Could you please share some binaries that crash, e.g. nix-env
together with hashes of store paths they are stored at?
@kirelagin Here is zipped /nix/store/808dyfyng75li88iw95j3adhk7c9j76l-nix-1.11.2/bin/nix-env
that crashes: nix-env.zip.
I'm already working on recovering from the problem: Removing all nix paths from my $PATH
and downloading and installing nix again gave me a working nix-env
, now I'm able to reinstall the broken binaries. Is there an easy way to have nix-env
reinstall everything that is installed?
@cresh thanks!
Not really, if you simply installed the packages into environment. But this might be a good opportunity to change the way you manage the set of installed packages: https://nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once
I'm trying to install a version of binutils-raw
on Sierra for cross compiling, but got this:
unpacking source archive /nix/store/rxf5acfv3r1w5ax06dsffsnz5hxrr294-binutils-2.27.tar.bz2
/nix/store/b3skbm6gilyl7jizwn060s97l7m9kl92-stdenv-darwin-boot-4/setup: line 534: 50996 Illegal instruction: 4 tar xf "$fn"
do not know how to unpack source archive /nix/store/rxf5acfv3r1w5ax06dsffsnz5hxrr294-binutils-2.27.tar.bz2
builder for ‘/nix/store/0qjyzp87i8dnlqvvpqpmg7mw9lhrk07f-binutils-2.27-x86_64-none-elf.drv’ failed with exit code 1
This happens on a fresh install so I don't think removing nix store and reinstall would solve anything...
I'm having the same issue after upgrading to Sierra. The log is interesting though:
these derivations will be built:
/nix/store/lv7aifp7q6cb3l7ky3l736bz5rs5xs2w-retroarch-bare-1.3.4.drv
building path(s) ‘/nix/store/xmhlawnjdcndd9ifwvfhxki1l155jwlj-retroarch-bare-1.3.4’
Finding dependencies for /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation...
Finding dependencies for /usr/lib/libicucore.A.dylib...
Finding dependencies for /usr/lib/libSystem.B.dylib...
Finding dependencies for /usr/lib/system/libsystem_network.dylib...
Finding dependencies for /usr/lib/system/libsystem_pthread.dylib...
Finding dependencies for /usr/lib/system/libsystem_kernel.dylib...
Finding dependencies for /usr/lib/system/libsystem_platform.dylib...
Finding dependencies for /usr/lib/system/libcompiler_rt.dylib...
Finding dependencies for /usr/lib/system/libsystem_m.dylib...
Finding dependencies for /usr/lib/system/libdyld.dylib...
Finding dependencies for /usr/lib/system/libsystem_sandbox.dylib...
Finding dependencies for /usr/lib/system/libsystem_blocks.dylib...
Finding dependencies for /usr/lib/system/libsystem_c.dylib...
Finding dependencies for /usr/lib/system/libsystem_notify.dylib...
Finding dependencies for /usr/lib/system/libxpc.dylib...
Finding dependencies for /usr/lib/system/libsystem_malloc.dylib...
Finding dependencies for /usr/lib/system/libmacho.dylib...
Finding dependencies for /usr/lib/system/libdispatch.dylib...
Finding dependencies for /usr/lib/libobjc.A.dylib...
Finding dependencies for /usr/lib/libc++abi.dylib...
Finding dependencies for /usr/lib/libauto.dylib...
Finding dependencies for /usr/lib/libc++.1.dylib...
Finding dependencies for /usr/lib/system/libunwind.dylib...
Finding dependencies for /usr/lib/system/libkeymgr.dylib...
Finding dependencies for /usr/lib/system/libsystem_asl.dylib...
Finding dependencies for /usr/lib/system/libsystem_trace.dylib...
Finding dependencies for /usr/lib/system/libsystem_symptoms.dylib...
Finding dependencies for /usr/lib/system/libsystem_info.dylib...
Finding dependencies for /usr/lib/system/liblaunch.dylib...
Finding dependencies for /usr/lib/system/libsystem_dnssd.dylib...
Finding dependencies for /usr/lib/system/libcorecrypto.dylib...
Finding dependencies for /usr/lib/system/libsystem_configuration.dylib...
Finding dependencies for /usr/lib/system/libcommonCrypto.dylib...
Finding dependencies for /usr/lib/system/libsystem_networkextension.dylib...
Finding dependencies for /usr/lib/system/libquarantine.dylib...
Finding dependencies for /usr/lib/system/libsystem_secinit.dylib...
Finding dependencies for /usr/lib/system/libcache.dylib...
Finding dependencies for /usr/lib/system/libsystem_coreservices.dylib...
Finding dependencies for /usr/lib/system/libcopyfile.dylib...
Finding dependencies for /usr/lib/system/libsystem_coretls.dylib...
Finding dependencies for /usr/lib/system/libremovefile.dylib...
Finding dependencies for /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation...
Finding dependencies for /usr/lib/libDiagnosticMessagesClient.dylib...
Finding dependencies for /usr/lib/libz.1.dylib...
Finding dependencies for /System/Library/Frameworks/CFNetwork.framework/CFNetwork...
Finding dependencies for /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit...
Finding dependencies for /usr/lib/libbsm.0.dylib...
Finding dependencies for /usr/lib/system/libkxld.dylib...
Finding dependencies for /usr/lib/libenergytrace.dylib...
Finding dependencies for /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork...
Finding dependencies for /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration...
Finding dependencies for /usr/lib/libnetwork.dylib...
Finding dependencies for /usr/lib/libcoretls.dylib...
Finding dependencies for /usr/lib/libcoretls_cfhelpers.dylib...
Finding dependencies for /System/Library/Frameworks/Security.framework/Versions/A/Security...
Finding dependencies for /usr/lib/libpam.2.dylib...
Finding dependencies for /usr/lib/libxar.1.dylib...
Finding dependencies for /usr/lib/libxml2.2.dylib...
Finding dependencies for /usr/lib/liblzma.5.dylib...
Finding dependencies for /usr/lib/libbz2.1.0.dylib...
Finding dependencies for /usr/lib/libsqlite3.dylib...
Finding dependencies for /usr/lib/libOpenScriptingUtil.dylib...
Finding dependencies for /usr/lib/libpcap.A.dylib...
Finding dependencies for /System/Library/Frameworks/IOKit.framework/IOKit...
Finding dependencies for /System/Library/Frameworks/CoreAudio.framework/CoreAudio...
Finding dependencies for /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio...
Finding dependencies for /System/Library/Frameworks/CoreData.framework/CoreData...
Finding dependencies for /usr/lib/libcompression.dylib...
Finding dependencies for /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore...
Finding dependencies for /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS...
Finding dependencies for /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth...
Finding dependencies for /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport...
Finding dependencies for /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration...
Finding dependencies for /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata...
Finding dependencies for /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices...
Finding dependencies for /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib...
Finding dependencies for /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib...
Finding dependencies for /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib...
Finding dependencies for /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync...
Finding dependencies for /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore...
Finding dependencies for /usr/lib/libcups.2.dylib...
Finding dependencies for /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos...
Finding dependencies for /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal...
Finding dependencies for /usr/lib/libresolv.9.dylib...
Finding dependencies for /usr/lib/libheimdal-asn1.dylib...
Finding dependencies for /System/Library/Frameworks/GSS.framework/Versions/A/GSS...
Finding dependencies for /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth...
Finding dependencies for /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory...
Finding dependencies for /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation...
Finding dependencies for /usr/lib/libiconv.2.dylib...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis...
Finding dependencies for /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox...
Finding dependencies for /usr/lib/libmecabra.dylib...
Finding dependencies for /usr/lib/libcmph.dylib...
Finding dependencies for /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling...
Finding dependencies for /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji...
Finding dependencies for /usr/lib/libmarisa.dylib...
Finding dependencies for /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData...
Finding dependencies for /usr/lib/libChineseTokenizer.dylib...
Finding dependencies for /usr/lib/libCRFSuite.dylib...
Finding dependencies for /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices...
Finding dependencies for /usr/lib/libxslt.1.dylib...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit...
Finding dependencies for /usr/lib/liblangid.dylib...
Finding dependencies for /usr/lib/libarchive.2.dylib...
Finding dependencies for /System/Library/Frameworks/DiskArbitration.framework/DiskArbitration...
Finding dependencies for /System/Library/Frameworks/Security.framework/Security...
Finding dependencies for /System/Library/Frameworks/NetFS.framework/NetFS...
Finding dependencies for /System/Library/Frameworks/OpenDirectory.framework/OpenDirectory...
Finding dependencies for /System/Library/Frameworks/ServiceManagement.framework/ServiceManagement...
Finding dependencies for /System/Library/Frameworks/CoreServices.framework/CoreServices...
Finding dependencies for /System/Library/Frameworks/SecurityFoundation.framework/SecurityFoundation...
Finding dependencies for /System/Library/Frameworks/CoreWLAN.framework/CoreWLAN...
Finding dependencies for /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN...
Finding dependencies for /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi...
Finding dependencies for /System/Library/Frameworks/IOBluetooth.framework/IOBluetooth...
Finding dependencies for /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth...
Finding dependencies for /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth...
Finding dependencies for /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit...
Finding dependencies for /System/Library/Frameworks/Accelerate.framework/Accelerate...
Finding dependencies for /System/Library/Frameworks/IOSurface.framework/IOSurface...
Finding dependencies for /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration...
Finding dependencies for /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics...
Finding dependencies for /System/Library/Frameworks/CoreText.framework/CoreText...
Finding dependencies for /System/Library/Frameworks/ImageIO.framework/ImageIO...
Finding dependencies for /System/Library/Frameworks/ApplicationServices.framework/ApplicationServices...
Finding dependencies for /System/Library/Frameworks/Foundation.framework/Foundation...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/OpenGL...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib...
Finding dependencies for /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib...
Finding dependencies for /System/Library/Frameworks/CoreVideo.framework/CoreVideo...
Finding dependencies for /System/Library/Frameworks/Metal.framework/Versions/A/Metal...
Finding dependencies for /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib...
Finding dependencies for /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib...
Finding dependencies for /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo...
Finding dependencies for /System/Library/Frameworks/OpenCL.framework/OpenCL...
Finding dependencies for /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL...
Finding dependencies for /System/Library/Frameworks/QuartzCore.framework/QuartzCore...
Finding dependencies for /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore...
Finding dependencies for /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage...
Finding dependencies for /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore...
Finding dependencies for /usr/lib/libFosl_dynamic.dylib...
Finding dependencies for /System/Library/PrivateFrameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Carbon...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink...
Finding dependencies for /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI...
Finding dependencies for /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO...
Finding dependencies for /usr/lib/libate.dylib...
Finding dependencies for /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv...
Finding dependencies for /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing...
Finding dependencies for /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils...
Finding dependencies for /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211...
Finding dependencies for /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer...
Finding dependencies for /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport...
Finding dependencies for /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices...
Finding dependencies for /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight...
Finding dependencies for /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay...
Finding dependencies for /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition...
Finding dependencies for /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels...
Finding dependencies for /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon...
Finding dependencies for /System/Library/Frameworks/AudioUnit.framework/AudioUnit...
Finding dependencies for /System/Library/Frameworks/CoreMIDI.framework/CoreMIDI...
Finding dependencies for /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI...
Finding dependencies for /usr/lib/libexpat.1.dylib...
Finding dependencies for /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox...
Finding dependencies for /System/Library/Frameworks/AppKit.framework/AppKit...
Finding dependencies for /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation...
Finding dependencies for /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices...
Finding dependencies for /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup...
Finding dependencies for /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis...
Finding dependencies for /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication...
Finding dependencies for /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols...
Finding dependencies for /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication...
Finding dependencies for /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit...
Finding dependencies for /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage...
Finding dependencies for /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary...
Finding dependencies for /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore...
Finding dependencies for /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression...
Finding dependencies for /usr/lib/libScreenReader.dylib...
Finding dependencies for /System/Library/Frameworks/Cocoa.framework/Cocoa...
Finding dependencies for /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa...
Finding dependencies for /dev/zero...
Finding dependencies for /dev/random...
Finding dependencies for /dev/urandom...
Finding dependencies for /bin/sh...
Finding dependencies for /usr/lib/libncurses.5.4.dylib...
builder for ‘/nix/store/lv7aifp7q6cb3l7ky3l736bz5rs5xs2w-retroarch-bare-1.3.4.drv’ failed due to signal 4 (Illegal instruction: 4)
error: build of ‘/nix/store/lv7aifp7q6cb3l7ky3l736bz5rs5xs2w-retroarch-bare-1.3.4.drv’ failed
I can't figure out if the "Finding dependencies" is coming from nixpkgs or dyld or something else. Any ideas?
I seems like these was shaken out in Hydra in the weeks following the first report of this issue? I had this issue with a few accounts after upgrade and just did /path/to/working/nix-channel --update
and /path/to/working/nix-env -u --leq
in each of them, and that made everything work again.
@matthewbauer finding dependencies is some Mach-O-navigating code that's in Nix to find transitive library dependencies of impure things.
I think the Illegal Instruction: 4
issue in Sierra is caused by our libSystem.dylib
shenanigans. I'm investigating further but I'm seeing the same thing on my Sierra box now. If I were to guess, some of the weird stuff we were doing with libSystem
is no longer accepted by the dyld
on Sierra.
Status update: I have a full build from scratch working on Sierra but there's one fairly easy to fix bug preventing it from running on El Cap that I'll fix tonight. I'll probably just push to master after that since master is completely broken on Sierra right now, unless anyone objects.
The fix should address the clock_gettime
issue as well as a few things like it. I consider it a bit of a stopgap until we have a working libc
(and maybe libsyscall
) but it's using a similar approach to the one that kept libSystem
working from 10.9 to 10.11, so it should be reasonably stable.
@copumpkin Thanks for the update. Looking forward to the fixes.
Sorry all for the delay, but something came up last night and I was unable to put in the time to finish the swing on this. I foresee nothing blocking me tonight, however. Apologies for anyone with a broken system waiting patiently for me to finish!
Rather than push straight to master, I figured I'd put up a PR (#19470) for people who want to give it a go. You're welcome to try it pre-10.11 but I don't expect it to work and don't feel like spinning up my old VMs to find out. I aim for it to work on 10.11 and 10.12, so if you spot any degradation there, please leave that feedback.
I think we can close this now thanks to 77d1fb94f18bc5a8cbc72f0ab8da1a28df1752f5, yes?
Will a new release be made?
Release of what?
nixpkgs? Is that not how it works? I'll just try installing everything again.
Oh, sorry, nixpkgs doesn't really get official releases. We have an automated build/test process on hydra.nixos.org that will update a channel when things succeed. It looks like it hasn't updated yet so I'm not sure a full reinstall will help you yet, but it should fairly soon.
I assume this can be closed.
Hi,
I got this error posted in here when try building my project: https://github.com/reflex-frp/reflex-platform/issues/106
i'm using macos sierra..
@Rizary I'm guessing your nixpkgs must be really old? Did you install nix a long time ago and not update your channels since?
I think I remember seeing a pinned version of nixpkgs in the source of reflex-platform. The only sierra specific issue that I know of is https://github.com/NixOS/nixpkgs/issues/22810
Getting this error on HighSierra (10.13.3 (17D47)) with some operations of the cvs
binary; all other binaries on the System work, though!
$ nix-env -q --installed | grep cvs
cvs-1.12.13
$ nix-channel --list
nixpkgs http://nixos.org/channels/nixpkgs-unstable
$ cvs
Usage: cvs [cvs-options] command [command-options-and-arguments]
where cvs-options are -q, -n, etc.
(specify --help-options for a list of options)
{cut}
$ cvs login
Illegal instruction: 4
I'm guessing you installed cvs
using nix-env
before we fixed the High Sierra support, and the old one is still around? The version of CVS isn't what matters here, but more the toolchain it was built with, which wouldn't be reflected in anything but its store hash.
I'd try getting rid of it and reinstalling it now that you're on a recent channel.
@copumpkin the Installation is brand new (<2 weeks), so I guess not?
Weird! Can you open a new issue with more information then? Probably under the nixpkgs repo (since this isn't strictly a Nix-the-tool issue, even though the symptom is the same), with the standard set of information in the issue template there: macOS version, nixpkgs version, and so on.
It should be your segmentation fault. It's weird that on MacOS, it's shown like this.
Most helpful comment
Status update: I have a full build from scratch working on Sierra but there's one fairly easy to fix bug preventing it from running on El Cap that I'll fix tonight. I'll probably just push to master after that since master is completely broken on Sierra right now, unless anyone objects.
The fix should address the
clock_gettime
issue as well as a few things like it. I consider it a bit of a stopgap until we have a workinglibc
(and maybelibsyscall
) but it's using a similar approach to the one that keptlibSystem
working from 10.9 to 10.11, so it should be reasonably stable.