-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug report] angsd sites breaks due to compiler flags #527
Comments
For replicating this conda behavior:
Before conda install:
After conda install:
|
isinaltinkaya
added a commit
that referenced
this issue
Oct 11, 2022
Add function aio::doAssert to replace asserts Did not use aio::assert as name since aio.h namespace complains due to assert being a macro Fixes the major bug explained in #527 Fixes issues #520 #474 #466 #420 #405 #396 #385 Possibly others; other issues should rerun the commands using the latest version.
This was referenced Oct 11, 2022
isinaltinkaya
added a commit
that referenced
this issue
Oct 12, 2022
[fix]: Fix assert bug related to DNDEBUG flags #527
ANGSD
added a commit
that referenced
this issue
Oct 31, 2022
[fix] Fix compiler flags related sites parsing issue, fixes #527
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Current behavior
The same angsd source code built in two environments can change the output as following:
Env1:
Env2 (conda activated):
ANGSD version
This issue is not version specific, and is the same when tested
0.939-10-g21ed01c (htslib: 1.14-9-ge769401)
.Details
Conda environment may set some environment variables related to compiler flags such as
CXXFLAGS
andCFLAGS
under the hood, and this can even affect the value of variables after deactivating the environment (conda#10195).Note that NDEBUG in
-DNDEBUG
turns off asserts. Makefile:61 then Makefile:64 causes Makefile to compile cpp files with this flag.prep_sites.cpp
contains a lot of assert statements which probably causes the issue with sites when asserts are disabled.Possible solutions
We can add the following statement to Makefile to filter out the flag:
Related issues
Possibly related to issues #520 #466 #405
May be related to angsd bioconda package-related issues, too.
The text was updated successfully, but these errors were encountered: