[patch] migrating DragonEgg to DIBuilder

Duncan Sands baldrick at free.fr
Wed Feb 20 00:44:20 PST 2013


Hi David,
> Hmm, I'll have to admit to having only run the GDB 7.5 test suite, not the
> DragonEgg tests.
>
> Trying now, I get this error:
>
> aking DragonEgg 'test/dragonegg-lit.site.cfg' file...
> sed: file lit.tmp line 3: unknown option to `s'
> make: *** [test/dragonegg-lit.site.cfg] Error 1

what is in lit.tmp?  Line 3 is generated by the Makefile like this:

         $(QUIET)echo s=@GCC_LANGUAGES@=$(GCC_LANGUAGES)=g >> lit.tmp

Presumably GCC_LANGUAGES is wrong.  Maybe multi-line?  It is created as follows:

GCC_LANGUAGES=$(shell $(GCC) -v 2>&1 | grep '^Configured with:' | sed 
's/^.*--enable-languages=\([^ ]*\).*/\1/')

What does "gcc -v" output on your system.

>
> do you have any idea about that?
>
> (running "make check-validator" again produces a different error:

When sed fails it leaves an empty test/dragonegg-lit.site.cfg file, while it
shouldn't leave any file at all.  I've fixed this.  Now it should fail the same
way (as above) no matter how many times you run it!

Ciao, Duncan.

> For the record, I'm running this like:
>
> GCC=$HOME/install/bin/gcc-4.7 CC=$HOME/dev/llvm/install/clang/debug/bin/clang
> CXX=$HOME/dev/llvm/install/clang/debug/bin/clang++  make check-validator
>
>
>     - some Fortran testcases crash, but it's not your fault: it occurs with
>     pointers to arrays, due to hitting this:
>
>        if (isa<ARRAY_TYPE>(type) && TYPE_STRING_FLAG(type) &&
>            isa<INTEGER_TYPE>(TREE_TYPE(__type))) {
>          DEBUGASSERT(0 && "Don't support pascal strings");
>          return DIType();
>        }
>
>     Then the empty DIType is used by the pointer code to try and form a
>     derived type.  I'm not sure why this (ancient) debug code thinks there
>     is a problem with this kind of array, so I will try to fix it to handle
>     them properly.
>
>
> Thanks muchly,
>
> - David




More information about the llvm-commits mailing list