www.digitalmars.com         C & C++   DMDScript  

D.gnu - object.d file not found

reply nobody <nobody_member pathlink.com> writes:
Hello,

i have successful compiled gdc 0.1.8 .

But when i compile a D programm, i get the following error message:

object.d: module object cannot read file 'object.d'

The object.d file is under:
/usr/local/gcc-4.0/include/d/4.0.2/object.d

Is there a configuration file like dmd.conf for gdc?
Jun 23 2006
parent reply "Andrei Khropov" <andkhropov nospam_mtu-net.ru> writes:
nobody wrote:

 Hello,
 
 i have successful compiled gdc 0.1.8 .
 
 But when i compile a D programm, i get the following error message:
 
 object.d: module object cannot read file 'object.d'
 
 The object.d file is under:
 /usr/local/gcc-4.0/include/d/4.0.2/object.d
 
 Is there a configuration file like dmd.conf for gdc?

Didn't you relocate the compiler from the standard location? I got the same error in that case (but with MinGW and gdcwin). --
Jun 23 2006
parent reply nobody <nobody_member pathlink.com> writes:
In article <e7gb6t$23ea$1 digitaldaemon.com>, Andrei Khropov says...
nobody wrote:

 Hello,
 
 i have successful compiled gdc 0.1.8 .
 
 But when i compile a D programm, i get the following error message:
 
 object.d: module object cannot read file 'object.d'
 
 The object.d file is under:
 /usr/local/gcc-4.0/include/d/4.0.2/object.d
 
 Is there a configuration file like dmd.conf for gdc?

Didn't you relocate the compiler from the standard location? I got the same error in that case (but with MinGW and gdcwin).

I'm not sure what you mean with "relocate" . My plattform is Linux and i have configured with: /configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-4.0.2 --enable-shared Here are the steps what i have done: cp gcc-4.0.2.tar.bz2 ~/D cd ~/D tar -xjf gcc-4.0.2.tar.bz2 cp gdc-0.18.tar.gz gcc-4.0.2/gcc/ cd gcc-4.0.2/gcc/ tar -xzf gdc-0.18.tar.gz cd $\sim$/D/gcc-4.0.2 /gcc/d/setup-gcc.sh cd $\sim$/D mkdir build cd build ./gcc-4.0.2/configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-4.0.2 --enable-shared make bootstrap make install cp /usr/local/gcc-4.0.2/lib/libgphobos.a /usr/local/lib/ cp /usr/local/gcc-4.0.2/bin/gdc /usr/local/bin/ cp /usr/local/gcc-4.0.2/bin/gdmd /usr/local/bin/
Jun 23 2006
parent reply Carlos Santander <csantander619 gmail.com> writes:
nobody escribió:
 In article <e7gb6t$23ea$1 digitaldaemon.com>, Andrei Khropov says...
 nobody wrote:

 Hello,

 i have successful compiled gdc 0.1.8 .

 But when i compile a D programm, i get the following error message:

 object.d: module object cannot read file 'object.d'

 The object.d file is under:
 /usr/local/gcc-4.0/include/d/4.0.2/object.d

 Is there a configuration file like dmd.conf for gdc?

I got the same error in that case (but with MinGW and gdcwin).

I'm not sure what you mean with "relocate" . My plattform is Linux and i have configured with: /configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-4.0.2 --enable-shared Here are the steps what i have done: cp gcc-4.0.2.tar.bz2 ~/D cd ~/D tar -xjf gcc-4.0.2.tar.bz2 cp gdc-0.18.tar.gz gcc-4.0.2/gcc/ cd gcc-4.0.2/gcc/ tar -xzf gdc-0.18.tar.gz cd $\sim$/D/gcc-4.0.2 /gcc/d/setup-gcc.sh cd $\sim$/D mkdir build cd build ../gcc-4.0.2/configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-4.0.2 --enable-shared make bootstrap make install cp /usr/local/gcc-4.0.2/lib/libgphobos.a /usr/local/lib/ cp /usr/local/gcc-4.0.2/bin/gdc /usr/local/bin/ cp /usr/local/gcc-4.0.2/bin/gdmd /usr/local/bin/

That's what Andrei meant with relocating. Don't copy libgphobos.a, gdc and gdmd: leave them where they're. Add /usr/local/gcc-4.0.2/bin to your PATH instead. -- Carlos Santander Bernal
Jun 23 2006
parent nobody <nobody_member pathlink.com> writes:
In article <e7h55a$a46$1 digitaldaemon.com>, Carlos Santander says...
nobody escribió:
 In article <e7gb6t$23ea$1 digitaldaemon.com>, Andrei Khropov says...
 nobody wrote:

 Hello,

 i have successful compiled gdc 0.1.8 .

 But when i compile a D programm, i get the following error message:

 object.d: module object cannot read file 'object.d'

 The object.d file is under:
 /usr/local/gcc-4.0/include/d/4.0.2/object.d

 Is there a configuration file like dmd.conf for gdc?

I got the same error in that case (but with MinGW and gdcwin).

I'm not sure what you mean with "relocate" . My plattform is Linux and i have configured with: /configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-4.0.2 --enable-shared Here are the steps what i have done: cp gcc-4.0.2.tar.bz2 ~/D cd ~/D tar -xjf gcc-4.0.2.tar.bz2 cp gdc-0.18.tar.gz gcc-4.0.2/gcc/ cd gcc-4.0.2/gcc/ tar -xzf gdc-0.18.tar.gz cd $\sim$/D/gcc-4.0.2 /gcc/d/setup-gcc.sh cd $\sim$/D mkdir build cd build ../gcc-4.0.2/configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-4.0.2 --enable-shared make bootstrap make install cp /usr/local/gcc-4.0.2/lib/libgphobos.a /usr/local/lib/ cp /usr/local/gcc-4.0.2/bin/gdc /usr/local/bin/ cp /usr/local/gcc-4.0.2/bin/gdmd /usr/local/bin/

That's what Andrei meant with relocating. Don't copy libgphobos.a, gdc and gdmd: leave them where they're. Add /usr/local/gcc-4.0.2/bin to your PATH instead. -- Carlos Santander Bernal

Jipi, it's all fine now. Tank you.
Jun 26 2006