Hi Oded,

It all goes back to the same error: 

 configure: error: C compiler cannot create executables See `config.log' 
for more details


It is hard to say what is actually wrong at  your system. Just try to make 
sure that you have as clean environment as possible
(no homebrew, no macports, just pure OSX + XCode + command line tools). My 
best guess is that you have somewhat polluted environment.

You can check that ~/.spack/compilers.yaml to see which compilers are being 
used, check if those are provided by OSX and not
some left-overs from somewhere else which happen to be broken. For me most 
recent XCode you should have:

compilers:

  darwin-x86_64:

    [email protected]:

      cc: /usr/bin/clang

      cxx: /usr/bin/clang++

      f77: null

      fc: null

    [email protected]:

      cc: /usr/bin/gcc

      cxx: /usr/bin/g++

      f77: null

      fc: null


Regards,
Denis.

On Friday, May 20, 2016 at 10:26:51 PM UTC+2, Oded Yaakobi wrote:
>
> Hi Denis,
>
>  
>
> I tried to follow your instructions but got an error message.
>
>  
>
> *(0)  **(0) add the following to ~/.bash_profile  (DO NOT RUN IN 
> TERMINAL)*
>
>  
>
> I didn’t find the file “.bash_profile” at “~/” directory. You may see the 
> files that are there:
>
> [ yaakobioy L02029080  ~ ]$ ls -a
>
> .           .anyconnect     .profile        Desktop           
> Movies               dealii
>
> ..          .bash_history       .rstudio-desktop   Development          
> Music                spack
>
> .CFUserTextEncoding .bashrc         .spack         Documents      
> Pictures       workspace
>
> .DS_Store       .config         .spackconfig       Downloads      Public
>
> .RData          .cups           .ssh            Doxygen            TriBITS
>
> .Rhistory       .eclipse        .subversion     GCC           Trilinos
>
> .Trash          .lldb           Applications       Library              
> boost_1_56_0
>
> .account        .p2         CPPUnit         Mesquite          config_aux
>
>  
>
> I guess that you referred to the file “.profile”.
>
>  
>
> ################################################################
>
>  
>
> *```*
>
> *SPACK_ROOT=/path/to/spack*
>
> *export PATH=$SPACK_ROOT/bin:$PATH*
>
> *``` *
>
>  
>
> I added these two lines to the file “.profile”. The content of the 
> modified file is:
>
>  
>
> export PATH=/Applications/CMake.app/Contents/bin:$PATH
>
> export DEAL_II_CONF_SILENT=ON
>
>    . /Applications/deal.II.app/Contents/Resources/share/deal.II/dealii.conf
>
> export PATH=/Applications/CMake.app/Contents/bin:$PATH
>
> SPACK_ROOT=/Users/yaakobioy/spack/spack-master_20-05-2016/
>
> export PATH=$SPACK_ROOT/bin:$PATH
>
>  
>
>  
>
> ################################################################
>
>  
>
>  
>
> *Run new terminal window and install GCC and environment-modules package:*
>
> *(1) *
>
> *```*
>
> *spack install [email protected] <javascript:>*
>
>  
>
> I run this command and got the following error message:
>
>  
>
> [ yaakobioy L02029080  ~/spack/spack-master_20-05-2016/bin ]$ spack 
> install [email protected]
>
> *==>* Installing gcc
>
> *==>* Installing gmp
>
> *==>* Installing m4
>
> *==>* Installing libsigsegv
>
> *==>* Already downloaded 
> /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/stage/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv/libsigsegv-2.10.tar.gz
>
> *==>* Already staged libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv in 
> /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/stage/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv
>
> *==>* No patches needed for libsigsegv
>
> *==>* Building libsigsegv
>
> *==>* Error: Command exited with status 77:
>
> './configure' 
> '--prefix=/Users/yaakobioy/spack/spack-master_20-05-2016/opt/spack/darwin-x86_64/gcc-5.2.0/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv'
>  
> '--enable-shared'
>
>  
>
> See build log for details:
>
>   
> /private/var/folders/pr/4tmsr5x51vs5f2bt2gqscp9hv0l_l7/T/yaakobioy/spack-stage/spack-stage-acoxgL/libsigsegv-2.10/spack-build.out
>
>  
>
> /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/repos/builtin/packages/libsigsegv/package.py:36,
>  
> in install:
>
>      34       def install(self, spec, prefix):
>
>      35           configure('--prefix=%s' % prefix,
>
>   >> 36                     '--enable-shared')
>
>      37   
>
>      38           make()
>
>      39           make("install")
>
> *==>* Error: Installation process had nonzero exit code.
>
>  
>
> ################################################################
>
>  
>
> The content of the resulting spack-build.out file is:
>
>  
>
> ==> './configure' 
> '--prefix=/Users/yaakobioy/spack/spack-master_20-05-2016/opt/spack/darwin-x86_64/gcc-5.2.0/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv'
>  
> '--enable-shared'  Build Tools: checking for a BSD-compatible install... 
> /usr/bin/install -c checking whether build environment is sane... yes 
> checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking 
> for gawk... no checking for mawk... no checking for nawk... no checking for 
> awk... awk checking whether make sets $(MAKE)... yes checking for gcc... 
> /Users/yaakobioy/spack/spack-master_20-05-2016/lib/spack/env/gcc/gcc 
> checking whether the C compiler works... no configure: error: in 
> `/private/var/folders/pr/4tmsr5x51vs5f2bt2gqscp9hv0l_l7/T/yaakobioy/spack-stage/spack-stage-acoxgL/libsigsegv-2.10':
>  
> configure: error: C compiler cannot create executables See `config.log' for 
> more details
>
>  
>
>  
>
> ################################################################
>
>  
>
> Do you have any suggestions what do to next?
>
>  
>
> Best,
>
> Oded
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to