gdc does not work in intrepid

Bug #282400 reported by Vincenzo Ampolo
4
Affects Status Importance Assigned to Milestone
gdc-4.2 (Ubuntu)
Fix Released
Undecided
Vincenzo Ampolo

Bug Description

Binary package hint: gdc-4.2

gdc is simple unable to compile even a simple, easy, hello world program.

root@earth:~/dsss-0.75# cat test.d
import std.stdio;

void main(string[] args)
{
    writefln("Hello World, Reloaded");
}
root@earth:~/dsss-0.75# gdc test.d
gdc: error trying to exec 'cc1d': execvp: No such file or directory
root@earth:~/dsss-0.75# gdc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,d --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --disable-libmudflap --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 20080225 (prerelease gdc 0.25 20071215, using dmd 1.022) (Ubuntu 0.25-4.2.3-2ubuntu2)
root@earth:~/dsss-0.75# cd /usr/lib/gcc/x86_64-linux-gnu/4.2/cc1d
bash: cd: /usr/lib/gcc/x86_64-linux-gnu/4.2/cc1d: Not a directory
root@earth:~/dsss-0.75# file /usr/lib/gcc/x86_64-linux-gnu/4.2/cc1d
/usr/lib/gcc/x86_64-linux-gnu/4.2/cc1d: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped

As you can see the cc1d program is there, but gdc is not able to find it.

if i install gdc-4.1 it works like a sharm:

root@earth:~/dsss-0.75# gdc-4.1 test.d
root@earth:~/dsss-0.75# gdc-4.2 test.d
gdc-4.2: error trying to exec 'cc1d': execvp: No such file or directory

I think that the problem is in the source. Please try to fix it since a not usable gdc is useless. Thanks.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

it's working on my computer (also an amd64).
apt-cache policy gdc gives me:
fabrice@fabrice-desktop:~$ apt-cache policy gdc
gdc:
  Installed: 4.2.4-2ubuntu2
  Candidate: 4.2.4-2ubuntu2
  Version table:
 *** 4.2.4-2ubuntu2 0
        500 http://archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

So it seems that you're not using the latest version.

Can you try with version 4.2.4?

Changed in gdc-4.2:
status: New → Incomplete
Revision history for this message
Vincenzo Ampolo (vincenzo-ampolo) wrote :

I've checked in intrepid:

goshawk@earth:~$ gdc test.d
goshawk@earth:~$ ./a.out
Hello World, Reloaded
goshawk@earth:~$ apt-cache policy gdc
gdc:
  Installed: 4.2.4-2ubuntu2
  Candidate: 4.2.4-2ubuntu2
  Version table:
 *** 4.2.4-2ubuntu2 0
        500 http://it.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

It works like a charm now. I'm closing the bug.

Revision history for this message
Vincenzo Ampolo (vincenzo-ampolo) wrote :

Bug is closed in gdc package in intrepid

Changed in gdc-4.2:
assignee: nobody → vincenzo-ampolo
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.