1. torhus
  2. dwt2
  3. Issues
Issue #1 new

Patch for ldc + Tango

Jonathan MERCIER
created an issue

hello,\

with doob help we create a patch for ldc+tango:\ http://fpaste.org/w0Qi/ or see attached file,\

but build fail with this error:\ java/util/SortedSet.d(5): Error: module Comparator cannot read file 'java/util/Comparator.d'\

they are no file /Comparator.d in base/src/java/util/ ! \

best regards\

Comments (10)

  1. Jonathan MERCIER reporter

    i have do some fix:
    - create Comparator.d file and put in base/src/java/util/
    - fix some error see more recent patch
    - but leave error with GSHARED
    log:
    java/nonstandard/loader.d(295): Error: undefined identifier GSHARED
    java/nonstandard/loader.d(295): Error: function expected before (), not GSHARED of type int
    java/nonstandard/loader.d(295): Error: cannot evaluate GSHARED("int s_init;") at compile time
    java/nonstandard/loader.d(295): Error: argument to mixin must be a string, not (GSHARED("int s_init;"))
    java/nonstandard/loader.d(296): Error: undefined identifier GSHARED
    java/nonstandard/loader.d(296): Error: function expected before (), not GSHARED of type int
    java/nonstandard/loader.d(296): Error: cannot evaluate GSHARED("ExeModuleInfo [string] s_modules;") at compile time
    java/nonstandard/loader.d(296): Error: argument to mixin must be a string, not (GSHARED("ExeModuleInfo [string] s_modules;"))
    java/nonstandard/loader.d(297): Error: undefined identifier GSHARED
    java/nonstandard/loader.d(297): Error: function expected before (), not GSHARED of type int
    java/nonstandard/loader.d(297): Error: cannot evaluate GSHARED("string s_lastError;") at compile time
    java/nonstandard/loader.d(297): Error: argument to mixin must be a string, not (GSHARED("string s_lastError;"))
    rake aborted!
    compile error

  2. torhus repo owner

    Ok, thanks. The problem with the Comparator module might show up only when you're trying to build the whole of DWT. Building just the parts your app need will probably still work.

    But if you're not going to use it for D2 anyway, the code in the official repository will work too, just apply the Tango 0.99.9 update (http://bitbucket.org/torhus/dwt2/changeset/4209a193f5e0).

    I'll be away for a few weeks, so I don't know when I'll be able to look a this, sorry.

  3. Jonathan MERCIER reporter

    ok thanks for your answer
    i hope you will look and perform my patch
    few weeks is long ... i hope for you is holiday so good holiday :-)

    ping me for this feature thanks

    best regards

    Note: i use ldc + tango + derelict is for put your project in official fedora repo

  4. Jonathan MERCIER reporter

    with http://bitbucket.org/torhus/dwt2/changeset/4209a193f5e0 i do an error too:
    /usr/include/dtango/text/Util.d(385): Error: cannot implicitly convert expression (18446744073709551615LU) of type ulong to uint
    rake aborted!
    compile error
    /home/builder/rpmbuild/BUILD/dwt2-20100606hg107/rakefile:166:in `buildTree'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1009:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1009:in `sh'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1093:in `sh'
    /home/builder/rpmbuild/BUILD/dwt2-20100606hg107/rakefile:155:in `buildTree'
    /home/builder/rpmbuild/BUILD/dwt2-20100606hg107/rakefile:149:in `chdir'
    /home/builder/rpmbuild/BUILD/dwt2-20100606hg107/rakefile:149:in `buildTree'
    /home/builder/rpmbuild/BUILD/dwt2-20100606hg107/rakefile:305
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:606:in `invoke_prerequisites'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:603:in `invoke_prerequisites'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:595:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/bin/rake:19:in `load'
    /usr/bin/rake:19
    erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.01i1s8 (%build)

  5. Jonathan MERCIER reporter

    ok tango/ldc fix it

    now

    1. take source:

    $ hg clone -r b56bfb76ee7f http://bitbucket.org/torhus/dwt2/ dwt2-20100606hg107
    

    2. take patch:

    $ urlgrabber https://bitbucket-assetroot.s3.amazonaws.com/torhus/dwt2/20100730/1/dwt2-hg107-fix.patch
    

    3. change directory

    $ cd dwt2-20100606hg107
    

    4. apply patch

    $ patch -p1 -b .fix ../dwt2-hg107-fix.patch
    

    5. take attached file and copy it to base/src/java/util/

    $ install --mode=0644 Comparator.d base/src/java/util/
    

    6. run build with rake

    $ rake --trace -v DEBUG=1 all
    

    7. see build fail they are another file attached for see it

  6. Jonathan MERCIER reporter

    update instructions

    1. take source:

    $ hg clone -r 4209a193f5e0 http://bitbucket.org/torhus/dwt2/ dwt2-20100606hg107
    

    2. take patch:

    $ urlgrabber https://bitbucket-assetroot.s3.amazonaws.com/torhus/dwt2/20100730/1/dwt2-hg107-fix.patch
    

    3. change directory

    $ cd dwt2-20100606hg107
    

    4. apply patch

    $  patch -p1 -b < ../dwt2-hg107-fix.patch
    

    5. take attached file and copy it to base/src/java/util/

    $ install --mode=0644 Comparator.d base/src/java/util/
    

    6. run build with rake

    $ rake --trace -v DEBUG=1 all
    

    7. see build fail they are another file attached for see it

  7. Log in to comment