Cannot build GDC 0.18 alpha
Andrew Madigan
amadigan at gmail.com
Sat Apr 15 01:51:20 PDT 2006
Andrew Madigan wrote:
> Brad Roberts wrote:
>
>> On Fri, 14 Apr 2006, Andrew Madigan wrote:
>>
>>> I'm using the source from http://www.puremagic.com/~braddr/d/gdc/
>>
>> That wasn't meant for public consumption, but whatever.
>>
>>> I get the following error from make:
>>>
>>> make[1]: Entering directory
>>> `/home/nnnnn/local/build/gcc-4.0.3/build/gcc' make[1]: *** No rule to
>>> make target `d/idgen.dmdgen.o', needed by `d/idgen'. Stop.
>>> make[1]: Leaving directory `/home/nnnnn/local/build/gcc-4.0.3/build/gcc'
>>
>> The same make logic is in 0.17, from d/Make-lang.in:
>>
>> # Make these static because C++ shared libraries are not installed while
>> # bootstrapping.
>> d/impcvgen: d/impcnvgen.dmdgen.o
>> $(CXX) $(ALL_D_COMPILER_FLAGS) $(LDFLAGS) -o $@ $^
>> #hmm $(CC) $(ALL_D_COMPILER_FLAGS) $(LDFLAGS) -static -o $@ $^
>> #-lstdc++
>> # -static
>> d/idgen: d/idgen.dmdgen.o
>> $(CXX) $(ALL_D_COMPILER_FLAGS) $(LDFLAGS) -o $@ $^
>> #argh "-static" wont' work on macosx...? what to do?
>> #hmm $(CC) $(ALL_D_COMPILER_FLAGS) $(LDFLAGS) -static -o $@ $^
>> #-lstdc++
>> d/impcnvtab.c: d/impcvgen
>> cd d && ./impcvgen
>> d/id.c: d/idgen
>> cd d && ./idgen
>> # idgen also generates id.h; just verify id.h exists
>> d/id.h: d/id.c
>> @ ls d/id.h
>> =========================
>>
>> Not sure what you're doing to trigger it. It's not causing me any
>> problems with 0.17 or 0.18. How are you configuring gcc and how are you
>> building it?
>>
>> Later,
>> Brad
>
> Wow, don't I feel like an idiot, I just realized that the gcc I built the
> last time for gdc doesn't have a C++ compiler, I'll try adding the g++
> sources in and reply in a few minutes.
Allright, tried building using the host compiler (exact same environment as
used for the 0.17 compile). Now I get this error:
../../gcc/d/d-codegen.cc:2340: error: ‘STATIC_CHAIN_EXPR’ was not declared
in this scope
Plus lots of warnings. Any suggestions? (My host gcc is 4.0.3)
More information about the D.gnu
mailing list