duncanca / mosaik-aligner

Automatically exported from code.google.com/p/mosaik-aligner
0 stars 0 forks source link

MosaikText fails to compile with intel 11.1 #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download source
2. make with intel compiler

What is the expected output? What do you see instead?

make -C MosaikText
make: Entering directory `/scratch/mosaik-aligner-source/src/MosaikText'
  * compiling MosaikText.cpp
../CommonSource/Utilities/SequenceUtilities.h(43): warning #186: pointless
comparison of unsigned integer with zero
                if(sLen < 0) break;
                        ^

../CommonSource/Utilities/ProgressBar.h(608): error: no instance of
"gettimeofday" matches the argument list
            argument types are: (timeval *, timezone *)
        gettimeofday(&tv, &tz);
        ^
          detected during:
            instantiation of "CProgressBar<K>::CProgressBar(K *, K, K,
std::string) [with K=uint64_t={unsigned long}]" at line 256
            instantiation of "void *CProgressBar<K>::Monitor(void *) [with
K=uint64_t={unsigned long}]" at line 188
            instantiation of "void CProgressBar<K>::StartThread(K *, K, K,
std::string) [with K=uint64_t={unsigned long}]" at line 261 of "MosaikText.cpp"

compilation aborted for MosaikText.cpp (code 2)
make: *** [../../obj/MosaikText.o] Error 2
make: Leaving directory `/scratch/mosaik-aligner-source/src/MosaikText'

What version of the product are you using? On what operating system?
1.0.1388, SL linux 5.4

Please provide any additional information below.

All other programs compiles just fine with intel. When I run the test data
the intel compiled binarys run a bit fastern than the supplied ones. 

Original issue reported on code.google.com by hagberg....@gmail.com on 26 Mar 2010 at 2:11

GoogleCodeExporter commented 8 years ago
Hi,

you are probably missing the gettimeofday() function. Are you trying to compile 
on
Windows?

Original comment by quiest...@gmail.com on 29 Mar 2010 at 8:54

GoogleCodeExporter commented 8 years ago
Sorry if the OS is a bit unclear. I am running Linux, Scientific Linux version 
5.4 its 
a red hat clone. 

Original comment by hagberg....@gmail.com on 29 Mar 2010 at 9:14

GoogleCodeExporter commented 8 years ago
Right, I managed to compile Mosaik without the slightest problem on Ubuntu 
Karmic
Koala using gcc 4.4.1
Try to see which gcc -v to see which gcc do you have. 
You can also try to compile with -ansi option which assures some 
back-compatibility.
Some time ago I also compiled Mosaik smoothly using CentOS which is also a 
clone of
RedHat. If you still fail, you can try to alter code. I guess it needs 
gettimeofday
to do some profiling only - I would try to remove timezone maybe... This may be 
of
some help:
http://www.halcode.com/archives/2008/08/26/retrieving-system-time-gettimeofday/
Or, if you have time, install ubuntu instead of SciLinux.

Martin

Original comment by quiest...@gmail.com on 29 Mar 2010 at 9:32

GoogleCodeExporter commented 8 years ago
I can also compile with gcc without problem. 

I want to use the intel compiler because it generate a bit faster code. I can 
compile 
every program except MosaikText with the intel compiler. 

So it is not an OS problem just that the intel compiler fails on MosaikText. 

Original comment by hagberg....@gmail.com on 29 Mar 2010 at 9:42