Fwd: Need help with running BLAT on CentOS

176 views
Skip to first unread message

Aneesha Das

unread,
Sep 26, 2014, 12:33:25 PM9/26/14
to gen...@soe.ucsc.edu

---------- Forwarded message ----------
From: Aneesha Das <dasan...@gmail.com>
Date: Thu, Sep 25, 2014 at 8:48 PM
Subject: Re: Need help with running BLAT on CentOS
To: Jim Kent <ke...@soe.ucsc.edu>, cbs...@soe.ucsc.edu


Hi Dr.Kent,

I was trying to install the BLAT software on a machine with CentOS system as a part of the PASA pipeline. I did the following steps:

1.I uncompressed the blat folder in the  PASA main directory.
2. Copied the entire PASA directory to the /usr/local/bin folder as per the instructions available in the PASA installation page (http://pasa.sourceforge.net/).
3. Logged into the blatSrc folder.
4. Obtained the MACHTYPE of the machine by typing ($MACHTYPE, x86_64-redhat-linux-gnu)  and exported it.
5. Then I entered the lib directory within the blatSrc folder and typed 'make' for which the following error message was obtained.

gcc -O  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_x86_64 -DJK_WARN -Wall -Werror -I../inc -I../../inc -I../../../inc -I../../../../inc  -c net.c
cc1: warnings being treated as errors
net.c: In function ‘netAcceptingSocketFrom’:
net.c:92: error: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
/usr/include/sys/socket.h:190: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
net.c: In function ‘netAccept’:
net.c:115: error: pointer targets in passing argument 3 of ‘accept’ differ in signedness
/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
net.c: In function ‘netAcceptFrom’:
net.c:130: error: pointer targets in passing argument 3 of ‘accept’ differ in signedness
/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
make: *** [net.o] Error 1

Kindly help me with the installation.

Regards,
Aneesha.

On Mon, Sep 8, 2014 at 5:03 AM, Jim Kent <ke...@soe.ucsc.edu> wrote:
Looks like you need to setenv MACHTYPE, and also do a make in the lib directory.  Instructions for this should be in the README.  


On Sun, Sep 7, 2014 at 7:28 AM, Aneesha Das <dasan...@gmail.com> wrote:
Dear Dr.Kent,

I work in Dr.Saikat Chakrabarti's lab at the CSIR-Indian Institute of Chemical Biology. I have been trying to install BLAT in CentOS 5.8 server. I have downloaded the compressed version of the program (blatSrc35.zip), uncompressed the folder. But when I enter the blatSrc directory and type make (as user root), the process displays the following messages:
 make[1]: Entering directory
`/hpchome1/saikat/SOFTWARE/EVM/PASA_r20140417/blatSrc/blat'
make[1]: *** No rule to make target `../lib//jkweb.a', needed by `blat'.  Stop.
make[1]: Leaving directory `/hpchome1/saikat/SOFTWARE/EVM/PASA_r20140417/blatSrc/blat'
make: *** [all] Error 2
I had made a directory using the $MACHTYPE variable (x86_64-redhat-linux-gnu) in the lib directory, but the file jkweb.a could not be found anywhere.

I badly need help with the installation and running of this program (which is a part of the PASA pipeline, which I am trying to run). 


Help!!
Aneesha Das.



Steve Heitner

unread,
Sep 30, 2014, 11:26:52 AM9/30/14
to Aneesha Das, gen...@soe.ucsc.edu

Hello, Aneesha.

Please run the following commands:

rpm -qa > someFileName
gcc -v
uname -a

Then please send us the file output from the first command and the output from the other two commands.  You can send it directly to me if you would prefer that it doesn’t go to the list.

Please contact us again at gen...@soe.ucsc.edu if you have any further questions. 
Questions sent to that address will be archived in a publicly-accessible forum for the benefit of other users.  If your question contains sensitive data, you may send it instead to genom...@soe.ucsc.edu.

---
Steve Heitner
UCSC Genome Bioinformatics Group

--

Aneesha Das

unread,
Oct 1, 2014, 11:29:18 AM10/1/14
to st...@soe.ucsc.edu, gen...@soe.ucsc.edu
Hi Steve,

Thanks for replying. I am on vacation in Jakarta right now, so I will be able to send you the files when I return to work on 7th October. Do let me know if this is okay with you.

Regards,
Aneesha.

Steve Heitner

unread,
Oct 1, 2014, 11:30:43 AM10/1/14
to Aneesha Das, gen...@soe.ucsc.edu

Hello, Aneesha.

Yes, this would be fine.  We’ll look to hear from you when you return.

Please contact us again at gen...@soe.ucsc.edu if you have any further questions. 
All messages sent to that address are archived on a publicly-accessible Google Groups forum.  If your question includes sensitive data, you may send it instead to genom...@soe.ucsc.edu.

Aneesha Das

unread,
Oct 7, 2014, 12:26:58 PM10/7/14
to Steve Heitner, gen...@soe.ucsc.edu
Hi Steve,

I have attached the output for the command rpm -qa.

The output for the command gcc -v is as follows:
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) 

The output for the command uname -a is:
Linux blade2 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux.

Blade2 refers to the CentOS machine where we are trying to install the PASA package.

Do let me know if you need any more help.

Regards,
Aneesha.
rpm-qa-out

Jonathan Casper

unread,
Oct 9, 2014, 7:21:40 PM10/9/14
to Aneesha Das, Steve Heitner, gen...@soe.ucsc.edu

Hello Aneesha,

This is definitely a puzzle. Your environment is quite similar to our development machines, but we can't seem to reproduce your errors. You could instead try building BLAT using the source code in our userApps package at http://hgdownload.soe.ucsc.edu/admin/exe/. There are also some precompiled binaries for several architectures in that directory. If your system really is that similar to our development environment, you might be able to use those and skip the compilation step altogether.

I hope this is helpful. If you have any further questions, please reply to gen...@soe.ucsc.edu or genome...@soe.ucsc.edu. Questions sent to those addresses will be archived in publicly-accessible forums for the benefit of other users. If your question contains sensitive data, you may send it instead to genom...@soe.ucsc.edu.

--
Jonathan Casper
UCSC Genome Bioinformatics Group


--


Aneesha Das

unread,
Oct 10, 2014, 11:35:58 AM10/10/14
to Jonathan Casper, Steve Heitner, gen...@soe.ucsc.edu, Anindyajit Banerjee
Hi Jonathan,

Thank you for replying. I have the following queries:
1. We want to install blat as a part of the PASA package (http://pasa.sourceforge.net), where we have successfully installed GMAP and FASTA on one of the client nodes of a server machine. Will blat program run fine if we run it on one node of a cluster of computers or does it work more efficiently if run on a cluster of computers? 
2. Do we have to install gfServer, gfClient and webBlat alongwith blat for the program to run successfully?

Regards,
Aneesha.

Jonathan Casper

unread,
Oct 10, 2014, 8:51:50 PM10/10/14
to Aneesha Das, gen...@soe.ucsc.edu, Anindyajit Banerjee

Hello Aneesha,

You do not have to install gfServer and gfClient to run BLAT. You may find, however, that gfServer and gfClient are a better way to use BLAT depending on your needs. The gfServer daemon keeps some data in memory, which can result in faster alignments if you plan to run a series of alignments against the same target sequence. Otherwise, BLAT will run fine on a single compute node if that is what you want to do.

I am still curious about your problems compiling BLAT from the source code in blatSrc35.zip. Can you please go into the blatSrc/lib/ directory and run the following command?

env CFLAGS="-E" make net.o

Then send me the resulting net.o file. It might help us figure out where the problem is coming from.

I hope this is helpful. If you have any further questions, please reply to gen...@soe.ucsc.edu or genome...@soe.ucsc.edu. Questions sent to those addresses will be archived in publicly-accessible forums for the benefit of other users. If your question contains sensitive data, you may send it instead to genom...@soe.ucsc.edu.

--
Jonathan Casper
UCSC Genome Bioinformatics Group

Aneesha Das

unread,
Oct 13, 2014, 12:08:25 PM10/13/14
to Jonathan Casper, gen...@soe.ucsc.edu, Anindyajit Banerjee
Hi Jonathan,

When I type the command env CFLAGS="-E" make net.o in the blatSrc/lib/ folder, the following error message appears:

gcc -O  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_ -DJK_WARN -Wall -Werror -I../inc -I../../inc -I../../../inc -I../../../../inc  -c net.c
cc1: warnings being treated as errors
net.c: In function ‘netAcceptingSocketFrom’:
net.c:92: error: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
/usr/include/sys/socket.h:190: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
net.c: In function ‘netAccept’:
net.c:115: error: pointer targets in passing argument 3 of ‘accept’ differ in signedness
/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
net.c: In function ‘netAcceptFrom’:
net.c:130: error: pointer targets in passing argument 3 of ‘accept’ differ in signedness
/usr/include/sys/socket.h:214: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
make: *** [net.o] Error 1

The net.o file was not generated. As per the instructions mentioned in the PASA installation page (http://pasa.sourceforge.net/), the PASA software package has to be moved to the location /usr/local/bin. Since PASA requires blat, do we have to move the blast folder to the same location too? Please let me know.

I have a request. I am quite ignorant about what each of the files in the PASA lib directory contain, for example, I would like to know what information the net.o file will contain. I request you to explain each step that you carry out while debugging, if it is okay with you.

Regards,
Aneesha.

Jonathan Casper

unread,
Oct 14, 2014, 1:42:19 PM10/14/14
to Aneesha Das, gen...@soe.ucsc.edu, Anindyajit Banerjee

Hello Aneesha,

I'm somewhat confused by your error output. Running env CFLAGS="-E" make net.o should have added -E to the list of options for gcc. In your output, however, it's clear that the -E option is not being used. If you are using one of the C shell variants (csh, tcsh), you can instead try running

setenv CFLAGS "-E" 
make net.o
unsetenv CFLAGS

The goal of this command would be to see what how the gcc preprocessor is defining the socklen_t variables, as you may have conflicting library definitions. The output of the preprocessor should appear in the net.o file instead of its usual contents (object code).

That said, there is no guarantee that this will lead anywhere useful for you. If you are able to run one of our precompiled BLAT binaries from http://hgdownload.soe.ucsc.edu/admin/exe/, that is a better plan.

You will have to check with the PASA developers about where it expects to find the blat binary - we didn't make PASA, and we can't support it.

I hope this is helpful. If you have any further questions, please reply to gen...@soe.ucsc.edu or genome...@soe.ucsc.edu. Questions sent to those addresses will be archived in publicly-accessible forums for the benefit of other users. If your question contains sensitive data, you may send it instead to genom...@soe.ucsc.edu.

--
Jonathan Casper
UCSC Genome Bioinformatics Group

Reply all
Reply to author
Forward
0 new messages