Seeing symbols in emcc generated object files.

6 views
Skip to first unread message

Dale Pennington

unread,
Dec 1, 2025, 12:49:23 PM (2 days ago) Dec 1
to emscripten-discuss
Folks,
I am operating in a Linux environment with Qt 6.10 for WebAssembly using cmake to build.
The issue is if I place all the files in one directory it builds, but if I split them up to subdirectories (we use forms, inc, and src) I get a link error of vtable not found for the window class.
What I want to do it dump the symbol table on the .o file to see what the difference is in the the .o file for the flat version vs the .o file in the tree version. Is there a tool to do that ?
Thanks
Dale Pennington

Sam Clegg

unread,
Dec 1, 2025, 1:00:02 PM (2 days ago) Dec 1
to emscripte...@googlegroups.com
You can use all of the standard llvm tools for inspecting object files.   e.g. `llvm-nm`, `llvm-objdump`, etc. 

cheers,
sam
 
Thanks
Dale Pennington

--
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 emscripten-disc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/83aaa565-247b-4640-8944-d842c74ec190n%40googlegroups.com.

Dale Pennington

unread,
Dec 1, 2025, 2:03:28 PM (2 days ago) Dec 1
to emscripten-discuss

Thanks for that. Now I have a further quandry. The generated .o's are identical (used diff for compare) and the only difference in the link line is that the paths are slightly different due to flat vs tree. And both .o
s show the vtable as undefined. But the flat link while the tree has  a link error on the undefined vtable. I would think it has to be something in the link process but cannot see anything special. Anyone have an idea ?

Thanks
Dale Pennington

Dale Pennington

unread,
Dec 1, 2025, 2:08:43 PM (2 days ago) Dec 1
to emscripten-discuss
I have figured out the issue is with the AUTOMOC tool that Qt provides and CMake uses that is the problem, nothing in emscripten. 

Dale

Reply all
Reply to author
Forward
0 new messages