bugmonotone - Bugs: bug #18593, Compile Failure on monotone-0.31...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #18593: Compile Failure on monotone-0.31 with boost-1.34_pre20061214

Submitted by:  Daniel Black <danielblack>
Submitted on:  Wed 27 Dec 2006 06:46:06 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

Compile Failure on monotone-0.31

emerge --info
Portage 2.1.2_rc4-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.18-gentoo-r4 i686)
=================================================================
System uname: 2.6.18-gentoo-r4 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.8
Last Sync: Tue, 26 Dec 2006 18:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.3
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
CBUILD="i686-pc-linux-gnu"
CFLAGS=" -ggdb3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS=" -ggdb3"
LDFLAGS=" -Wl,--as-needed"
LINGUAS="en_GB en_AU en"
MAKEOPTS="-j3"

Thu 28 Dec 2006 11:28:33 PM UTC, comment #2:

Thanks Timothy,

confirmed that monotone-0.32 compiles with the boost-1.34pre releases.

BTW I'm very impressed how the development of the selftests occur. Very useful from a package maintainers point of view.

FYI for about the first time I'm up to date:
http://packages.gentoo.org/ebuilds/?monotone-0.32

The test compile failure is for reference:

./txt2c --strip-trailing --no-static package_revision.txt package_revision >package_revision.c.tmp
cmp -s package_revision.c.tmp package_revision.c || mv -f package_revision.c.tmp package_revision.c
rm -f package_revision.c.tmp
if i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_UNIT_TESTS -I./lua -I./sqlite -DTEMP_STORE=1 -DNDEBUG -DBOO
ST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -DSQLITE_OMIT_CURSOR -DSQLITE_OMIT_LOAD_EXTENSION -DTHREADSAFE=0 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -ggdb3 -fno-
stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -MT unit_tests-package_revision.o -MD -MP -MF ".deps/unit_test
s-package_revision.Tpo" -c -o unit_tests-package_revision.o `test -f 'package_revision.c' || echo './'`package_revision.c; \
then mv -f ".deps/unit_tests-package_revision.Tpo" ".deps/unit_tests-package_revision.Po"; else rm -f ".deps/unit_tests-package_revision.Tpo"; exit 1
; fi
REAL_BLDDIR=$PWD/.; \
(cd . && $REAL_BLDDIR/mtn --root=. automate get_revision) 2>/dev/null >package_full_revision_raw.txt \
|| (cd . && mtn --root=. automate get_revision) 2>/dev/null >package_full_revision_raw.txt \
|| rm -f package_full_revision_raw.txt
if [ -f package_full_revision_raw.txt ]; then \
cp -f package_full_revision_raw.txt package_full_revision_dist.txt \
&& (echo ''; \
echo ' Generated from data cached in the distribution;'; \
echo ' further changes may have been made.') >> package_full_revision_dist.txt; \
fi
[ -f package_full_revision_dist.txt ] || echo "unknown" > package_full_revision_dist.txt
rm -f package_full_revision.txt
for SRC in package_full_revision_raw.txt package_full_revision_dist.txt; do ([ -f $SRC -a ! -f package_full_revision.txt ] && cp -f $SRC package_full_revisio
n.txt) || true; done
./txt2c --no-static package_full_revision.txt package_full_revision >package_full_revision.c.tmp
cmp -s package_full_revision.c.tmp package_full_revision.c || mv -f package_full_revision.c.tmp package_full_revision.c
rm -f package_full_revision.c.tmp
if i686-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_UNIT_TESTS -I./lua -I./sqlite -DTEMP_STORE=1 -DNDEBUG -DBOO
ST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -DSQLITE_OMIT_CURSOR -DSQLITE_OMIT_LOAD_EXTENSION -DTHREADSAFE=0 -DSQLITE_THREAD_OVERRIDE_LOCK=-1 -ggdb3 -fno-
stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -MT unit_tests-package_full_revision.o -MD -MP -MF ".deps/unit
_tests-package_full_revision.Tpo" -c -o unit_tests-package_full_revision.o `test -f 'package_full_revision.c' || echo './'`package_full_revision.c; \
then mv -f ".deps/unit_tests-package_full_revision.Tpo" ".deps/unit_tests-package_full_revision.Po"; else rm -f ".deps/unit_tests-package_full_revisi
on.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_UNIT_TESTS -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THRE
ADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT unit_t
ests-option.o -MD -MP -MF ".deps/unit_tests-option.Tpo" -c -o unit_tests-option.o `test -f 'option.cc' || echo './'`option.cc; \
then mv -f ".deps/unit_tests-option.Tpo" ".deps/unit_tests-option.Po"; else rm -f ".deps/unit_tests-option.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_UNIT_TESTS -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THRE
ADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT unit_t
ests-options.o -MD -MP -MF ".deps/unit_tests-options.Tpo" -c -o unit_tests-options.o `test -f 'options.cc' || echo './'`options.cc; \
then mv -f ".deps/unit_tests-options.Tpo" ".deps/unit_tests-options.Po"; else rm -f ".deps/unit_tests-options.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_UNIT_TESTS -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THRE
ADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT unit_t
ests-unit_tests.o -MD -MP -MF ".deps/unit_tests-unit_tests.Tpo" -c -o unit_tests-unit_tests.o `test -f 'unit_tests.cc' || echo './'`unit_tests.cc; \
then mv -f ".deps/unit_tests-unit_tests.Tpo" ".deps/unit_tests-unit_tests.Po"; else rm -f ".deps/unit_tests-unit_tests.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -DBUILD_UNIT_TESTS -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THRE
ADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT unit_t
ests-crypto_tests.o -MD -MP -MF ".deps/unit_tests-crypto_tests.Tpo" -c -o unit_tests-crypto_tests.o `test -f 'crypto_tests.cc' || echo './'`crypto_tests.cc;
\
then mv -f ".deps/unit_tests-crypto_tests.Tpo" ".deps/unit_tests-crypto_tests.Po"; else rm -f ".deps/unit_tests-crypto_tests.Tpo"; exit 1; fi
i686-pc-linux-gnu-g++ -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -
Wall -W -Wno-unused -fno-strict-aliasing -Wl,--as-needed -o unit_tests unit_tests-sanity.o unit_tests-simplestring_xform.o unit_tests-constants.o unit_test
s-numeric_vocab.o unit_tests-vocab.o unit_tests-charset.o unit_tests-paths.o unit_tests-luaext_mkstemp.o unit_tests-luaext_parse_basic_io.o unit_tests-luaext
_guess_binary.o unit_tests-luaext_platform.o unit_tests-luaext_globish.o unit_tests-lua.o unit_tests-mkstemp.o unit_tests-file_io.o unit_tests-globish.o unit
_tests-basic_io.o unit_tests-mtn-sanity.o unit_tests-ui.o unit_tests-app_state.o unit_tests-commands.o unit_tests-cmd_netsync.o unit_tests-cmd_list.o unit_te
sts-cmd_packet.o unit_tests-cmd_key_cert.o unit_tests-cmd_merging.o unit_tests-cmd_db.o unit_tests-cmd_diff_log.o unit_tests-cmd_ws_commit.o unit_tests-cmd_o
thervcs.o unit_tests-cmd_automate.o unit_tests-cmd_files.o unit_tests-diff_patch.o unit_tests-lua_hooks.o unit_tests-transforms.o unit_tests-update.o unit_te
sts-work.o unit_tests-work_migration.o unit_tests-cert.o unit_tests-database.o unit_tests-key_store.o unit_tests-localized_file_io.o unit_tests-keys.o unit_t
ests-packet.o unit_tests-rcs_file.o unit_tests-xdelta.o unit_tests-schema_migration.o unit_tests-refiner.o unit_tests-enumerator.o unit_tests-netsync.o unit_
tests-netxx_pipe.o unit_tests-netcmd.o unit_tests-merkle_tree.o unit_tests-lcs.o unit_tests-rcs_import.o unit_tests-revision.o unit_tests-cset.o unit_tests-r
oster.o unit_tests-mt_version.o unit_tests-automate.o unit_tests-database_check.o unit_tests-epoch.o unit_tests-inodeprint.o unit_tests-selectors.o unit_test
s-annotate.o unit_tests-restrictions.o unit_tests-hmac.o unit_tests-string_queue.o unit_tests-roster_merge.o unit_tests-merge.o unit_tests-legacy.o unit_test
s-uri.o unit_tests-graph.o unit_tests-roster_delta.o unit_tests-sha1.o unit_tests-rev_height.o unit_tests-randomizer.o unit_tests-package_revision.o unit_tes
ts-package_full_revision.o unit_tests-option.o unit_tests-options.o unit_tests-unit_tests.o unit_tests-crypto_tests.o lib3rdparty.a -lboost_regex -lboost_dat
e_time -lboost_filesystem libplatform.a -lz
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
unit_tests-simplestring_xform.o: In function `unit_test::t_simplestring_xform_strip_ws()':
/var/tmp/portage/dev-util/monotone-0.32/work/monotone-0.32/simplestring_xform.cc:247: undefined reference to `boost::unit_test::unit_test_log_t::set_checkpoi
nt(boost::unit_test::basic_cstring<char const>, unsigned int, boost::unit_test::basic_cstring<char const>)'
/var/tmp/portage/dev-util/monotone-0.32/work/monotone-0.32/simplestring_xform.cc:247: undefined reference to `boost::test_tools::tt_detail::check_impl(boost:
:test_tools::predicate_result const&, boost::basic_wrap_stringstream<char>&, boost::unit_test::basic_cstring<char const>, unsigned int, boost::test_tools::tt
_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned int, ...)'
/var/tmp/portage/dev-util/monotone-0.32/work/monotone-0.32/simplestring_xform.cc:248: undefined reference to `boost::unit_test::unit_test_log_t::set_checkpoi
nt(boost::unit_test::basic_cstring<char const>, unsigned int, boost::unit_test::basic_cstring<char const>)'
/var/tmp/portage/dev-util/monotone-0.32/work/monotone-0.32/simplestring_xform.cc:248: undefined reference to `boost::test_tools::tt_detail::check_impl(boost:

Daniel Black <danielblack>
Thu 28 Dec 2006 08:50:09 PM UTC, comment #1:

Monotone 0.32 (just released) should build with boost 1.34pre. But do note that the unit tests (and therefore "make check") still won't work yet.

Timothy Brownawell <tbrownaw>
Project Member
Wed 27 Dec 2006 06:46:06 PM UTC, original submission:

When testing monotone-0.31 out on Gentoo with a recent snapshot of dev-libs/boost-1.34_pre20061214 (cvs snapshot as of this date)

Compile error went as follows:

if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector-all -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT mtn-luaext_parse_basic_io.o -MD -MP -MF ".deps/mtn-luaext_parse_basic_io.Tpo" -c -o mtn-luaext_parse_basic_io.o `test -f 'luaext_parse_basic_io.cc' || echo './'`luaext_parse_basic_io.cc; \
then mv -f ".deps/mtn-luaext_parse_basic_io.Tpo" ".deps/mtn-luaext_parse_basic_io.Po"; else rm -f ".deps/mtn-luaext_parse_basic_io.Tpo"; exit 1; fi
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector-all -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT mtn-luaext_guess_binary.o -MD -MP -MF ".deps/mtn-luaext_guess_binary.Tpo" -c -o mtn-luaext_guess_binary.o `test -f 'luaext_guess_binary.cc' || echo './'`luaext_guess_binary.cc; \
then mv -f ".deps/mtn-luaext_guess_binary.Tpo" ".deps/mtn-luaext_guess_binary.Po"; else rm -f ".deps/mtn-luaext_guess_binary.Tpo"; exit 1; fi
In file included from paths.hh:111,
from paths.cc:19:
vocab.hh:126: error: conflicting declaration 'struct boost::filesystem::path'
/usr/include/boost/filesystem/path.hpp:43: error: 'boost::filesystem::path' has a previous declaration as `typedef struct boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> boost::filesystem::path'
paths.cc: In function `void save_initial_path()':
paths.cc:103: error: incomplete type `boost::filesystem::path' used in nested name specifier
paths.cc: In function `bool find_bookdir(const boost::filesystem::path&, const boost::filesystem::path&, boost::filesystem::path&, boost::filesystem::path&)':
paths.cc:602: error: incomplete type `boost::filesystem::path' used in nested name specifier
paths.cc:602: error: expected `;' before "ri"
paths.cc:603: error: incomplete type `boost::filesystem::path' used in nested name specifier
paths.cc:603: error: expected `;' before "ci"
paths.cc:605: error: `ri' was not declared in this scope
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector-all -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT mtn-luaext_platform.o -MD -MP -MF ".deps/mtn-luaext_platform.Tpo" -c -o mtn-luaext_platform.o `test -f 'luaext_platform.cc' || echo './'`luaext_platform.cc; \
then mv -f ".deps/mtn-luaext_platform.Tpo" ".deps/mtn-luaext_platform.Po"; else rm -f ".deps/mtn-luaext_platform.Tpo"; exit 1; fi
paths.cc:605: error: `ci' was not declared in this scope
paths.cc:613: error: `ri' was not declared in this scope
if i686-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I. -I./lua -I./sqlite -DNDEBUG -DBOOST_DISABLE_THREADS -DBOOST_SP_DISABLE_THREADS -ggdb3 -fno-stack-protector-all -fno-stack-protector -fno-strict-aliasing -fno-omit-frame-pointer -Wall -W -Wno-unused -fno-strict-aliasing -MT mtn-luaext_globish.o -MD -MP -MF ".deps/mtn-luaext_globish.Tpo" -c -o mtn-luaext_globish.o `test -f 'luaext_globish.cc' || echo './'`luaext_globish.cc; \
then mv -f ".deps/mtn-luaext_globish.Tpo" ".deps/mtn-luaext_globish.Po"; else rm -f ".deps/mtn-luaext_globish.Tpo"; exit 1; fi
make[2]: *** [mtn-paths.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/dev-util/monotone-0.31/work/monotone-0.31'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/monotone-0.31/work/monotone-0.31'
make: *** [all] Error 2

Daniel Black <danielblack>

 

Attached Files
file #11613:  config.log added by danielblack (85KiB - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tbrownaw (Posted a comment)
  • -unavailable- added by danielblack (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 25 Nov 2007 06:56:57 PM UTCtbrownawStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 27 Dec 2006 06:46:06 PM UTCdanielblackAttached File-=>Added config.log, #11613

    Back to the top


    Powered by Savane 3.1-cleanup1