Skip to content

Parser bug: Invalid token, cannot triage #15

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

Closed
yjh0502 opened this issue May 24, 2011 · 6 comments
Closed

Parser bug: Invalid token, cannot triage #15

yjh0502 opened this issue May 24, 2011 · 6 comments

Comments

@yjh0502
Copy link

yjh0502 commented May 24, 2011

Input file is: http://desti.ruree.net/midi.o.ll

Output is following:

intertyper.js:303: Invalid token, cannot triage: // {"tokens":[{"text":"module"},{"text":"asm"},{"text":"\".symversnd_pcm_hw_params
// _get_access,snd_pcm_hw_params_get_access@ALSA_0.9\""}],"indent":0,"lineNum":5,"_
// _uid__":359}
    throw 'Invalid token, cannot triage: ' + dump(item);
@kripken
Copy link
Member

kripken commented May 25, 2011

The problem is the "module asm" lines, which are inline assembly. Emscripten can't translate CPU-specific code like that.

The source code you are building might have an option to not use inline assembly.

@kripken kripken closed this as completed May 25, 2011
@ghost
Copy link

ghost commented Oct 16, 2011

Using e.g. dragonegg this is done to all bc files. If you know a way how to prevent this embedding it would surely be appreciated.

@kripken
Copy link
Member

kripken commented Oct 16, 2011

What command are you using to compile with dragonegg? Might be related to optimization somehow.

Try to compile with emmaken.py with dragonegg, that might help since it will then use the emscripten headers and compile flags, something like

EMMAKEN_COMPILER=dragonegg python emmaken.py myfile.cpp -o myfile.o

@ghost
Copy link

ghost commented Oct 22, 2011

I cannot use emmaken since I'm using SCons and doing a lot of configuring in SCons.

@kripken
Copy link
Member

kripken commented Oct 23, 2011

I believe you should be able to tell SCons to use a different compiler than the platform's default. Looks like this has the right syntax:

http://stackoverflow.com/questions/2944251/changing-default-compiler-in-linux-using-scons

So,

env = Environment()
env.Replace(CC = "PATH-TO-EMMAKEN")

@ghost
Copy link

ghost commented Oct 23, 2011

Yeah I know and I do this quite extensively. I have already a python script in place so I'll have to see how I can access emmaken.py without making the whole thing any slower than it already is.
Which means I have to have a good look into emmaken.py, which has currently very low priority since I try to get the whole mess compiling again, first.

tlively pushed a commit to tlively/emscripten that referenced this issue Mar 23, 2022
steveisok pushed a commit to steveisok/emscripten that referenced this issue Sep 18, 2023
…811.1 (emscripten-core#15)

[dotnet/main] Update dependencies from dotnet/arcade
eagleoflqj pushed a commit to eagleoflqj/emscripten that referenced this issue Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants