Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #348 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Not able to run dsss/rebuild via Process

Reported by: larsivi Assigned to: jcomellas
Priority: major Milestone: 0.97 RC 1
Component: Core Functionality Version:
Keywords: Cc:

Description

import tango.sys.Process;
import tango.io.Stdout;

int main()
{
    // Also tested with "dsss build" as command
    auto dsss = new Process("rebuild -full -clean foo.d", null);
    dsss.execute();
    Stdout.conduit.copy(dsss.stdout);
    Stderr.conduit.copy(dsss.stderr);
    auto result = dsss.wait();
    if (result.reason != Process.Result.Exit) {
        Stderr("Was not able to build using DSSS").newline;
        Stdout("Reason is ")(result.reason).newline;
        return 1;
    }


    return 0;
}

Results in

Failed to determine DSSS' installed prefix.

and

Could not determine installed location!

I was at some point able to run DSSS, but it then crashed.

Also, Process don't find any binaries in /usr/local/bin, so I had to symlink them to /usr/bin to get the above - I suppose this is due to missing env, thus a documentative problem.

Change History

03/19/07 11:34:26 changed by larsivi

Hmm, my mistake again. The above messages are due to DSSS/rebuild not finding itself when run using a symlink. If I change the command to

/usr/local/bin/dsss build

I get the following messages:

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted (core dumped)


03/22/07 14:50:22 changed by jcomellas

  • status changed from new to assigned.

Do you have /usr/local/bin in your path?

03/22/07 14:58:22 changed by larsivi

As far as I can see, yes. I can look closer into what happens though.

03/22/07 19:08:03 changed by jcomellas

Please checkout the latest changes from SVN and try again. I've committed a change that might solve this problem.

04/03/07 22:08:22 changed by jcomellas

  • status changed from assigned to closed.
  • resolution set to fixed.