Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error: No such method: 'uriPathToNative', url 'file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart' #6233

Closed
DartBot opened this issue Oct 24, 2012 · 19 comments
Assignees
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Milestone

Comments

@DartBot
Copy link

DartBot commented Oct 24, 2012

This issue was originally filed by domi...@google.com


Running dart2js from SDK revision 13851 gives the following:

Internal error: No such method: 'uriPathToNative', url 'file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart' line 248Using snapshot dart-sdk/bin/../pkg/compiler/implementation/dart2js.dart.snapshot
     [exec] pos 7
     [exec] var root = uriPathToNative("/$LIBRARY_ROOT");
     [exec]
     [exec] #­0 NoSuchMethodErrorImplementation._throwNew (dart:core-patch:247:3)
     [exec] #­1 compilerMain (file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart:248:7)
     [exec] #­2 main (file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart:278:7)

revision 13679 was fine.

@kasperl
Copy link

kasperl commented Oct 25, 2012

Thanks for the report!


Set owner to @kasperl.
Added this to the M2 milestone.
Removed Priority-Medium label.
Added Priority-Critical label.

@kasperl
Copy link

kasperl commented Oct 25, 2012

How are you running dart2js? I cannot reproduce this (not even with the SDK from revision 13851). Lowering priority until we have an indication that this is still a problem.


Removed Priority-Critical label.
Added Priority-Medium, NeedsInfo labels.

@kasperl
Copy link

kasperl commented Oct 25, 2012

It looks a bit fishy that your dart2js.dart file is in a temporary directory.

@DartBot
Copy link
Author

DartBot commented Oct 25, 2012

This comment was originally written by domi...@google.com


The same way that I have been running dart2js this whole time: It's run
through an ant file <exec> task.

I'm running 'ant generate-JS' from the master branch of dartbox2d.

  • dominic

@DartBot
Copy link
Author

DartBot commented Oct 26, 2012

This comment was originally written by domi...@google.com


Running dart2js directly, instead of through ant, I get the same issue:

$ $DART_SDK/bin/dart2js -o example/benchmarks/BenchmarkRunner.dart.js example/benchmarks/BenchmarkRunner.dart
Using snapshot ~/sdk/dart-sdk.13851/bin/../pkg/compiler/implementation/dart2js.dart.snapshot
Internal error: No such method: 'uriPathToNative', url 'file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart' line 248 pos 7
  var root = uriPathToNative("/$LIBRARY_ROOT");

#­0 NoSuchMethodErrorImplementation._throwNew (dart:core-patch:247:3)
#­1 compilerMain (file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart:248:7)
#­2 main (file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart:278:7)

@kasperl
Copy link

kasperl commented Oct 26, 2012

Do you have any idea where file:///tmp/tmpQxaBII/ stems from? Does this happen no matter what you try to compile? You can also try running dart2js without the wrapper script in SDK/bin/dart2js by doing something ala:

   SDK/bin/dart SDK/pkg/compiler/implementation/dart2js.dart hello.dart

where hello.dart is the simplest piece of code you can think of. Also be aware that you cannot have a space between -o and the file name; see issue #3379.

@DartBot
Copy link
Author

DartBot commented Oct 26, 2012

This comment was originally written by domi...@google.com


Running directly works without error.

I have no idea where the /tmp folder is coming from. Once the process ends, that folder does not exist.

I also noted 'Using snapshot ~/sdk/dart-sdk.13851/bin/../pkg/compiler/implementation/dart2js.dart.snapshot' which I haven't noticed before.

When I run through the dart VM directly, I don't get any output about a snapshot being used. Relevant?

@DartBot
Copy link
Author

DartBot commented Oct 26, 2012

This comment was originally written by @austincummings


I have the same problem. I just downloaded sdk revision 13851. I'm just using the shell script to run it.

Using snapshot /home/austin/lib/dart-sdk/bin/../pkg/compiler/implementation/dart2js.dart.snapshot
Internal error: No such method: 'uriPathToNative', url 'file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart' line 248 pos 7
  var root = uriPathToNative("/$LIBRARY_ROOT");

#­0 NoSuchMethodErrorImplementation._throwNew (dart:core-patch:247:3)
#­1 compilerMain (file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart:248:7)
#­2 main (file:///tmp/tmpQxaBII/pkg/compiler/implementation/dart2js.dart:278:7)

@DartBot
Copy link
Author

DartBot commented Oct 26, 2012

This comment was originally written by @austincummings


I was able to compile using the wrapper script by removing '$SNAPSHOT' from line 26 in $DART_SDK/bin/dart2js.

Before:
exec "$BIN_DIR"/dart --heap_growth_rate=32 $SNAPSHOT "$BIN_DIR/../pkg/compiler/implementation/dart2js.dart" $COLORS "$@"

After:
exec "$BIN_DIR"/dart --heap_growth_rate=32 "$BIN_DIR/../pkg/compiler/implementation/dart2js.dart" $COLORS "$@"

@kasperl
Copy link

kasperl commented Oct 29, 2012

cc @peter-ahe-google.

@peter-ahe-google
Copy link
Contributor

I think the tmp file names is a side-effect of the SDK build process. With a more recent version, it should be something like file:///long_buildbot_path/out/ReleaseIA32/dart-sdk.tmp/...

We should report a bug with the VM team about this: the snapshot should use the file names given on the command line, otherwise, why give them?

But this is not relevant for this bug report. I think this is a problem with snapshots.

@peter-ahe-google
Copy link
Contributor

Assuming AustinCummings95 is reporting the same problem, I'll take a look at SDK revision 13851.


cc @kasperl.
Set owner to @peter-ahe-google.
Added Accepted label.

@peter-ahe-google
Copy link
Contributor

I cannot reproduce the problem and I need the following information:

Revision (see the file revision in the root of the Dart SDK).

OS name and version?

32 or 64 bit?


Added NeedsInfo label.

@DartBot
Copy link
Author

DartBot commented Oct 29, 2012

This comment was originally written by @austincummings


Revision: 13851
OS: Linux Mint 13
64 bit

@peter-ahe-google
Copy link
Contributor

I can reproduce. It might be an issue with the 64-bit version of Dart.


Added Accepted label.

@peter-ahe-google
Copy link
Contributor

This is looking like a build problem. If I try to build the SDK for Linux x64, I run into a compilation with V8. This means that I cannot create 64-bit version of the SDK.

I think I remember that we may have hacked around that by taking the IA32 version of the SDK and copy the x64 version of the into the IA32 SDK. This probably was a great short-term solution, but now we have a snapshot that was generated with IA32 version of the VM being loaded by the x64 version of the VM. Clearly, that doesn't work.

I see two options:

  1. We fix the x64 SDK build.
  2. We delete the snapshot from the x64 SDK.

dgrove: can you shed some light on the x64 SDK build process?


cc @ricowind.
Set owner to @dgrove.
Removed Area-Dart2JS label.
Added Area-Build label.

@peter-ahe-google
Copy link
Contributor

I'm currently trying option 1 in this CL: https://codereview.chromium.org/11301019

@devoncarew
Copy link
Member

Peter, we do currently create the 64 bit SDK using the 32 bit one. See dart/editor/build/build.py, line 901 or so. It's not an ideal solution but it did get us unblocked.

@peter-ahe-google
Copy link
Contributor

I have confirmed this is a problem with the build process of the 64-bit SDK.


Set owner to @devoncarew.

@DartBot DartBot added Type-Defect area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. labels Oct 30, 2012
@DartBot DartBot added this to the M2 milestone Oct 30, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

4 participants