Forum Navigation
Problem with installing Tango with GDC
Posted: 10/27/10 14:18:46Hi,
I'm currently preparing a lecture about D language and want to add some simple benchmarks to it which would include LDC and GDC compilers and Tango library. Unfortunately, I have problems with running Tango with GDC on Linux x86_64. Here's what I've done:
1. Compiling GDC - OK. 2. Installing GDC - OK, located in /opt/gdc 3. Downloading Tango trunk - OK 4. Compiling Tango with [i]bob/i for Linux64 - surprisingly OK
The problem is with point 5, installing Tango in GDC. After the compilation, I found libtango.a file in the Tango directory, so I copied it to /opt/gdc/lib64/libtango.a. I've also copied object.di to /opt/gdc/include/.../object.di, removing object.d from Phobos at the same time. I don't know what I can do next, because the build and install instructions are a nightmare - they either describe old Tango versions or show some strange steps which involve files that I do not have.
Anyway, I try to compile a simple Hello World program:
import tango.io.Console; void main(char[][] args) { Cout("Hi, universe!").newline; } // end main();with the following command:
/opt/gdc/bin/gdc -ltango hello.dand this is what I get:
WARNING: no atomic operations on this architecture WARNING: this is *slow* you probably want to change this! /opt/gdc/lib/gcc/x86_64-unknown-linux-gnu/4.4.5/../../../../lib64/libtango.a(tango-core-rt-compiler- gdc-rt-memory-frelease.o): In function `rt_stackBottom': memory.d:(.text+0x1f): undefined reference to `dlopen' memory.d:(.text+0x34): undefined reference to `dlsym' memory.d:(.text+0x47): undefined reference to `dlclose' /tmp/cc1Y5LM8.o: In function `_Dmain': hello.d:(.text+0x29): undefined reference to `_D5tango2io7Console4CoutC5tango2io7Console7Console6Output' hello.d:(.text+0x3c): undefined reference to `_D5tango2io7Console7Console6Output6appendMFAaZC5tango2io7Console7Console6Output' hello.d:(.text+0x44): undefined reference to `_D5tango2io7Console7Console6Output7newlineMFZC5tango2io7Console7Console6Output' /tmp/cc1Y5LM8.o:(.data+0x70): undefined reference to `_D5tango2io7Console12__ModuleInfoZ' collect2: ld returned 1 exit statusGDC with Phobos worked perfectly. How can I make Tango run with the newest GDC? What am I missing?