I think the Xcode fake-gcc is higher on the path than the Homebrew real-gcc.

Try
CC=/usr/local/bin/gcc
CXX=/usr/local/bin/g++


On Thursday, May 29, 2014 1:00:17 AM UTC-7, Freddy Chua wrote:
>
> Does not work, the compiler revert back to using clang
>
> On Thursday, May 29, 2014 1:57:25 PM UTC+8, Kevin Squire wrote:
>>
>> USEGCC = 1
>> USECLANG = 0
>>
>>
>> On Wed, May 28, 2014 at 10:34 PM, Freddy Chua <fred...@gmail.com> wrote:
>>
>>> I am trying to benchmark GNU cc vs Clang cc. But how to configure the 
>>> Make.user so that I compile using GNU gcc instead of clang cc ?
>>>
>>>
>>> On Thursday, May 29, 2014 11:18:40 AM UTC+8, Jameson wrote:
>>>
>>>> after changing versions of gfortran, you need to delete from deps 
>>>> anything built with fortran: SuiteSparse, Openblas, LAPACK, and ARPACK to 
>>>> rebuild them
>>>>
>>>> (anyone have an idea of where to put this as an FAQ?)
>>>>
>>>>
>>>> On Wed, May 28, 2014 at 10:27 PM, Freddy Chua <fred...@gmail.com>wrote:
>>>>
>>>>> I am on OSX Mavericks. OSX does not come with the GCC compilers. 
>>>>> Instead it uses the Clang CC compilers which does not included gfortran, 
>>>>> I 
>>>>> have been using gfortran from Homebrew. Recently, Homebrew removed 
>>>>> gfortran 
>>>>> as a formula. But gfortran is now included in the homebrew gcc formula. 
>>>>> After removing gfortran and installing gcc, I cannot compile julia 
>>>>> anymore.
>>>>>
>>>>> this is the output from running make clean, make cleanall then make
>>>>>
>>>>> sparse/abstractsparse.jl
>>>>> linalg.jl 
>>>>> error during bootstrap: LoadError(at "sysimg.jl" line 222: 
>>>>> LoadError(at "linalg.jl" line 195: LoadError(at "linalg/matmul.jl" line 
>>>>> 206: ErrorException("error compiling blas_vendor: could not load module 
>>>>> libopenblas: dlopen(libopenblas.dylib, 1): Library not loaded: 
>>>>> ~/homebrew/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib 
>>>>> Referenced from: ~/julia/usr/lib/libopenblas.dylib 
>>>>> Reason: image not found")))) 
>>>>> Basic Block in function 'julia_blas_vendor7698' does not have 
>>>>> terminator! 
>>>>> label %try 
>>>>> LLVM ERROR: Broken module, no Basic Block terminator! 
>>>>> make[1]: *** [~/julia/usr/lib/julia/sys0.o] Error 1 
>>>>> make: *** [release] Error 2
>>>>>
>>>>> Someone help me please?
>>>>>
>>>>
>>>>
>>

Reply via email to