Thanks, Andreas and Tony.  Unfortunately, this is a system at work where 
I'm not likely to persuade the sysadmin to install the devtoolset. 
 However, I just discovered the generic Linux nightlies at 
https://status.julialang.org/ which work fine on this system, and are a 
great alternative for me for trying out new Julia 0.4 features.


On Thursday, February 5, 2015 at 4:49:22 PM UTC-8, Tony Kelman wrote:
>
> We should just update the README. No sense supporting gcc older than 4.7 
> if we plan on using LLVM 3.5 or 3.6 for the Julia 0.4 release (these newer 
> versions of LLVM use a lot of C++11 so require a new compiler).
>
> You can use the Scientific Linux devtoolset to get a newer gcc for centos.
>
>
> On Thursday, February 5, 2015 at 4:45:30 PM UTC-8, Andreas Noack wrote:
>>
>> This issue has been reported a couple of times over the last couple of 
>> days and there are some explanations in the those issues so please have a 
>> look at them, but in short, yes it is too old.
>>
>> 2015-02-05 19:23 GMT-05:00 Peter Simon <[email protected]>:
>>
>>> Trying to build Julia 0.4 master on CentOS 6.4 with gcc 4.4.7.  The 
>>> compiler doesn't seem to like one of the lines in gc.c:
>>>
>>> ...
>>>     CC src/disasm.o
>>>     CC src/support/int2str.o
>>>     CC src/support/libsupportinit.o
>>>     CC src/debuginfo.o
>>>     CC src/support/arraylist.o
>>>     CC src/support/strtod.o
>>>     LINK src/support/libsupport.a
>>>     CC src/interpreter.o
>>>     CC src/alloc.o
>>>     CC src/dlload.o
>>>     CC src/sys.o
>>>     CC src/init.o
>>>     CC src/task.o
>>>     CC src/array.o
>>>     CC src/dump.o
>>>     CC src/toplevel.o
>>>     CC src/jl_uv.o
>>>     CC src/jlapi.o
>>>     CC src/profile.o
>>>     CC src/llvm-simdloop.o
>>>     CC src/gc.o
>>> gc.c:40: error: flexible array member in otherwise empty struct
>>> make[2]: *** [gc.o] Error 1
>>> make[2]: *** Waiting for unfinished jobs....
>>> make[1]: *** [julia-release] Error 2
>>>
>>> line 40 of gc.c is highlighted below:
>>>
>>> typedef struct {
>>>     union {
>>>         uintptr_t header;
>>>         struct {
>>>             uintptr_t gc_bits:2;
>>>             uintptr_t pooled:1;
>>>         };
>>>     };
>>>     char data[];
>>> } buff_t;
>>>
>>> Does this mean the compiler is too old?  The README says gcc >= 4.4 
>>> should work.
>>>
>>> Thanks in advance for any suggestions.
>>>
>>>
>>

Reply via email to