GDC build comes with C/C++ ... ?

Iain Buclaw ibuclaw at ubuntu.com
Wed Nov 21 09:02:57 PST 2012


On 21 November 2012 16:51, Joseph Rushton Wakeling
<joseph.wakeling at webdrake.net> wrote:
> On 11/21/2012 05:06 PM, Iain Buclaw wrote:
>>
>> cd gcc && make d.install-common;
>
>
> ... falls over with this error:
>
> --------------------------------------------------------------------------------
> perl -e 'exit 0;' && /usr/bin/install -c
> ../../gcc-snapshot-20121008/src/gcc/d/dmd-script /opt/gdc/bin/gdmd
> chmod a+x /opt/gdc/bin/gdc
> chmod a+x /opt/gdc/bin/gdmd
> if [ -f cc1d ] ; then \
>           if [ -f gdc-cross ] ; then \
>             if [ -d
> /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/.
> ] ; then \
>               rm -f
> /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/gdc;
> \
>               rm -f
> /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/gdmd;
> \
>               /usr/bin/install -c gdc-cross
> /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/gdc;
> \
>               perl -e 'exit 0;' && /usr/bin/install -c
> ../../gcc-snapshot-20121008/src/gcc/d/dmd-script
> /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/bin/gdmd;
> \
>             else true; fi; \
>           else \
>             rm -f /opt/gdc/bin/-gdc; \
>             rm -f /opt/gdc/bin/-gdmd; \
>             ( cd /opt/gdc/bin && \
>               ln gdc -gdc ); \
>             ( cd /opt/gdc/bin && \
>               ln gdmd -gdmd ); \
>           fi ; \
>         fi
> ln: invalid option -- 'g'
> Try `ln --help' for more information.
> ln: invalid option -- 'g'
> Try `ln --help' for more information.
> make: [d.install-common] Error 1 (ignored)
> --------------------------------------------------------------------------------
>
> ... although gdc and gdmd are placed in /opt/gdc/bin.  The other commands
> appear to work correctly, but when invoking gdmd I get an error message:
>
>     gdc: error trying to exec 'cc1d': execvp: No such file or directory

I didn't say it would work. ;-)

Looks like it is trying to remove $(target_prefix)-gdc, but it doesn't
know what $(target_prefix) is...  However, the way the make-lang.in
file determines the compiler name is a cludge that needs to be killed
anyway, so maybe I'll clean up in a later commit.

-- 
Iain Buclaw

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


More information about the D.gnu mailing list