[mesa-users] Compiler error with latest SDK and r7624
Bill Paxton
paxton at kitp.ucsb.edu
Wed Jun 15 11:42:54 EDT 2016
minor point --- FCchecks is only used when doing certain tests of the code
COMPILE_TO_TEST = $(COMPILE_BASIC) $(FCwarn) $(FCimpno) $(FCchecks) $(FCopt) $(FCdebug) -c
during normal builds, we do this instead
COMPILE_TO_DEPLOY = $(COMPILE_BASIC) $(FCwarn) $(FCimpno) $(FCopt) -c
where
COMPILE_BASIC_FLAGS = $(FCbasic) $(FCopenmp) $(FCstatic) $(INCLUDES)
COMPILE_BASIC = $(FC) $(COMPILE_BASIC_FLAGS)
so i think you should add -Wno-uninitialized to FCbasic rather than to FCchecks.
cheers,
b
On Jun 15, 2016, at 8:34 AM, RICHARD H D TOWNSEND wrote:
> Hi Warrick —
>
> This is a false positive on the part of the compiler — in fact, there’s nothing wrong with the code. To get things to compile, edit utils/makefile_header and add ‘-Wno-maybe-uninitialized’ to the FCchecks variable.
>
> cheers,
>
> Rich
>
>> On Jun 15, 2016, at 9:38 AM, Warrick Ball <wball at astro.physik.uni-goettingen.de> wrote:
>>
>> Hi all,
>>
>> I tried upgrading my MESA SDK from the 20150908 release to the 20160129 release and immediately ran into trouble when recompiling MESA r7624. I don't have a problem installing r8118, so I guess this this might be moot. And I apologize if I've missed that this is a known issue. It looks like a fairly benign error but I haven't looked into it (since I'm happy to stick to the older SDK).
>>
>> The error output is (log of STDOUT is attached as r7624.log):
>>
>> ../private/net_burn_const_p.f90:473:0:
>>
>> rpar(r_burn_const_P_time_eos) + dble(time1 - time0) / clock_rate
>> ^
>> Error: 'time0' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>> f951: all warnings being treated as errors
>> make: *** [net_burn_const_p.o] Error 1
>> makefile:61: recipe for target 'net_burn_const_p.o' failed
>>
>> /home/astro84/wball/work/compile_test/mesa-r7624/net/make
>> FAILED
>>
>> /home/astro84/wball/work/compile_test/mesa-r7624/net
>> ./build_and_test FAILED
>>
>> Some system info:
>>
>> $ uname -a
>> Linux astro84 4.1.15-8-default #1 SMP PREEMPT Wed Jan 20 16:41:00 UTC 2016 (0e3b3ab) x86_64 x86_64 x86_64 GNU/Linux
>>
>> $ gfortran -v
>> Using built-in specs.
>> COLLECT_GCC=/home/astro84/wball/mesa/sdk_20160129/bin/gfortran.exec
>> COLLECT_LTO_WRAPPER=/home/astro84/wball/mesa/sdk_20160129/bin/../libexec/gcc/x86_64-pc-linux-gnu/5.3.1/lto-wrapper
>> Target: x86_64-pc-linux-gnu
>> Configured with: /root/mesasdk-src/gcc/configure CC=gcc --build=x86_64-pc-linux-gnu --prefix=/root/mesasdk --with-gmp=/root/mesasdk --with-mpfr=/root/mesasdk --with-mpc=/root/mesasdk --enable-languages=c,c++,fortran --disable-multilib --disable-nls --disable-libsanitizer --enable-clocale=generic
>> Thread model: posix
>> gcc version 5.3.1 20160129 (GCC)
>>
>>
>> Cheers,
>> Warrick
>>
>>
>>
>> ------------
>> Warrick Ball
>> Postdoc, Institut für Astrophysik Göttingen
>> wball at astro.physik.uni-goettingen.de
>> +49 (0) 551 39 5069<r7624.log>------------------------------------------------------------------------------
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols are
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
>> reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381_______________________________________________
>> mesa-users mailing list
>> mesa-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mesa-users
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
> reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mesa-users
More information about the Mesa-users
mailing list