Comments (5)
I had the same error message as @xiangzhou when I was compiling GEMMA on ubuntu with GCC v5.4.0.
It is a problem of the compiler we have used. As one of my colleagues suspected, I finally got GEMMA compiled successfully using gcc-4.9.3. It seems that the code "SNPINFO sInfo={"-9", rs, -9, -9, minor, major, -9, -9, (long int) -9};" is not compatible with gcc-5+. @xiangzhu @DSLituiev
There is another way to get round of this problem using gcc-5. We can change the class definition:
class SNPINFO { public: ... size_t n_miss; ... };
into
class SNPINFO { public: ... ssize_t n_miss; ... };
However, I would not recommend this method because I am not sure if the substitution of data types would affect results.
from gemma.
@wanyuac Thank you, your fork of this repo worked for me. The only modification I had to make for my environment was changing CPP to g++-4.9 since I now have multiple versions installed.
from gemma.
@xiangzhou I get the same build error with gcc-5
; and I also get the same error using g++ (Ubuntu 6.2.0-3ubuntu11~16.04) 6.2.0 20160901
.
Here is the error from gcc-6
.
src/io.cpp: In function ‘bool ReadFile_bgen(const string&, const std::set<std::__cxx11::basic_string<char> >&, const gsl_matrix*, std::vector<int>&, std::vector<int>&, std::vector<SNPINFO>&, const double&, const double&, const double&, const double&, std::size_t&)’:
src/io.cpp:2165:73: error: narrowing conversion of ‘-9’ from ‘int’ to ‘std::size_t {aka long unsigned int}’ inside { } [-Wnarrowing]
SNPINFO sInfo={"-9", rs, -9, -9, minor, major, -9, -9, (long int) -9};
^
Makefile:108: recipe for target 'src/io.o' failed
make: *** [src/io.o] Error 1
from gemma.
@wanyuac @xiangzhu @echubaty @DSLituiev Can one of you please check to see if this issue is now resolved? See also Issue #24, which reported the same problem (although using a different C++ compiler).
from gemma.
Guix version compiles fine with latest gcc compilers.
from gemma.
Related Issues (20)
- Errors when running GEMMA in an SoS step but ok in command line HOT 1
- FAILED error HOT 1
- Issue with GEMMA-Wrapper HOT 1
- Parsing input file '' failed in function AnalyzeBimbamGXE
- Enforce failed for number of analyzed individuals equals 0. in src/param.cpp at line 2073 in ProcessCvtPhen HOT 2
- long haplotype as population structure
- basic usage doesn't work
- Gemma run-time for Estimate Relatedness Matrix calculation
- very low number of analyzed SNPs/var
- The input files includes 26 linkage groups but the output files only includes 22 linkage group
- Categorical covariates
- Pve is .999 HOT 1
- gemma-wrapper:279:in `<main>': Expected GEMMA -a genotype file switch (RuntimeError)
- Got a nan in the p-value results HOT 1
- gsl: newton.c:88: ERROR: function value is not finite 3.08%
- GSL ERROR: function value is not finite in brent.c at line 58 errno 9
- WARNING: Brent did not converge
- Why the diagonal of relatedness matrix is not equal to 1 or a constant value? HOT 1
- The problem of filtering snp parameters
- ERROR: Enforce failed for Problem reading FAM file (phenotypes do not match geno file) in src/gemma_io.cpp at line 600 in ReadFile_fam GEMMA 0.98.3 (2020-11-28) by Xiang Zhou and team (C) 2012-2020
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gemma.