Menu

#1 build fail in my ubuntu 8.04 64bit system

open
nobody
None
5
2009-04-23
2009-04-23
Anonymous
No

dmd -gc -O -release -inline -unittest info.d main.d versiondata.d hb/timecontrol.d hb/game/factory.d hb/game/go/factory.d hb/game/puppet.d hb/io/gtp.d hb/io/ipc.d hb/search/reference/base.d hb/search/reference/factory.d hb/search/reference/metric.d hb/search/reference/node.d libego/adapter.d libego/adapter.cpp.o libego/repository/build/ego/opt/libego.a tango/core/Atomic.d tango/core/Traits.d -ofhousebot-0.8 -L-L/usr/lib/gcc/i486-linux-gnu/4.2/ -L-lstdc++
main.d(4): module thread cannot read file 'core/thread.d'

Discussion

  • Urban Hafner

    Urban Hafner - 2009-04-23

    Could you please provide more information? What revision of HouseBot is this? Which version of dmd? And please also paste in (or attach as a file) the whole output of the make process.

     
  • j_house

    j_house - 2009-04-23

    I've moved this to a support request.

    The error message implies that your installation of dmd is bad. Are you using a d1 or d2 compiler? You need to use a d2 compiler.

    Assuming you have a d2 compiler, your dmd.conf file seems to have the wrong path to druntime. %@P% is the path to the dmd binary file (and the dmd.conf file). You should have one path for importing the phobos source, one path for importing the druntime source, and one path for where to find the d libraries. My dmd install mirrors an older style dmd release (the file structure in the release zip for dmd has changed since I started using D2). For reference here's my dmd.conf file:

    $ cat /usr/local/bin/dmd.conf

    [Environment]

    DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/druntime/import -L-L%@P%/../lib
    $

    Also, there are two other caveats I have to add:
    * The last dmd version I tested was 2.027. The 2.029 release has a lot of standard library changes, so it may not work.
    * dmd does not build native 32 bit binaries. You may need special ubuntu packages to build and run 32 bit code. You may also need to tweak the c++ code compilation to generate 32-bit code that can be linked in. I can help with this when you get to that step.

     
  • j_house

    j_house - 2009-04-23
    • labels: 996510 -->
     

Log in to post a comment.