public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem installing openTimer in cygwin
@ 2016-11-11  8:58 kunal ghosh
  2016-11-11 11:57 ` Csaba Raduly
  0 siblings, 1 reply; 6+ messages in thread
From: kunal ghosh @ 2016-11-11  8:58 UTC (permalink / raw)
  To: cygwin

Hi
I am trying to install OpenTimer software on my Windows 7 machine
through cygwin, using standard steps "./configure", "make" , "make
install"

./configure gives me the below errors for which I have googled and
didnt founf anything constructive:

Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
$ grep error config.log
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.cpp:23:28: fatal error: ac_nonexistent.h: No such file or directory
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
conftest.cpp:60:21: error: expected primary-expression before ')' token
conftest.cpp:60:22: error: expected primary-expression before ')' token
conftest.cpp:60:22: error: expected primary-expression before ')' token
conftest.cpp:60:22: error: expected primary-expression before ')' token
conftest.cpp:26:2: error: 'choke' does not name a type
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:39:3: error:
'omp_lock_t' does not name a type
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:28: error:
variable or field 'omp_init_lock' declared void
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:28: error:
'omp_lock_t' was not declared in this scope
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:40: error:
expected primary-expression before ')' token
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:87:31: error:
variable or field 'omp_destroy_lock' declared void
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:87:31: error:
'omp_lock_t' was not declared in this scope
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:87:43: error:
expected primary-expression before ')' token
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:88:27: error:
variable or field 'omp_set_lock' declared void
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:88:27: error:
'omp_lock_t' was not declared in this scope
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:88:39: error:
expected primary-expression before ')' token
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:89:29: error:
variable or field 'omp_unset_lock' declared void
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:89:29: error:
'omp_lock_t' was not declared in this scope
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:89:41: error:
expected primary-expression before ')' token
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:90:27: error:
'omp_lock_t' was not declared in this scope
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:90:39: error:
expected primary-expression before ')' token
/usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:90:41: error:
expected ',' or ';' before 'throw'

Inspite of the above errors, I go ahead with 'make' command and I get
below errors:

src/utilities.cc: In function 'pid_t
google::glog_internal_namespace_::GetTID()':
src/utilities.cc:265:29: error: 'GetCurrentThreadId' was not declared
in this scope
   return GetCurrentThreadId();
                             ^
make[2]: *** [Makefile:1197: src/libglog_la-utilities.lo] Error 1
make[2]: Leaving directory
'/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5/3rd-party/glog-0.3.3'
make[1]: *** [Makefile:2676: all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5'
make: *** [Makefile:846: all] Error 2


The owner of this software has asked me to move to Linux machine.
Before doing that, just wanted to check out if there's a workaround
available?
Any help appreciated?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problem installing openTimer in cygwin
  2016-11-11  8:58 problem installing openTimer in cygwin kunal ghosh
@ 2016-11-11 11:57 ` Csaba Raduly
  2016-11-11 14:06   ` kunal ghosh
  0 siblings, 1 reply; 6+ messages in thread
From: Csaba Raduly @ 2016-11-11 11:57 UTC (permalink / raw)
  To: cygwin list

Hi Kunal,

On Fri, Nov 11, 2016 at 7:21 AM, kunal ghosh  wrote:
> Hi
> I am trying to install OpenTimer software on my Windows 7 machine
> through cygwin, using standard steps "./configure", "make" , "make
> install"
>
> ./configure gives me the below errors for which I have googled and
> didnt founf anything constructive:
>
> Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
> $ grep error config.log

configure tries to compile a variety of throw-away programs to check
for the capabilities of the system.
Lots of errors in config.log are expected.
You should only look at config.log if configure reports an error and
fails to generate the Makefile.

(snip)
> g++: error: unrecognized command line option '-V'
> g++: fatal error: no input files
> g++: error: unrecognized command line option '-qversion'
> g++: fatal error: no input files

Here it probably tries to find the switch that prints the compiler version.
It has to try every known switch that does that; but no  compiler will
accept every possibility.
These errors are harmless. They tell configure that GCC doesn't
support the -qversion switch
(-qversion is accepted by IBM's XL C/C++ compiler for AIX).

(snip)
> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:39:3: error:
> 'omp_lock_t' does not name a type
> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:28: error:
> variable or field 'omp_init_lock' declared void

Here it probably found out that OMP is not supported.

> Inspite of the above errors, I go ahead with 'make' command and I get
> below errors:
>
> src/utilities.cc: In function 'pid_t
> google::glog_internal_namespace_::GetTID()':
> src/utilities.cc:265:29: error: 'GetCurrentThreadId' was not declared
> in this scope
>    return GetCurrentThreadId();
>                              ^

This suggests that OpenTimer thinks it's being compiled under Windows
(GetCurrentThreadId is a Win32 API function). It failed to identify
Cygwin as a POSIX platform. You could try submitting a bug report or,
if you're a programmer, fix it and supply a patch:

"OpenTimer is actively maintained by Tsung-Wei Huang. If you are
discovering any bugs or are interested in pursuing an OpenTimer-based
project with me, please contact  twh760812@gmail.com"

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problem installing openTimer in cygwin
  2016-11-11 11:57 ` Csaba Raduly
@ 2016-11-11 14:06   ` kunal ghosh
  2016-11-11 14:13     ` kunal ghosh
  0 siblings, 1 reply; 6+ messages in thread
From: kunal ghosh @ 2016-11-11 14:06 UTC (permalink / raw)
  To: cygwin

Thanks Csaba. Let me check with owner of this tool and keep you posted

On Fri, Nov 11, 2016 at 2:28 PM, Csaba Raduly <rcsaba@gmail.com> wrote:
> Hi Kunal,
>
> On Fri, Nov 11, 2016 at 7:21 AM, kunal ghosh  wrote:
>> Hi
>> I am trying to install OpenTimer software on my Windows 7 machine
>> through cygwin, using standard steps "./configure", "make" , "make
>> install"
>>
>> ./configure gives me the below errors for which I have googled and
>> didnt founf anything constructive:
>>
>> Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
>> $ grep error config.log
>
> configure tries to compile a variety of throw-away programs to check
> for the capabilities of the system.
> Lots of errors in config.log are expected.
> You should only look at config.log if configure reports an error and
> fails to generate the Makefile.
>
> (snip)
>> g++: error: unrecognized command line option '-V'
>> g++: fatal error: no input files
>> g++: error: unrecognized command line option '-qversion'
>> g++: fatal error: no input files
>
> Here it probably tries to find the switch that prints the compiler version.
> It has to try every known switch that does that; but no  compiler will
> accept every possibility.
> These errors are harmless. They tell configure that GCC doesn't
> support the -qversion switch
> (-qversion is accepted by IBM's XL C/C++ compiler for AIX).
>
> (snip)
>> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:39:3: error:
>> 'omp_lock_t' does not name a type
>> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:28: error:
>> variable or field 'omp_init_lock' declared void
>
> Here it probably found out that OMP is not supported.
>
>> Inspite of the above errors, I go ahead with 'make' command and I get
>> below errors:
>>
>> src/utilities.cc: In function 'pid_t
>> google::glog_internal_namespace_::GetTID()':
>> src/utilities.cc:265:29: error: 'GetCurrentThreadId' was not declared
>> in this scope
>>    return GetCurrentThreadId();
>>                              ^
>
> This suggests that OpenTimer thinks it's being compiled under Windows
> (GetCurrentThreadId is a Win32 API function). It failed to identify
> Cygwin as a POSIX platform. You could try submitting a bug report or,
> if you're a programmer, fix it and supply a patch:
>
> "OpenTimer is actively maintained by Tsung-Wei Huang. If you are
> discovering any bugs or are interested in pursuing an OpenTimer-based
> project with me, please contact  twh760812@gmail.com"
>
> Csaba
> --
> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
> The Tao of math: The numbers you can count are not the real numbers.
> Life is complex, with real and imaginary parts.
> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
> "People disagree with me. I just ignore them." -- Linus Torvalds
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>



-- 
Thanks & Regards
Kunal P Ghosh
(www.vlsisystemdesign.com)

"A pessimist always sees difficulty in every opportunity, An optimist
always sees opportunity in every difficulty"

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problem installing openTimer in cygwin
  2016-11-11 14:06   ` kunal ghosh
@ 2016-11-11 14:13     ` kunal ghosh
  2016-11-11 16:10       ` kunal ghosh
  0 siblings, 1 reply; 6+ messages in thread
From: kunal ghosh @ 2016-11-11 14:13 UTC (permalink / raw)
  To: cygwin

Hi Csaba,

The original error has gone. Now I get the below error:

I do below (saw some update on this and so using --host): --- Works fine
./configure --host=x86_64-w64-mingw32

and then below :

Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
$ make
make  all-recursive
make[1]: Entering directory '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5'
Making all in 3rd-party/glog-0.3.3
make[2]: Entering directory
'/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5/3rd-party/glog-0.3.3'
/bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-w64-mingw32-g++
-DHAVE_CONFIG_H -I. -I./src  -I./src    -Wall -Wwrite-strings
-Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG
-g -O2 -MT src/libglog_la-logging.lo -MD -MP -MF
src/.deps/libglog_la-logging.Tpo -c -o src/libglog_la-logging.lo `test
-f 'src/logging.cc' || echo './'`src/logging.cc
libtool: compile:  x86_64-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I./src
-I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
-DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-logging.lo -MD
-MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc
-DDLL_EXPORT -DPIC -o src/.libs/libglog_la-logging.o
In file included from src/logging.cc:32:0:
src/utilities.h:78:19: fatal error: port.h: No such file or directory
compilation terminated.
make[2]: *** [Makefile:1176: src/libglog_la-logging.lo] Error 1
make[2]: Leaving directory
'/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5/3rd-party/glog-0.3.3'
make[1]: *** [Makefile:2676: all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5'
make: *** [Makefile:846: all] Error 2

Can you pelase help how to workaround this?



On Fri, Nov 11, 2016 at 6:42 PM, kunal ghosh <kunalpghosh@gmail.com> wrote:
> Thanks Csaba. Let me check with owner of this tool and keep you posted
>
> On Fri, Nov 11, 2016 at 2:28 PM, Csaba Raduly <rcsaba@gmail.com> wrote:
>> Hi Kunal,
>>
>> On Fri, Nov 11, 2016 at 7:21 AM, kunal ghosh  wrote:
>>> Hi
>>> I am trying to install OpenTimer software on my Windows 7 machine
>>> through cygwin, using standard steps "./configure", "make" , "make
>>> install"
>>>
>>> ./configure gives me the below errors for which I have googled and
>>> didnt founf anything constructive:
>>>
>>> Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
>>> $ grep error config.log
>>
>> configure tries to compile a variety of throw-away programs to check
>> for the capabilities of the system.
>> Lots of errors in config.log are expected.
>> You should only look at config.log if configure reports an error and
>> fails to generate the Makefile.
>>
>> (snip)
>>> g++: error: unrecognized command line option '-V'
>>> g++: fatal error: no input files
>>> g++: error: unrecognized command line option '-qversion'
>>> g++: fatal error: no input files
>>
>> Here it probably tries to find the switch that prints the compiler version.
>> It has to try every known switch that does that; but no  compiler will
>> accept every possibility.
>> These errors are harmless. They tell configure that GCC doesn't
>> support the -qversion switch
>> (-qversion is accepted by IBM's XL C/C++ compiler for AIX).
>>
>> (snip)
>>> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:39:3: error:
>>> 'omp_lock_t' does not name a type
>>> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:28: error:
>>> variable or field 'omp_init_lock' declared void
>>
>> Here it probably found out that OMP is not supported.
>>
>>> Inspite of the above errors, I go ahead with 'make' command and I get
>>> below errors:
>>>
>>> src/utilities.cc: In function 'pid_t
>>> google::glog_internal_namespace_::GetTID()':
>>> src/utilities.cc:265:29: error: 'GetCurrentThreadId' was not declared
>>> in this scope
>>>    return GetCurrentThreadId();
>>>                              ^
>>
>> This suggests that OpenTimer thinks it's being compiled under Windows
>> (GetCurrentThreadId is a Win32 API function). It failed to identify
>> Cygwin as a POSIX platform. You could try submitting a bug report or,
>> if you're a programmer, fix it and supply a patch:
>>
>> "OpenTimer is actively maintained by Tsung-Wei Huang. If you are
>> discovering any bugs or are interested in pursuing an OpenTimer-based
>> project with me, please contact  twh760812@gmail.com"
>>
>> Csaba
>> --
>> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
>> The Tao of math: The numbers you can count are not the real numbers.
>> Life is complex, with real and imaginary parts.
>> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
>> "People disagree with me. I just ignore them." -- Linus Torvalds
>>
>> --
>> Problem reports:       http://cygwin.com/problems.html
>> FAQ:                   http://cygwin.com/faq/
>> Documentation:         http://cygwin.com/docs.html
>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>>
>
>
>
> --
> Thanks & Regards
> Kunal P Ghosh
> (www.vlsisystemdesign.com)
>
> "A pessimist always sees difficulty in every opportunity, An optimist
> always sees opportunity in every difficulty"



-- 
Thanks & Regards
Kunal P Ghosh
(www.vlsisystemdesign.com)

"A pessimist always sees difficulty in every opportunity, An optimist
always sees opportunity in every difficulty"

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problem installing openTimer in cygwin
  2016-11-11 14:13     ` kunal ghosh
@ 2016-11-11 16:10       ` kunal ghosh
  2016-11-13 19:50         ` Csaba Raduly
  0 siblings, 1 reply; 6+ messages in thread
From: kunal ghosh @ 2016-11-11 16:10 UTC (permalink / raw)
  To: cygwin

Also, I went ahead modifying the utilities.h to point to
windows/port.h, instead of port.h.
And some more hacks to get rid of other errors. Now 'make' gives me
the below errors. Not sure how to resolve this

src/logging.cc: In member function 'bool
google::{anonymous}::LogFileObject::CreateLogfile(const string&)':
src/logging.cc:895:43: error: 'symlink' was not declared in this scope
     if (symlink(linkdest, linkpath.c_str()) != 0) {
                                           ^
src/logging.cc:904:45: error: 'symlink' was not declared in this scope
       if (symlink(filename, linkpath.c_str()) != 0) {
                                             ^
src/logging.cc: In function 'void google::TruncateLogFile(const char*,
google::int64, google::int64)':
src/logging.cc:1828:69: error: 'O_NOFOLLOW' was not declared in this scope
   if (strncmp(procfd_prefix, path, strlen(procfd_prefix))) flags |= O_NOFOLLOW;
                                                                     ^
src/logging.cc:1867:68: error: 'pread' was not declared in this scope
   while ((bytesin = pread(fd, copybuf, sizeof(copybuf), read_offset)) > 0) {
                                                                    ^
src/logging.cc:1868:57: error: 'pwrite' was not declared in this scope
     bytesout = pwrite(fd, copybuf, bytesin, write_offset);
                                                         ^
make[2]: *** [Makefile:1176: src/libglog_la-logging.lo] Error 1
make[2]: Leaving directory
'/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5/3rd-party/glog-0.3.3'
make[1]: *** [Makefile:2676: all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5'
make: *** [Makefile:846: all] Error 2

On Fri, Nov 11, 2016 at 7:26 PM, kunal ghosh <kunalpghosh@gmail.com> wrote:
> Hi Csaba,
>
> The original error has gone. Now I get the below error:
>
> I do below (saw some update on this and so using --host): --- Works fine
> ./configure --host=x86_64-w64-mingw32
>
> and then below :
>
> Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
> $ make
> make  all-recursive
> make[1]: Entering directory '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5'
> Making all in 3rd-party/glog-0.3.3
> make[2]: Entering directory
> '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5/3rd-party/glog-0.3.3'
> /bin/sh ./libtool  --tag=CXX   --mode=compile x86_64-w64-mingw32-g++
> -DHAVE_CONFIG_H -I. -I./src  -I./src    -Wall -Wwrite-strings
> -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG
> -g -O2 -MT src/libglog_la-logging.lo -MD -MP -MF
> src/.deps/libglog_la-logging.Tpo -c -o src/libglog_la-logging.lo `test
> -f 'src/logging.cc' || echo './'`src/logging.cc
> libtool: compile:  x86_64-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I./src
> -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
> -DNO_FRAME_POINTER -DNDEBUG -g -O2 -MT src/libglog_la-logging.lo -MD
> -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc
> -DDLL_EXPORT -DPIC -o src/.libs/libglog_la-logging.o
> In file included from src/logging.cc:32:0:
> src/utilities.h:78:19: fatal error: port.h: No such file or directory
> compilation terminated.
> make[2]: *** [Makefile:1176: src/libglog_la-logging.lo] Error 1
> make[2]: Leaving directory
> '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5/3rd-party/glog-0.3.3'
> make[1]: *** [Makefile:2676: all-recursive] Error 1
> make[1]: Leaving directory '/cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5'
> make: *** [Makefile:846: all] Error 2
>
> Can you pelase help how to workaround this?
>
>
>
> On Fri, Nov 11, 2016 at 6:42 PM, kunal ghosh <kunalpghosh@gmail.com> wrote:
>> Thanks Csaba. Let me check with owner of this tool and keep you posted
>>
>> On Fri, Nov 11, 2016 at 2:28 PM, Csaba Raduly <rcsaba@gmail.com> wrote:
>>> Hi Kunal,
>>>
>>> On Fri, Nov 11, 2016 at 7:21 AM, kunal ghosh  wrote:
>>>> Hi
>>>> I am trying to install OpenTimer software on my Windows 7 machine
>>>> through cygwin, using standard steps "./configure", "make" , "make
>>>> install"
>>>>
>>>> ./configure gives me the below errors for which I have googled and
>>>> didnt founf anything constructive:
>>>>
>>>> Kunal@Kunal-PC /cygdrive/c/VSD/Tools/openTimer/OpenTimer-1.0.5
>>>> $ grep error config.log
>>>
>>> configure tries to compile a variety of throw-away programs to check
>>> for the capabilities of the system.
>>> Lots of errors in config.log are expected.
>>> You should only look at config.log if configure reports an error and
>>> fails to generate the Makefile.
>>>
>>> (snip)
>>>> g++: error: unrecognized command line option '-V'
>>>> g++: fatal error: no input files
>>>> g++: error: unrecognized command line option '-qversion'
>>>> g++: fatal error: no input files
>>>
>>> Here it probably tries to find the switch that prints the compiler version.
>>> It has to try every known switch that does that; but no  compiler will
>>> accept every possibility.
>>> These errors are harmless. They tell configure that GCC doesn't
>>> support the -qversion switch
>>> (-qversion is accepted by IBM's XL C/C++ compiler for AIX).
>>>
>>> (snip)
>>>> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:39:3: error:
>>>> 'omp_lock_t' does not name a type
>>>> /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/include/omp.h:86:28: error:
>>>> variable or field 'omp_init_lock' declared void
>>>
>>> Here it probably found out that OMP is not supported.
>>>
>>>> Inspite of the above errors, I go ahead with 'make' command and I get
>>>> below errors:
>>>>
>>>> src/utilities.cc: In function 'pid_t
>>>> google::glog_internal_namespace_::GetTID()':
>>>> src/utilities.cc:265:29: error: 'GetCurrentThreadId' was not declared
>>>> in this scope
>>>>    return GetCurrentThreadId();
>>>>                              ^
>>>
>>> This suggests that OpenTimer thinks it's being compiled under Windows
>>> (GetCurrentThreadId is a Win32 API function). It failed to identify
>>> Cygwin as a POSIX platform. You could try submitting a bug report or,
>>> if you're a programmer, fix it and supply a patch:
>>>
>>> "OpenTimer is actively maintained by Tsung-Wei Huang. If you are
>>> discovering any bugs or are interested in pursuing an OpenTimer-based
>>> project with me, please contact  twh760812@gmail.com"
>>>
>>> Csaba
>>> --
>>> GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
>>> The Tao of math: The numbers you can count are not the real numbers.
>>> Life is complex, with real and imaginary parts.
>>> "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
>>> "People disagree with me. I just ignore them." -- Linus Torvalds
>>>
>>> --
>>> Problem reports:       http://cygwin.com/problems.html
>>> FAQ:                   http://cygwin.com/faq/
>>> Documentation:         http://cygwin.com/docs.html
>>> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>>>
>>
>>
>>
>> --
>> Thanks & Regards
>> Kunal P Ghosh
>> (www.vlsisystemdesign.com)
>>
>> "A pessimist always sees difficulty in every opportunity, An optimist
>> always sees opportunity in every difficulty"
>
>
>
> --
> Thanks & Regards
> Kunal P Ghosh
> (www.vlsisystemdesign.com)
>
> "A pessimist always sees difficulty in every opportunity, An optimist
> always sees opportunity in every difficulty"



-- 
Thanks & Regards
Kunal P Ghosh
(www.vlsisystemdesign.com)

"A pessimist always sees difficulty in every opportunity, An optimist
always sees opportunity in every difficulty"

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: problem installing openTimer in cygwin
  2016-11-11 16:10       ` kunal ghosh
@ 2016-11-13 19:50         ` Csaba Raduly
  0 siblings, 0 replies; 6+ messages in thread
From: Csaba Raduly @ 2016-11-13 19:50 UTC (permalink / raw)
  To: cygwin list

On Fri, Nov 11, 2016 at 3:12 PM, kunal ghosh wrote:
> Also, I went ahead modifying the utilities.h to point to
> windows/port.h, instead of port.h.

That sounds dangerous

> And some more hacks to get rid of other errors. Now 'make' gives me
> the below errors. Not sure how to resolve this
>
> src/logging.cc: In member function 'bool
> google::{anonymous}::LogFileObject::CreateLogfile(const string&)':
> src/logging.cc:895:43: error: 'symlink' was not declared in this scope
>      if (symlink(linkdest, linkpath.c_str()) != 0) {
>                                            ^
> src/logging.cc:904:45: error: 'symlink' was not declared in this scope
>        if (symlink(filename, linkpath.c_str()) != 0) {

symlink() is in unistd.h
You need to make  _DEFAULT_SOURCE or _GNU_SOURCE be defined for
symlin() to be visible on Cygwin.

It seems to me that the author of OpenTimer does not understand what
Cygwin is or what it does,
as evidenced by lines like

#if defined( WIN32) || defined(CYGWIN)

and the attempt to use Win32 instead of pthreads when compiling
Cygwin. Unfortunately (for you), I have no interest in OpenTimer, so I
can't help you any further.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-13 12:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-11  8:58 problem installing openTimer in cygwin kunal ghosh
2016-11-11 11:57 ` Csaba Raduly
2016-11-11 14:06   ` kunal ghosh
2016-11-11 14:13     ` kunal ghosh
2016-11-11 16:10       ` kunal ghosh
2016-11-13 19:50         ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).