Can't manage to build ldc, problem seems to be compiling ldc/runtime/profile-rt/profile-rt-38/GCDAProfiling.c

Andrew via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Jul 24 05:58:00 PDT 2016


On Sunday, 24 July 2016 at 11:32:56 UTC, Andrew wrote:
> /software/bin/cc  -DLDC_WITH_PGO -std=c11  
> -I/home/abrown/software/ldc/. -I/home/abrown/software/ldc/ddmd 
> -I/home/abrown/software/ldc/ddmd/root 
> -I/home/abrown/software/ldc/build/ddmd 
> -I/home/abrown/software/ldc -isystem 
> /Home/abrown/software/llvm/include -isystem 
> /home/abrown/software/libs/include     -fPIC -O3 
> -DCOMPILER_RT_HAS_ATOMICS=1 -DCOMPILER_RT_HAS_FCNTL_LCK=1 -o 
> CMakeFiles/ldc-profile-rt.dir/profile-rt/profile-rt-38/GCDAProfiling.c.o   -c /home/abrown/software/ldc/runtime/profile-rt/profile-rt-38/GCDAProfiling.c
>
> It fails when I call it myself, but succeeds if I drop the 
> -std=c11 flag. This I find very puzzling, since I've set in my 
> environment variables that CFLAGS='-std=c11' so shouldn't the 
> flag also be set when I just call the compiler without options?
>
> Thanks again for all the help.
>
> Andrew

So this was definitely the problem, all I need to do is unset 
CFLAGS before I run make and everything works fine.

Thanks very much, for all your help and your patience with me.

Andrew


More information about the digitalmars-d-ldc mailing list