You can use llvm-nm to see which symbols exist in the files being linked.
It is possible you have an object linked twice to two objects, then linked
together (which works with weak linkage, but not otherwise).

Basically, the way to debug this is to look at the emcc commands you emit,
and to use llvm-nm to see which symbols are in each, going back until you
see there the problem originates.

- Alon



On Mon, Feb 24, 2014 at 3:43 AM, Sasha Fonseca <[email protected]> wrote:

> Hello,
>
> I'm getting this error when running emscripten:
>
>
>
>
>
>
>
>
> *5 warnings generated./home/sashaFedora/llvm32build/bin/llvm-link: link
> error in '/tmp/tmpRJ5a8W/GLDrawableGraph_2.o': Linking globals named 'it':
> symbol multiply defined!Traceback (most recent call last):  File
> "/home/sashaFedora/emscripten/emcc", line 1439, in <module>
> shared.Building.link(linker_inputs, in_temp(target_basename + '.bc'),
> force_archive_contents = len(filter(lambda temp: not
> temp.endswith(STATICLIB_ENDINGS), temp_files)) == 0)  File
> "/home/sashaFedora/emscripten/tools/shared.py", line 1146, in link
> assert os.path.exists(target) and (output is None or 'Could not open input
> file' not in output), 'Linking error: ' + outputAssertionError: Linking
> error: *
>
>
> Could anyone help me solve it?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to