Skip to content

Missing dso_handle #7811

Closed
Closed
@Mintyboi

Description

@Mintyboi

@kripken I hit into this error when running my build.

external function '___dso_handle' is missing. perhaps a side module was not linked in? if this symbol was expected to arrive from a system library, try to build the MAIN_MODULE with EMCC_FORCE_STDLIBS=1 in the environment

This is because after setting EXPORT_ALL to false in #7371 , this function gets excluded in

if ((EXPORT_ALL || (finalName in EXPORTED_FUNCTIONS)) && !noExport) {

I'm not sure how to reproduce this issue in a smaller test case. However, this function appears to be a standard library function that I am not explicit using.
Do you think it make sense to add it into the shared.Settings.EXPORTED_FUNCTIONS in emcc.py? And if so under which conditions do you think it falls best under

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions