-
Notifications
You must be signed in to change notification settings - Fork 2
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
Trouble compiling RUTH #4
Comments
Hi,
From what I can see, it looks like the error is caused by a difference in
compiler implementation in your system, where it does not include the
<cstdint> library as part of #include <string> in the declared header in
Error.h -- which you may be able to fix quickly by adding the line
#include <cstdint>
in Error.h, in a new line after #include <string>. I think this should fix
the listed compilation problem.
Please let us know if that works, and if you see any further compilation
errors. We will try to update RUTH to solve those problems as they pop
up, so it will be useful to hear whether this addition fixes your problem.
Thank you,
…-Alan
On Fri, Oct 23, 2020 at 12:47 PM ElizabethBlue ***@***.***> wrote:
Hi,
Our lab is having trouble installing RUTH, and have tried different gcc
compilers and older versions of htslib. We're wondering if it is related to
the recent updates to RUTH, but we don't have an older copy to try. I've
put the command and error messages below, do you have any advice?
Thanks for your time,
Liz
compiling RUTH
git clone https://github.com/statgen/ruth.git
cd ruth
mkdir build
cd build
cmake -DHTS_INCLUDE_DIRS=/home/src/htslib/include/
-DHTS_LIBRARIES=/home/src/htslib/lib/libhts.a ..
make
error message:
[ 4%] Building CXX object CMakeFiles/ruth.dir/Error.cpp.o
In file included from /acct/em27/programs/ruth/Error.cpp:18:0:
/acct/em27/programs/ruth/Error.h:36:14: error: variable or field ‘verbose’
declared void
void verbose(int32_t priority, const char * msg, ...);
^
/acct/em27/programs/ruth/Error.h:36:14: error: ‘int32_t’ was not declared
in this scope
/acct/em27/programs/ruth/Error.h:36:32: error: expected primary-expression
before ‘const’
void verbose(int32_t priority, const char * msg, ...);
^
/acct/em27/programs/ruth/Error.h:36:50: error: expected primary-expression
before ‘...’ token
void verbose(int32_t priority, const char * msg, ...);
^
/acct/em27/programs/ruth/Error.h:39:8: error: ‘int32_t’ does not name a
type
extern int32_t globalVerbosityThreshold;
^
make[2]: *** [CMakeFiles/ruth.dir/Error.cpp.o] Error 1
make[1]: *** [CMakeFiles/ruth.dir/all] Error 2
make: *** [all] Error 2
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB5YYDW5SXN772L22BH7R3LSMGXR7ANCNFSM4S4ZKI3A>
.
|
Thank you for your quick reply! We amended the Error.h file and compiled the program, but then another error came up, and the compilation stopped. I've pasted the error message below, for what it is worth.
It looks like there are multiple differences between our compilers. Can you send me more information on the compilers/compiler settings you are using so I can try to mimic them here? Thanks again, Liz |
Please edit CMakeLists.txt from
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -pthread")
to
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -std=c++11 -pthread")
and redo the compilation, and it will work ok. Some version of
cmake/compiler compilations may not recognize CXX_STANDARD correctly.
Hyun.
…On Mon, Oct 26, 2020 at 3:06 PM ElizabethBlue ***@***.***> wrote:
Thank you for your quick reply!
We amended the Error.h file and compiled the program, but then another
error came up, and the compilation stopped. I've pasted the error message
below, for what it is worth.
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file
requires compiler and library support for the ISO C++ 2011 standard. This
support is currently experimental, and must be enabled with the -std=c++11
or -std=gnu++11 compiler options.
It looks like there are multiple differences between our compilers. Can
you send me more information on the compilers/compiler settings you are
using so I can try to mimic them here?
Thanks again,
Liz
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPY5OMXWI3KC6LSOEES2H3SMXCCBANCNFSM4S4ZKI3A>
.
|
Thanks for your quick reply! In good news, we made some progress with the compilation. In bad news, we encountered another error. Looks like the compiler is grumpy about the forward declaration of faidx_t? Please see below for details.
|
Are you sure that you are using the latest versions of htslib and ruth? You may encounter such problems if one of the versions are outdated. |
Thanks again for your patience and interest in helping to resolve this problem. I'm using htslib-1.11 and a version of ruth download using this command on Oct 23rd:
Another person in my group has run into the same errors on a different machine using a ruth download dated Oct 19th. Installing htslib
Compiling RUTH
I ran into the same errors we've discussed before, applied the same solutions you recommended, and came to the same error I described three days ago. I then moved the files that changed fifteen days ago into a separate directory, manually downloaded their replacements from github to make sure I had the latest versions,, and end at nearly the same error described three days ago:
|
I made some changes to avoid possible errors, and I also think you need to run cmake with different configurations cmake -DHTS_INCLUDE_DIRS=/home/src/htslib/ -DHTS_LIBRARIES=/home/src/htslib/libhts.a .. |
Hi Hyun, We downloaded your new files this morning and have successfully compiled RUTH on multiple machines!!! Thank you again for all your help with this, I really appreciate it. Best, |
Hi,
Our lab is having trouble installing RUTH, and have tried different gcc compilers and older versions of htslib. We're wondering if it is related to the recent updates to RUTH, but we don't have an older copy to try. I've put the command and error messages below, do you have any advice?
Thanks for your time,
Liz
compiling RUTH
error message:
The text was updated successfully, but these errors were encountered: