[GAP Forum] Having trouble installing GAP 4.7.8

Alexander Konovalov alexander.konovalov at st-andrews.ac.uk
Sun Aug 16 21:58:36 BST 2015


Thanks. However, I can't reproduce this with exactly the same version of gcc(clang):

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

on a MacBook Pro running OS X Yosemite 10.10.4. Your build log contained the
lines 

>>> ***Error: GMP self-check has failed. See
>>> bin/x86_64-apple-darwin14.1.0-gcc-default64/extern/gmp-5.0.5/build_log
>> for details.***

- have you checked what's in this file? Is the problem reproducible?


> On 16 Aug 2015, at 21:33, Will Chen <oxeimon at gmail.com> wrote:
> 
> Here's the output from gcc -v
> 
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> 
> Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
> 
> Target: x86_64-apple-darwin14.1.0
> 
> Thread model: posix
> 
> I'm trying to use your option 2. How do I install the gcc compiler with
> homebrew? I think I've installed homebrew, and entered "brew install wget".

Homebrew installation itself does not contain gcc. You need to call now

	brew install gcc 

to install it. Oh, and then call

make clean
export CC=/usr/local/bin/gcc-4.9
./configure
make

since of course there is no need to use --with-gmp=no as we expect that this time GMP will be compiled.

HTH
Alexander


> 
> However, this is the output when I follow your instructions in (2):
> 
> Zephyr:gap4r7 wchen$ ls
> 
> CITATION config.log extern makepkgs sysinfo.in
> 
> INSTALL configure gap.ini pkg trans
> 
> Makefile.in configure.in gap.shi prim tst
> 
> bin doc grp small
> 
> cnf etc lib src
> 
> Zephyr:gap4r7 wchen$ make clean
> 
> make: *** No rule to make target `clean'.  Stop.
> 
> Zephyr:gap4r7 wchen$ export CC=/usr/local/bin/gcc-4.9
> 
> Zephyr:gap4r7 wchen$ ./configure --with-gmp=no
> 
> checking for gcc... /usr/local/bin/gcc-4.9
> 
> checking whether the C compiler works... no
> 
> configure: error: in `/Users/wchen/gap_installation/failed install/gap4r7':
> 
> configure: error: C compiler cannot create executables
> 
> See `config.log' for more details
> 
> Zephyr:gap4r7 wchen$ make
> 
> make: *** No targets specified and no makefile found.  Stop.
> 
> Zephyr:gap4r7 wchen$
> 
> 
> :-(
> 
> - will
> 
> On Sat, Aug 15, 2015 at 4:20 PM, Alexander Konovalov <
> alexander.konovalov at st-andrews.ac.uk> wrote:
> 
>> Thank you for reporting this. Could you please tell which compiler
>> are you using to build GAP by sending me the output of gcc -v ?
>> On OS X, after XCode installation gcc actually calls clang, and my
>> guess is that this may be may be a version of clang which is not
>> compatible with GMP, so building GMP fails. There are several
>> ways to fix this:
>> 
>> 
>> 1) the fastest way is to build GAP without GMP support
>> 
>> make clean
>> ./configure --with-gmp=no
>> make
>> 
>> at the cost of a slightly slower integer arithmetic.
>> 
>> 
>> 2) Install gcc compiler using, for example, homebrew (http://brew.sh),
>> and then call
>> 
>> make clean
>> export CC=/usr/local/bin/gcc-4.9
>> ./configure --with-gmp=no
>> make
>> 
>> (adjust the part in export=... as required).
>> 
>> 
>> Unfortunately, the BOB installer does not work at the moment.
>> 
>> 
>> Hope this helps
>> Alexander
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> On 15 Aug 2015, at 18:44, Will Chen <oxeimon at gmail.com> wrote:
>>> 
>>> I'm running OS X Yosemite on a 2013 Macbook Pro, and I've tried
>> installing
>>> gap 4.7.8 in two ways:
>>> 
>>> 1. I downloaded the gap4r7p8_2015_06_09-20_27.tar file from here:
>>> http://www.gap-system.org/Releases/index.html
>>> Then I unpacked it, and in the resulting gap4r7 directory I entered
>>> "./configure; make"
>>> 
>>> The configure seemed to go through without trouble. Make however ended
>>> in...:
>>> 
>>> ...
>>> 
>>> 
>>> x gmp-5.0.5/tune/x86_64.asm
>>> 
>>> x gmp-5.0.5/version.c
>>> 
>>> x gmp-5.0.5/ylwrap
>>> 
>>> 
>>> Configuring GMP. Logging to
>>> bin/x86_64-apple-darwin14.1.0-gcc-default64/extern/gmp-5.0.5/build_log.
>>> Please wait...
>>> 
>>> 
>>> 
>>> Building GMP. Logging to
>>> bin/x86_64-apple-darwin14.1.0-gcc-default64/extern/gmp-5.0.5/build_log.
>>> Please wait...
>>> 
>>> 
>>> 
>>> Checking GMP. Logging to
>>> bin/x86_64-apple-darwin14.1.0-gcc-default64/extern/gmp-5.0.5/build_log.
>>> Please wait...
>>> 
>>> 
>>> 
>>> ***Error: GMP self-check has failed. See
>>> bin/x86_64-apple-darwin14.1.0-gcc-default64/extern/gmp-5.0.5/build_log
>> for
>>> details.***
>>> 
>>> 
>>> make[1]: *** [gmp_build] Error 1
>>> 
>>> make: *** [extern] Error 2
>>> 
>>> 
>>> I don't understand the error. I've installed XCode, which seems to
>> already
>>> be packaged with the apple command line tools.
>>> 
>>> 
>>> 2. I tried using BOB, following the directions here:
>>> http://gap-system.github.io/bob/#downloadtab
>>> 
>>> including installing MacPorts and entering "sudo port install readline
>>> +universal ncurses +universal gawk wget xorg-libX11 xorg-libXaw" in the
>>> terminal.
>>> 
>>> That seemed to go through fine, until I actually open Bob, at which
>> point I
>>> get the error message in the terminal:
>>> 
>>> Working on component GAP ...
>>> 
>>> Getting component GAP
>>> 
>>> Getting link file...
>>> 
>>> % Total    % Received % Xferd  Average Speed   Time    Time     Time
>>> Current
>>> 
>>>                                Dload  Upload   Total   Spent    Left
>>> Speed
>>> 
>>> 100  9116  100  9116    0     0   102k      0 --:--:-- --:--:-- --:--:--
>>> 103k
>>> 
>>> Error:Link file /Users/wchen/gap_installation/bobdownloads/GAP.link
>> corrupt.
>>> 
>>> Error:Could not download GAP archive.
>>> 
>>> Error:Stopping.
>>> 
>>> Summary:
>>> 
>>> 
>>> Components with errors:
>>> 
>>> GAP
>>> 
>>> I've tried redownloading Bob to no avail.
>>> 
>>> Any ideas?
>>> _______________________________________________
>>> Forum mailing list
>>> Forum at mail.gap-system.org
>>> http://mail.gap-system.org/mailman/listinfo/forum
>> 
>> 
>> --
>> Dr. Alexander Konovalov               School of Computer Science
>> & Centre for Interdisciplinary Research in Computational Algebra
>> University of St Andrews                 Tel +44/0 (1334) 461633
>> http://blogs.cs.st-andrews.ac.uk/alexk/  Fax +44/0 (1334) 463278
>> The University of St Andrews is a charity registered in
>> Scotland:No.SC013532
>> 
>> 
>> 
>> 
>> 
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum


--
Dr. Alexander Konovalov               School of Computer Science
& Centre for Interdisciplinary Research in Computational Algebra
University of St Andrews                 Tel +44/0 (1334) 461633
http://blogs.cs.st-andrews.ac.uk/alexk/  Fax +44/0 (1334) 463278
The University of St Andrews is a charity registered in Scotland:No.SC013532







More information about the Forum mailing list