Skip to content

--llvm-lto 3 -s USE_PTHREADS -s FETCH=1 broken in 1.38.28 #8242

Description

@VirtualTim

Compiling something simple like:

#include <iostream>
int main(int argc, char** argv) {
	std::cout << "test" << std::endl;
}

Using: emcc test.cpp --llvm-lto 3 -s USE_PTHREADS -s FETCH=1 -o test.html Will result in the error
shared:ERROR: failed to find function _pthread_mutexattr_init!

This worked in 1.38.27. Compiling with -s WASM=0 doesn't change the error.
--llvm-lto 2 works for the above example, but the actual code I'm working on requires --llvm-lto 0 to compile.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions