acprep issues in origin/next

41 views
Skip to first unread message

Trent W. Buck

unread,
Jun 10, 2012, 1:54:09 AM6/10/12
to ledge...@googlegroups.com
I get an obscure failures on running acprep from HEAD:

$ ./acprep
acprep: INFO: Invoking primary phase: config
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' (git://github.com/jwiegley/utfcpp.git) registered for path 'lib/utfcpp'
Cloning into 'lib/utfcpp'...
remote: Counting objects: 37, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 37 (delta 10), reused 36 (delta 9)
Receiving objects: 100% (37/37), 21.40 KiB, done.
Resolving deltas: 100% (10/10), done.
Submodule path 'lib/utfcpp': checked out '2233ec933f5661c7050b94d3b14f5f9f51ae3d55'
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => debug
acprep: ERROR: Caught exception
Traceback (most recent call last):
File "./acprep", line 205, in run
exit_code = self.main(*main_args)
File "./acprep", line 342, in main
PrepareBuild.__dict__['phase_' + cmd](self, *args)
File "./acprep", line 888, in phase_config
self.phase_configure(*args)
File "./acprep", line 856, in phase_configure
environ, conf_args = self.configure_environment()
File "./acprep", line 814, in configure_environment
if self.build_directory() == self.source_dir:
File "./acprep", line 416, in build_directory
self.options.build_dir = join(self.products_directory(),
File "./acprep", line 402, in products_directory
if not self.options.products_dir:
AttributeError: Values instance has no attribute 'products_dir'

$ ./acprep --debug --verbose --loglevel=DEBUG
acprep: INFO: Invoking primary phase: config
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: DEBUG: Executing command: git submodule init
Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp'
acprep: DEBUG: Executing command: git submodule update
acprep: INFO: Executing phase: configure
acprep: DEBUG: Executing command: uname -s
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => debug
Traceback (most recent call last):
File "./acprep", line 1094, in <module>
PrepareBuild().run()
File "./acprep", line 205, in run
exit_code = self.main(*main_args)
File "./acprep", line 342, in main
PrepareBuild.__dict__['phase_' + cmd](self, *args)
File "./acprep", line 888, in phase_config
self.phase_configure(*args)
File "./acprep", line 856, in phase_configure
environ, conf_args = self.configure_environment()
File "./acprep", line 814, in configure_environment
if self.build_directory() == self.source_dir:
File "./acprep", line 416, in build_directory
self.options.build_dir = join(self.products_directory(),
File "./acprep", line 402, in products_directory
if not self.options.products_dir:
AttributeError: Values instance has no attribute 'products_dir'

$ git describe
cpp-rewrite-2006-3108-g571d711
$ uname -m; lsb_release -a
x86_64
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (wheezy)
Release: testing
Codename: wheezy

Adding --products=/nonexistent to the command line did not appear to
have any effect. The suggested commands in README-1ST (./acprep update,
mkdir build, ./acprep opt/debug make) also did not appear to help.
./acprep dependencies passes without error. No config.log is generated
(unsurprising, as it has yet to get as far as generating a configure.ac
or whatever).

Glancing at the acprep source, I don't see why an in-house thing is
needed instead of simply using autoreconf (configure.ac) and a README
that says "on <platform> the build dependencies are <package list>".

UPDATE: hmm, it looks like when I did a clone, it put me on the "next"
branch by default. If I switch to "master", acprep gets further,
complaining about missing boost_unit_test_framework. I guess this is a
recent build dep because it is not mentioned in Debian's
3.0.0~20120421+7cc550f-1 Build-Depends. Looks like it's called
libboost-test-dev (not -UNIT-test-) on Debian. It's built now, yay!

PS: I get a different issue trying it in the latest Debian package,
though acprep is not needed there.

$ apt-get source ledger/experimental
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 1,601 kB of source archives.
Get:1 http://mirror.internode.on.net/pub/debian/ experimental/main ledger 3.0.0~20120421+7cc550f-1 (dsc) [1,390 B]
Get:2 http://mirror.internode.on.net/pub/debian/ experimental/main ledger 3.0.0~20120421+7cc550f-1 (tar) [1,594 kB]
Get:3 http://mirror.internode.on.net/pub/debian/ experimental/main ledger 3.0.0~20120421+7cc550f-1 (diff) [5,344 B]
Fetched 1,601 kB in 0s (5,474 kB/s)
dpkg-source: info: extracting ledger in ledger-3.0.0~20120421+7cc550f
dpkg-source: info: unpacking ledger_3.0.0~20120421+7cc550f.orig.tar.gz
dpkg-source: info: unpacking ledger_3.0.0~20120421+7cc550f-1.debian.tar.gz
$ cd ledger*/
$ ./acprep
acprep: INFO: Invoking primary phase: config
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: autoconf
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Looking for Boost in /opt/local/lib64...
acprep: INFO: Looking for Boost in /usr/local/lib64...
acprep: INFO: Looking for Boost in /sw/lib64...
acprep: INFO: Looking for Boost in /usr/lib64...
acprep: INFO: Looking for Boost in /opt/local/lib...
acprep: INFO: Looking for Boost in /usr/local/lib...
acprep: INFO: Looking for Boost in /sw/lib...
acprep: INFO: Looking for Boost in /usr/lib...
acprep: INFO: Found a Boost library: /usr/lib/libboost_regex.so.1.49.0
acprep: INFO: Found a Boost suffix =>
acprep: INFO: Found a Boost file suffix => .so
acprep: INFO: Boost was found here:
acprep: INFO: Boost home path => /usr
acprep: INFO: Boost include path => /usr/include
acprep: INFO: Boost library path => /usr/lib
acprep: INFO: Boost suffix =>
acprep: INFO: Boost file suffix => .so
acprep: INFO: Noticing include directory => /usr/local/include
acprep: INFO: Noticing include directory => /usr/include/python2.7
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file acprep, line 615

John Wiegley

unread,
Jun 12, 2012, 2:18:34 AM6/12/12
to ledge...@googlegroups.com
>>>>> Trent W Buck <tren...@gmail.com> writes:

> File "./acprep", line 402, in products_directory
> if not self.options.products_dir:
> AttributeError: Values instance has no attribute 'products_dir'

This part is fixed, sorry for the mixup.

John

thierry

unread,
Jun 12, 2012, 3:53:57 PM6/12/12
to ledge...@googlegroups.com
still same error here

$ ./acprep opt update --python --doxygen --jobs=2
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
Updating 571d711..2720f79
Fast-forward
 acprep |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp'
acprep: INFO: Executing phase: make

acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp'
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => opt

acprep: ERROR: Caught exception
Traceback (most recent call last):
  File "./acprep", line 205, in run
    exit_code = self.main(*main_args)
  File "./acprep", line 342, in main
    PrepareBuild.__dict__['phase_' + cmd](self, *args)
  File "./acprep", line 938, in phase_update
    self.phase_make(*args)
  File "./acprep", line 919, in phase_make
    self.phase_config(*config_args)

  File "./acprep", line 888, in phase_config
    self.phase_configure(*args)
  File "./acprep", line 856, in phase_configure
    environ, conf_args = self.configure_environment()
  File "./acprep", line 814, in configure_environment
    if self.build_directory() == self.source_dir:
  File "./acprep", line 416, in build_directory
    self.options.build_dir = join(self.products_directory(),
  File "./acprep", line 402, in products_directory
    if not self.products_dir:

thierry

unread,
Jun 12, 2012, 3:57:17 PM6/12/12
to ledge...@googlegroups.com


On Tuesday, June 12, 2012 9:53:57 PM UTC+2, thierry wrote:
still same error here

Sorry, actually after an acprep gitclean, compilation is ok now

Craig Earls

unread,
Jun 12, 2012, 6:21:52 PM6/12/12
to ledge...@googlegroups.com
Still have the problem even after gitclean...

15:16:56 ~/ledger (next) > ./acprep opt update
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (1/1), done.
remote: Total 3 (delta 2), reused 3 (delta 2)
Unpacking objects: 100% (3/3), done.
From https://github.com/jwiegley/ledger
571d711..2720f79 next -> origin/next
Updating 571d711..2720f79
Fast-forward
acprep | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp'
acprep: INFO: Executing phase: make
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp'
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Darwin
acprep: INFO: Setting up build flavor => opt
acprep: ERROR: Caught exception
Traceback (most recent call last):
File "./acprep", line 205, in run
exit_code = self.main(*main_args)
File "./acprep", line 342, in main
PrepareBuild.__dict__['phase_' + cmd](self, *args)
File "./acprep", line 938, in phase_update
self.phase_make(*args)
File "./acprep", line 919, in phase_make
self.phase_config(*config_args)
File "./acprep", line 888, in phase_config
self.phase_configure(*args)
File "./acprep", line 856, in phase_configure
environ, conf_args = self.configure_environment()
File "./acprep", line 814, in configure_environment
if self.build_directory() == self.source_dir:
File "./acprep", line 416, in build_directory
self.options.build_dir = join(self.products_directory(),
File "./acprep", line 402, in products_directory
if not self.products_dir:
AttributeError: Values instance has no attribute 'products_dir'

--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

Craig Earls

unread,
Jun 12, 2012, 6:22:32 PM6/12/12
to ledge...@googlegroups.com
Never mind. Do the gitclean AFTER updating then try again.
Reply all
Reply to author
Forward
0 new messages