Skip to content

The runtime error "ReferenceError: __get_timezone is not defined" occurs when EXPORT_ALL=1 #9181

Closed
@y-ich

Description

@y-ich

Hi.

When you use the function tzset in C/C++ and compiles files with "-s EXPORT_ALL=1", the following runtime error occurs.

 ReferenceError: __get_timezone is not defined

I found it in libc-extras.a, but it seems that it is not linked.
How can I fix it?
(I use EXPORT_ALL=1 since I use EXTRA_EXPORTED_RUNTIME_METHODS option.)

My environment is,

  1. macOS 10.14.6
  2. using latest-upstream
    • emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.38.40
    • clang version 10.0.0 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-git.colasdn.top-llvm-llvm--project 10dad95a75592717d2f7c0ebc181fb8a970a8df7)

Thanks.

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