The OSX code signing is a major annoyance. We can't notarize our binaries
since we rewrite paths to shared libraries on start. But that modifies the
binary and invalidates any signature. I think we can clear the quarantine
flag, so you'd only get the gatekeeper warning dialog once. Maybe one of
you can try out if this works, just run
xattr -rd com.apple.quarantine /path/to/sage
to recursively clear the quarantine flag. After that sage should start
fine...
On Saturday, December 21, 2019 at 4:40:34 PM UTC+1, Clayton Cafiero wrote:
>
> macOS Catalina 10.15.2 (19C57)
>
> Tried downloading and installing binary (sage-8.9-OSX_10.14.6-x86_64.dmg)
> but when run macOS complained bitterly about every file Sage tried to load
> when starting with
>
> “python2.7” cannot be opened because the developer cannot be verified."
>
>
> If I use System Preferences > Security & Privacy to allow python2.7, then
> another warning appears:
>
>
> “libpython2.7.dylib” cannot be opened because the developer cannot be
> verified."
>
>
> ...I had patience for about the first 100 files (_locale.so, zlib.so,
> _collections.so, blah, blah, blah), then I threw in the towel and tried to
> build.
>
> % xcodebuild -version
> Xcode 11.2
> Build version 11B52
>
> Downloaded Sage 8.9 source from mirror. Followed instructions in
> README.md, specifically
>
> * __OS X:__
>* Make sure you have installed the most recent version
>of Xcode which you can install for free from the App Store.
>* You also need to install the "command line tools". When
>using OS X Mavericks, after installing Xcode, run
>`xcode-select --install` from a terminal window:
>Then click "Install" in the pop-up window.
>When using OS X Mountain Lion or earlier, you need to install the
>command line tools from Xcode: run Xcode; then from the File
>menu, choose "Preferences", then the "Downloads" tab, and then
>"Install" the Command Line Tools. You might also have Homebrew or
>a similar "Apple's missing package manager" system installed, with
>and libraries such gfortran, gmp, etc installed. (However, this
>is still experimental as of May 2019).
>
> ...
>
> Extract the tarball
>
>tar zxvf sage-*.tar.gz
>
> cd into the Sage directory and type make
>
>cd sage-*/
>make
>
> This ran for quite a while and then failed, informing me to
> check /Users/myname/Downloads/sage-8.9/logs/pkgs/gfortran-7.4.0.log for
> more information. This file has over 500k lines and ends with
>
> ../../../src/libssp/gets-chk.c:59:13: error: storage class specified for
> parameter '__chk_fail'
> extern void __chk_fail (void) __attribute__((__noreturn__));
> ^~
> ../../../src/libssp/gets-chk.c:63:1: error: expected '=', ',', ';', 'asm'
> or '__attribute__' before '{' token
> {
> ^
> In file included from
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h:110:0,
> from
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
> from ../../../src/libssp/gets-chk.c:39:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:447:9:
>
> error: old-style parameter declarations in prototyped function definition
> int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5,
> __IPHONE_2_0);
> ^~
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:447:1:
>
> error: parameter name omitted
> int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5,
> __IPHONE_2_0);
> ^~~
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h:447:1:
>
> error: parameter name omitted
> ../../../src/libssp/gets-chk.c:92:1: error: expected '{' at end of input
> }
> ^
> ../../../src/libssp/gets-chk.c:92:1: warning: control reaches end of
> non-void function [-Wreturn-type]
> }
> ^
> make[7]: *** [gets-chk.lo] Error 1
> make[6]: *** [all] Error 2
> make[5]: *** [all-target-libssp] Error 2
> make[4]: *** [all] Error 2
>
>
> Error building gfortran-7.4.0
>
>
>
> Zip of this complete file is attached.
>
> Any suggestions? Please advise. TYVVM.
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web