You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Cori, when compiling with anaconda's cross compiling toolchain, if we use -c99, strdup will cause a segfault.
The reason is likely because strdup is not part of c99, and thus the compilation will not see a prototype to the function, causing the compiler to truncate the return value of the function to 'int' which is shorter than a true pointer on x64.
We shall update Makefile.travis; as it serves as an example for compiling in such situation.
The text was updated successfully, but these errors were encountered:
On Cori, when compiling with anaconda's cross compiling toolchain, if we use -c99, strdup will cause a segfault.
The reason is likely because strdup is not part of c99, and thus the compilation will not see a prototype to the function, causing the compiler to truncate the return value of the function to 'int' which is shorter than a true pointer on x64.
We shall update Makefile.travis; as it serves as an example for compiling in such situation.
The text was updated successfully, but these errors were encountered: