Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
building on cygwin
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anton Vodonosov  
View profile  
 More options Aug 11 2012, 4:03 pm
From: Anton Vodonosov <avodono...@gmail.com>
Date: Sat, 11 Aug 2012 13:03:34 -0700 (PDT)
Local: Sat, Aug 11 2012 4:03 pm
Subject: building on cygwin

I've just cloned the gitub ledger repo.

Running ./acprep udpate on cygwin results in:

$ ./acprep update
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 776, in emit
    msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 654, in format
    return fmt.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting

I would appreciate advice how to finish the build


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Wiegley  
View profile  
 More options Aug 11 2012, 7:16 pm
From: "John Wiegley" <jo...@newartisans.com>
Date: Sat, 11 Aug 2012 18:16:55 -0500
Local: Sat, Aug 11 2012 7:16 pm
Subject: Re: building on cygwin

I've never seen this before.  Please try running with acprep --debug.

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 12 2012, 4:28 pm
From: Anton Vodonosov <avodono...@gmail.com>
Date: Sun, 12 Aug 2012 13:28:42 -0700 (PDT)
Local: Sun, Aug 12 2012 4:28 pm
Subject: Re: building on cygwin

OK, that was git absent from cygwin PATH.

After fixing this and installing all the dependencies I stopped at the
following:

acprep: INFO: System type is => CYGWIN_NT-6.1-WOW64
acprep: INFO: Setting up build flavor => debug
-- Configuring done
-- Generating done
-- Build files have been written to:
/cygdrive/c/Users/anton/projects/ledger/bui
ld/ledger/debug
[  1%] Generating ../system.hh.gch
Scanning dependencies of target libledger
[  3%] Building CXX object src/CMakeFiles/libledger.dir/stats.cc.o
In file included from
/cygdrive/c/Users/anton/projects/ledger/src/stats.cc:38:0:

/cygdrive/c/Users/anton/projects/ledger/src/report.h: In constructor
'ledger::report_t::pager_option_t::pager_option_t()':
/cygdrive/c/Users/anton/projects/ledger/src/report.h:788:3: error: 'setenv'
wasnot declared in this scope
src/CMakeFiles/libledger.dir/build.make:54: recipe for target
`src/CMakeFiles/libledger.dir/stats.cc.o' failed
make[2]: *** [src/CMakeFiles/libledger.dir/stats.cc.o] Error 1
CMakeFiles/Makefile2:112: recipe for target
`src/CMakeFiles/libledger.dir/all' failed
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
Makefile:143: recipe for target `all' failed
make: *** [all] Error 2
acprep: ERROR: Execution failed: make


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 12 2012, 5:26 pm
From: Anton Vodonosov <avodono...@gmail.com>
Date: Sun, 12 Aug 2012 14:26:07 -0700 (PDT)
Local: Sun, Aug 12 2012 5:26 pm
Subject: Re: building on cygwin

The "setenv" in question is in the report.h, line 800.

I noticed std::getenv few lines above and decided to try std::setenv :)

Doesn't work - it says "setenv is not a member of std".
I haven't programmed in C++ for maybe 6 years, so I don't know.

Just commented out the setenv call. Compilation proceeded with
two warnings and finally stopped with error:

[ 38%] Building CXX object src/CMakeFiles/libledger.dir/textual.cc.o
In file included from
/cygdrive/c/Users/anton/projects/ledger/src/textual.cc:41:
0:
/cygdrive/c/Users/anton/projects/ledger/src/pstream.h: In member function
'virtu
al std::basic_streambuf<char>::pos_type
ptristream::ptrinbuf::seekoff(std::basic
_streambuf<char, std::char_traits<char> >::off_type,
std::ios_base::seekdir, std
::ios_base::openmode)':
/cygdrive/c/Users/anton/projects/ledger/src/pstream.h:86:14: warning:
enumeratio
n value '_S_ios_seekdir_end' not handled in switch

[ 52%] Building CXX object src/CMakeFiles/libledger.dir/format.cc.o
In file included from
/cygdrive/c/Users/anton/projects/ledger/src/format.cc:36:0
:
/cygdrive/c/Users/anton/projects/ledger/src/pstream.h: In member function
'virtu
al std::basic_streambuf<char>::pos_type
ptristream::ptrinbuf::seekoff(std::basic
_streambuf<char, std::char_traits<char> >::off_type,
std::ios_base::seekdir, std
::ios_base::openmode)':
/cygdrive/c/Users/anton/projects/ledger/src/pstream.h:86:14: warning:
enumeratio
n value '_S_ios_seekdir_end' not handled in switch

[ 67%] Building CXX object src/CMakeFiles/libledger.dir/quotes.cc.o
/cygdrive/c/Users/anton/projects/ledger/src/quotes.cc: In function
'boost::optio
nal<ledger::price_point_t>
ledger::commodity_quote_from_script(ledger::commodity
_t&, const ledger::commodity_t*)':
/cygdrive/c/Users/anton/projects/ledger/src/quotes.cc:66:50: error: 'popen'
was
not declared in this scope
/cygdrive/c/Users/anton/projects/ledger/src/quotes.cc:69:18: error:
'pclose' was
 not declared in this scope
src/CMakeFiles/libledger.dir/build.make:951: recipe for target
`src/CMakeFiles/l
ibledger.dir/quotes.cc.o' failed
make[2]: *** [src/CMakeFiles/libledger.dir/quotes.cc.o] Error 1
CMakeFiles/Makefile2:112: recipe for target
`src/CMakeFiles/libledger.dir/all' f
ailed
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
Makefile:143: recipe for target `all' failed
make: *** [all] Error 2
acprep: ERROR: Execution failed: make


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 12 2012, 6:22 pm
From: Anton Vodonosov <avodono...@gmail.com>
Date: Sun, 12 Aug 2012 15:22:51 -0700 (PDT)
Local: Sun, Aug 12 2012 6:22 pm
Subject: Re: building on cygwin

After changing

#ifndef WIN32

to

#if 0

at the quotes.cc, line 65 the compilation proceeded until:

[ 15%] Building CXX object src/CMakeFiles/libledger.dir/times.cc.o
/cygdrive/c/Users/anton/projects/ledger/src/times.cc: In member function 'T
ledg
er::<unnamed>::temporal_io_t<T, InputFacetType,
OutputFacetType>::parse(const ch
ar*) [with T = boost::posix_time::ptime, InputFacetType =
boost::date_time::time
_input_facet<boost::posix_time::ptime, char>, OutputFacetType =
boost::date_time
::time_facet<boost::posix_time::ptime, char>]':
/cygdrive/c/Users/anton/projects/ledger/src/times.cc:141:45: error:
'strptime' w
as not declared in this scope
/cygdrive/c/Users/anton/projects/ledger/src/times.cc: In member function 'T
ledg
er::<unnamed>::temporal_io_t<T, InputFacetType,
OutputFacetType>::parse(const ch
ar*) [with T = boost::gregorian::date, InputFacetType =
boost::date_time::date_i
nput_facet<boost::gregorian::date, char>, OutputFacetType =
boost::date_time::da
te_facet<boost::gregorian::date, char>]':
/cygdrive/c/Users/anton/projects/ledger/src/times.cc:178:45: error:
'strptime' w
as not declared in this scope
/cygdrive/c/Users/anton/projects/ledger/src/times.cc:183:3: warning:
control rea
ches end of non-void function
/cygdrive/c/Users/anton/projects/ledger/src/times.cc: In member function 'T
ledg
er::<unnamed>::temporal_io_t<T, InputFacetType,
OutputFacetType>::parse(const ch
ar*) [with T = boost::posix_time::ptime, InputFacetType =
boost::date_time::time
_input_facet<boost::posix_time::ptime, char>, OutputFacetType =
boost::date_time
::time_facet<boost::posix_time::ptime, char>]':
/cygdrive/c/Users/anton/projects/ledger/src/times.cc:146:3: warning:
control rea
ches end of non-void function
src/CMakeFiles/libledger.dir/build.make:1135: recipe for target
`src/CMakeFiles/
libledger.dir/times.cc.o' failed
make[2]: *** [src/CMakeFiles/libledger.dir/times.cc.o] Error 1
CMakeFiles/Makefile2:112: recipe for target
`src/CMakeFiles/libledger.dir/all' f
ailed
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
Makefile:143: recipe for target `all' failed
make: *** [all] Error 2
acprep: ERROR: Execution failed: make

I am not sure what to do. Commenting time parsing doesn't seem to be
reasonable approach - Ledger will become not functional without times.
Specify USE_BOOST_FACETS? How? Or maybe cygwing has strptime in a different
headers than other systems? I don't know.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Erickson  
View profile  
 More options Aug 13 2012, 7:19 am
From: Max Erickson <maxerick...@gmail.com>
Date: Mon, 13 Aug 2012 04:19:19 -0700 (PDT)
Local: Mon, Aug 13 2012 7:19 am
Subject: Re: building on cygwin

Hi-

I successfully built ledger 3 on cygwin back in April, before the
changeover to CMake. I put the exe and (I think all) the necessary dlls up
here: http://dl.dropbox.com/u/1925545/ledger3-cygwin-201204.zip . I'm
prepared to say that it works for me, but that's about it.

With the old build system, compiling with Cygwin pretty much just worked; I
wonder if CMake is targeting win32, when it maybe should be targeting
Cygwin.

Max


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 13 2012, 8:33 am
From: Anton Vodonosov <avodono...@gmail.com>
Date: Mon, 13 Aug 2012 05:33:58 -0700 (PDT)
Local: Mon, Aug 13 2012 8:33 am
Subject: Re: building on cygwin

Max, thanks for the binaries.

When I run your ledger.exe from cygwin bash, it works.

But when I run it from Windows command line directly, without starting
bash, it crashes:

>C:\Users\anton\unpacked\ledger\ledger3-cygwin-201204\ledger.exe

Exception during initialization: locale::facet::_S_create_c_locale name not
valid
      1 [main] ledger 7960 exception::handle: Exception:
STATUS_ACCESS_VIOLATION
   2433 [main] ledger 7960 open_stackdumpfile: Dumping stack trace to
ledger.exe.stackdump

Can you advice how to workaround this issue with locales?

Best regards,
- Anton


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Erickson  
View profile  
 More options Aug 13 2012, 12:44 pm
From: Max Erickson <maxerick...@gmail.com>
Date: Mon, 13 Aug 2012 09:44:21 -0700 (PDT)
Local: Mon, Aug 13 2012 12:44 pm
Subject: Re: building on cygwin

Hi Anton-

Do you have LANG or other locale related environment variables set? I had
some issues with locale related crashes but stopped looking into it after I
found that setting LANG = "" worked around them (my Windows environment
doesn't have LANG set, I had to do this to get things working under Cygwin
bash...).

Max


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 13 2012, 2:20 pm
From: Anton Vodonosov <avodono...@yandex.ru>
Date: Mon, 13 Aug 2012 22:20:07 +0400
Local: Mon, Aug 13 2012 2:20 pm
Subject: Re: building on cygwin
I've tried to experiment with LANG values but it doesn't help.

Do you have debug version of the binaries? It would be interesting to see the stack trace


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Erickson  
View profile  
 More options Aug 13 2012, 3:43 pm
From: Max Erickson <maxerick...@gmail.com>
Date: Mon, 13 Aug 2012 12:43:09 -0700 (PDT)
Local: Mon, Aug 13 2012 3:43 pm
Subject: Re: building on cygwin

On Monday, August 13, 2012 2:20:07 PM UTC-4, Anton Vodonosov wrote:

> I've tried to experiment with LANG values but it doesn't help.

> Do you have debug version of the binaries? It would be interesting to see
> the stack trace

Here's what I have:

http://dl.dropbox.com/u/1925545/ledger-cygwin-with-symbols-201204.zip

I guess that the first exe I uploaded is just the stripped version of this
one, but I don't remember particularly clearly.

Max


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 13 2012, 6:25 pm
From: Anton Vodonosov <avodono...@yandex.ru>
Date: Tue, 14 Aug 2012 02:25:50 +0400
Local: Mon, Aug 13 2012 6:25 pm
Subject: Re: building on cygwin

ledger.exe.stackdump file produced by this version also doesn't contain stacktrace.

Ok, so I am limited to starting bash before using ledger. It's better than starting a
separate virtual machine. I think I can live with this. Thanks again for the binary.

As a bottom line of the locale-related crash. It is strange.

According to the Cygwin docs - http://cygwin.com/cygwin-ug-net/setup-env.html -
cygwin processes import all the windows environment variables

When I run the "locale" command, it prints the follwoing

LANG=enu
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

I have set all these Cygwin variables to the same values on windows,
so that result is the same both when I run locale from windows command
line and from cygwin bash.

Still, the crash happens.

Best regards,
- Anton


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anton Vodonosov  
View profile  
 More options Aug 14 2012, 12:03 pm
From: Anton Vodonosov <avodono...@gmail.com>
Date: Tue, 14 Aug 2012 09:03:36 -0700 (PDT)
Local: Tues, Aug 14 2012 12:03 pm
Subject: Re: building on cygwin

Max, I only now understood what you mean.

So, _without_ any locale related variables ledger works for you (in
particular in windows command line),
while _with_ locale variables it crashes (in bash).

I have just carefully deleted all the locale related variables from Windows
settings and ledger works for
me without cygwin bash!

Thanks.

- Anton


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »