Building GDC on Ubuntu
"Jérôme M. Berger"
jeberger at free.fr
Wed Apr 20 10:30:20 PDT 2011
edam wrote:
> Hi there,
>
> I'm trying to follow the instructions at https://bitbucket.org/goshawk/gdc/wiki/Home to build GDC from the mercurial repos, but I've not been successful. Not being familiar with the GCC build process myself, I was wondering if anyone could shed a bit of light on the problem?
>
> I should state ahead of time that I ran ./gcc/d/setup-gcc.sh with -v2 and my system is x86_64 running Ubuntu 10.10.
>
> It fouls up during compilation of libphobos. I get this:
>
> gcc -g -O2 -g -Wall -I ../../../../libphobos/../include -c -o config/x3.o ../../../../libphobos/config/x3.c
> In file included from ../../../../libphobos/config/x3.c:1:
> /usr/include/string.h:34: fatal error: stddef.h: No such file or directory
> compilation terminated.
>
> I have tried sticking a '-v' in to that call to gcc and found this:
>
> gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)
> COLLECT_GCC_OPTIONS='-v' '-g' '-O2' '-g' '-Wall' '-I' '../../../../libphobos/../include' '-c' '-o' 'config/x3.o' '-mtune=generic'
> /usr/lib/gcc/x86_64-linux-gnu/4.4.5/cc1 -quiet -v -I ../../../../libphobos/../include -iprefix /mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/x86_64-linux-gnu/4.4.5/ ../../../../libphobos/config/x3.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase x3.c -mtune=generic -auxbase-strip config/x3.o -g -g -O2 -Wall -version -fstack-protector -o /tmp/ccakn1ji.s
> ignoring nonexistent directory "/mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/x86_64-linux-gnu/4.4.5/include"
> ignoring nonexistent directory "/mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed"
> ignoring nonexistent directory "/mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/include"
> ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
> ignoring nonexistent directory "/mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/4.4.5/include"
> ignoring nonexistent directory "/mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed"
> ignoring nonexistent directory "/mnt/data/home/packages/gdc/dev/gcc-4.4.5/objdir/x86_64-unknown-linux-gnu/32/libphobos/../lib/gcc/../../lib/gcc/x86_64-linux-gnu/4.4.5/../../../../x86_64-linux-gnu/include"
> #include "..." search starts here:
> #include <...> search starts here:
> ../../../../libphobos/../include
> /usr/local/include
> /usr/include/x86_64-linux-gnu
> /usr/include
> End of search list.
>
> Which explains why it can't find /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include/stddef.h (which does exist).
>
> Anyone know what I'm doing wrong?
I am going to take a bet that you have "." in your path. If that is
the case, you need to add "CC=$(which gcc)" to your configure
command line (and it is not something you are doing wrong, it is a
bug in gcc).
Jerome
--
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20110420/11b0911c/attachment.pgp>
More information about the D.gnu
mailing list