Build errors with GDC

Iain Buclaw ibuclaw at ubuntu.com
Fri Jul 6 19:49:11 PDT 2012


On 7 July 2012 02:35, Alex Rønne Petersen <alex at lycus.org> wrote:
> On 06-07-2012 19:22, Timofei Bolshakov wrote:
>>
>> On gcc-4.8-20120701 it does not work either:
>>
>> echo timestamp > s-genrtl-h
>> gcc   -g -O2 -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings
>> -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
>> -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
>> -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
>> -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/gengtype \
>>          build/gengtype.o build/errors.o build/gengtype-lex.o
>> build/gengtype-parse.o build/gengtype-state.o build/version.o
>> .../build-i486-pc-linux-gnu/libiberty/libiberty.a
>>
>> build/genmodes -m > tmp-min-modes.c
>> /bin/bash ../../gcc/../move-if-change tmp-min-modes.c min-insn-modes.c
>> echo timestamp > s-modes-m
>> build/genenums ../../gcc/config/i386/i386.md \
>>         > tmp-enums.c
>> build/gengtype.o: In function `adjust_field_type':
>> /root/gdc/dev/gcc-4.8-20120701/objdir/gcc/../../gcc/gengtype.c:1279:
>> undefined reference to `lexer_line'
>> build/gengtype.o: In function `adjust_field_rtx_def':
>> /root/gdc/dev/gcc-4.8-20120701/objdir/gcc/../../gcc/gengtype.c:989:
>> undefined reference to `lexer_line'
>> build/gengtype.o: In function `adjust_field_type':
>> /root/gdc/dev/gcc-4.8-20120701/objdir/gcc/../../gcc/gengtype.c:1294:
>> undefined reference to `lexer_line'
>>
>
> Odd; I just tried building GDC on ARM with the same snapshot I used on x86,
> and got these errors too. Worked fine on the x86 machine...
>

Hmm... do you have flex installed?


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list