Failed to Allocate Memory

Symptom

An operator fails to be generated, and the error message ".../libgomp.so: cannot allocate memory in static TLS block" is displayed.

Possible Cause

A GCC bug exists in the OS of an earlier version. For details about the bug, visit the official GCC website.

Solution

Run the following command to import environment variables:

export LD_PRELOAD={…/libgomp.so}  # Replace the content in {} with the actual path of the libgomp.so file.