gap-4.10 causes error building sage

31 views
Skip to first unread message

Aaron Lauve

unread,
Jun 4, 2020, 10:29:33 PM6/4/20
to sage-devel
It's been awhile since I built sage from source. (I think I was running 8.5?)
In the meantime, I migrated files from one laptop to another, and upgraded operating systems, so not sure where the problem lies.

Running macOS 10.15.3 on a 2019 Airbook.

I tried the following:

git branch master
git pull
make distclean && make

************************************************************************

Error installing package gap-4.10.2.p1

************************************************************************

Please email sage-devel (http://groups.google.com/group/sage-devel)


Fwiw, I first tried installing gcc with homebrew before getting started with the sage build.
When I first got the error, I uninstalled hoping that would fix things, but still no good.

Thanks for any help you can offer!

Aaron
gap-4.10.2.p1.log

Matthias Koeppe

unread,
Jun 4, 2020, 10:41:19 PM6/4/20
to sage-devel
From the log:
duplicate symbol '_compress' in:
    obj/src/.libs/dteval.o
    /usr/local/lib/libz.a(compress.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I'd suggest to check where this version of /usr/local/lib/libz.a comes from. 
Homebrew normally installs zlib keg-only, i.e., in /usr/local/opt/zlib/, not there.
Try removing it and/or reinstalling homebrew's zlib.

Aaron Lauve

unread,
Jun 5, 2020, 8:21:59 AM6/5/20
to sage-devel
That was it!

This seems to be related to a mysql install. I'll report back on any concomitant problems/solutions with that.
Reply all
Reply to author
Forward
0 new messages