SageMath-9.2 does not start with Jupyter on macOS 10.15.7

217 views
Skip to first unread message

phiparis19

unread,
Nov 4, 2020, 1:18:52 AM11/4/20
to sage-support
Hello,

After upgrading from SageMath-9.1 to SageMath-9.2, 

./sage -n jupyter fails

ModuleNotFoundError: No module named '_ssl'

The Jupyter notebook requires ssl, even if you do not use https. Install the openssl development packages in your system and then rebuild Python (sage -f python3).

Unfortunately,  openssl installation has failed :

[openssl-1.1.1g] Undefined symbols for architecture x86_64: 

.... 

[openssl-1.1.1g] ld: symbol(s) not found for architecture x86_64 

[openssl-1.1.1g] clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same issue when recompiling sage from sage-9.2.tar.gz

./configure --enable-openssl=yes

make

[patch-2.7.5] ld: symbol(s) not found for architecture x86_64


I have macports and hombres installed 

So I dit

 sudo mv /opt/local /opt/local_old

sudo mv /usr/local/Homebrew /usr/local/Homebrew_old

before typing make for sage

See file enclose for configure output

Thank you for helping

configure_log.txt

Dima Pasechnik

unread,
Nov 4, 2020, 2:30:54 AM11/4/20
to sage-support
As far as building from source is concerned, I'd recommend using
Homebrew, instead of trying
to build most packages from scratch (as it is the case if you don't use it).
Please pay attention that you need to run

source .homebrew-build-env


and to the list of packages you'd install printed out by ./configure
(at the end of its run)
Unless you use a non-standard installaI don't think you achieve much
by the latter, as Homebrew installs several packages directly into
/usr/local (i.e. /usr/local/bin, etc), so this is more or less just
breaks Homebrew, but is very far from uninstalling it.


>
> before typing make for sage
>
> See file enclose for configure output
>
> Thank you for helping
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/d13b96e9-92ec-4128-b219-92384d3e3110n%40googlegroups.com.

John H Palmieri

unread,
Nov 4, 2020, 12:18:41 PM11/4/20
to sage-support


On Tuesday, November 3, 2020 at 11:30:54 PM UTC-8, Dima Pasechnik wrote:
As far as building from source is concerned, I'd recommend using
Homebrew, instead of trying
to build most packages from scratch (as it is the case if you don't use it).
Please pay attention that you need to run

source .homebrew-build-env


and to the list of packages you'd install printed out by ./configure
(at the end of its run)

And after installing new system packages, it's a good idea to run 'make distclean' and then rerun './configure' (with whatever options you want to pass to it).
 
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.

phiparis19

unread,
Nov 4, 2020, 2:53:14 PM11/4/20
to sage-support

Thank you for helping me.

I followed the instructions at the end of ./configure output  (brew install ...)

I get ld: warning: ignoring file ./.libs/libtuneup-s1.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )

Error installing package gf2x-1.3.0

I have also tried to compile sage-9.2 on another partition of my mac : il fails after 4h of compilation for the same reason for one of the last packages.

Isuru Fernando

unread,
Nov 4, 2020, 3:04:09 PM11/4/20
to sage-s...@googlegroups.com
> I get ld: warning: ignoring file ./.libs/libtuneup-s1.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )

Can you send `gf2x`'s `config.log`?

This happens when you are using a linker without LTO support.

Isuru

To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6c90038f-0d0c-4935-bb3e-20170e82dcdbn%40googlegroups.com.

phiparis19

unread,
Nov 4, 2020, 3:30:13 PM11/4/20
to sage-support
Here is the file
Thank you

gf2x-1.3.0.log

Isuru Fernando

unread,
Nov 4, 2020, 3:45:52 PM11/4/20
to sage-s...@googlegroups.com
What do you get for each of the commands?

which gcc
which g++
which ar
which ranlib
gcc -print-prog-name=ld
file /Applications/sage-9.2/local/var/tmp/sage/build/gf2x-1.3.0/.libs/libtuneup-s1.a

Isuru

phiparis19

unread,
Nov 4, 2020, 4:09:41 PM11/4/20
to sage-support

/usr/bin/gcc

/usr/bin/g++

/usr/local/bin/ar

/usr/local/bin/ranlib

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld

/Applications/sage-9.2/local/var/tmp/sage/build/gf2x-1.3.0/.libs/libtuneup-s1.a: cannot open `/Applications/sage-9.2/local/var/tmp/sage/build/gf2x-1.3.0/.libs/libtuneup-s1.a' (No such file or directory)

Philippe

Isuru Fernando

unread,
Nov 4, 2020, 5:39:58 PM11/4/20
to sage-s...@googlegroups.com
Looks to me like you are using gcc,g++ from the system and ar, ranlib from homebrew. Can you try switching all to system or all to homebrew?

Isuru

John H Palmieri

unread,
Nov 4, 2020, 5:50:04 PM11/4/20
to sage-support
By way of comparison, I am using the system's version of all of these (/usr/bin/...), not homebrew's. Sage builds fine for me.

phiparis19

unread,
Nov 5, 2020, 10:54:51 AM11/5/20
to sage-support
Hello 

by doing 

sudo mv /usr/local/bin/ar /usr/local/bin/ar_tmp

and

sudo mv /usr/local/bin/ranlib /usr/local/bin/ranlib_tmp

the compilation is much doing better but it fails here

[sagelib-9.2] error: command 'gcc' failed with exit status 1

Due  this warming 

[sagelib-9.2] ld: warning: dylib (/usr/local/lib/libgmp.dylib) was built for newer macOS version (10.15) than being linked (10.9)

ls -la /usr/local/lib/libmpc.dylib 

lrwxr-xr-x  1 kassad  admin  39  4 nov 19:48 /usr/local/lib/libmpc.dylib -> ../Cellar/libmpc/1.2.1/lib/libmpc.dylib

I did once more

brew install mpc

and

Testing that Sage starts...

[2020-11-05 16:47:58] SageMath version 9.2, Release Date: 2020-10-24

Yes, Sage starts.


real 309m25,435s

user 285m12,693s

sys 37m56,735s

Sage build/upgrade complete!


THANK YOU

Reply all
Reply to author
Forward
0 new messages