Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2012 09:03:38 +0000
From:      Marcin Cieslak <saper@saper.info>
To:        freebsd-chromium@freebsd.org
Subject:   Trouble compiling 20.0.1132.57 w/clang 3.0 (trunk 135360) 20110717
Message-ID:  <alpine.BSF.2.00.1207160900230.99942@y.fncre.vasb>

next in thread | raw e-mail | index | archive | help
Running 

$ clang --version
FreeBSD clang version 3.0 (trunk 135360) 20110717
Target: x86_64-unknown-freebsd9.0
Thread model: posix

FreeBSD radziecki.saper.info 9.0-BETA1 FreeBSD 9.0-BETA1 #2 r224912M: Tue Aug 16 23:05:15 CEST 2011 amd64

Up-to-date ports tree.

Compilation of www/chromium fails at some moment with:

In file included from sync/engine/apply_updates_command.cc:5:
In file included from ./sync/engine/apply_updates_command.h:10:
In file included from ./sync/engine/model_changing_syncer_command.h:10:
In file included from ./sync/engine/model_safe_worker.h:15:
In file included from ./sync/syncable/model_type.h:18:
./sync/util/enum_set.h:151:3: error: expected the class name after '~' to name the enclosing class
  ~EnumSet() {}
  ^
./sync/util/cryptographer.h:245:26: note: in instantiation of template class 'browser_sync::EnumSet<syncable::ModelType, 2, 16>' requested here
  syncable::ModelTypeSet encrypted_types_;
                         ^
In file included from sync/engine/build_commit_command.cc:5:
In file included from ./sync/engine/build_commit_command.h:12:
In file included from ./sync/engine/syncproto.h:12:
In file included from ./sync/syncable/model_type.h:18:
./sync/util/enum_set.h:151:3: error: expected the class name after '~' to name the enclosing class
  ~EnumSet() {}
  ^
./sync/util/cryptographer.h:245:26: note: in instantiation of template class 'browser_sync::EnumSet<syncable::ModelType, 2, 16>' requested here
  syncable::ModelTypeSet encrypted_types_;
                         ^
In file included from sync/engine/apply_updates_command.cc:5:
In file included from ./sync/engine/apply_updates_command.h:10:
In file included from ./sync/engine/model_changing_syncer_command.h:10:
In file included from ./sync/engine/model_safe_worker.h:15:
In file included from ./sync/syncable/model_type.h:18:
./sync/util/enum_set.h:151:3: error: expected the class name after '~' to name the enclosing class
  ~EnumSet() {}
  ^
sync/engine/apply_updates_command.cc:23:30: note: in instantiation of template class 'browser_sync::EnumSet<syncable::ModelType, 0, 16>' requested here
  syncable::FullModelTypeSet server_types_with_unapplied_updates;
                             ^
In file included from sync/engine/apply_updates_command.cc:5:
In file included from ./sync/engine/apply_updates_command.h:10:
In file included from ./sync/engine/model_changing_syncer_command.h:10:
In file included from ./sync/engine/model_safe_worker.h:15:
In file included from ./sync/syncable/model_type.h:18:
./sync/util/enum_set.h:84:5: error: expected the class name after '~' to name the enclosing class
    ~Iterator() {}
    ^
sync/engine/apply_updates_command.cc:31:45: note: in instantiation of member class 'browser_sync::EnumSet<syncable::ModelType, 0, 16>::Iterator' requested
      here
  for (syncable::FullModelTypeSet::Iterator it =
                                            ^
sync/engine/apply_updates_command.cc:49:30: error: no matching constructor for initialization of 'syncable::FullModelTypeSet' (aka
      'EnumSet<syncable::ModelType, UNSPECIFIED, LAST_REAL_MODEL_TYPE>')
  syncable::FullModelTypeSet server_type_restriction;
                             ^
./sync/util/enum_set.h:44:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 0 were provided
class EnumSet {
      ^
sync/engine/apply_updates_command.cc:50:45: error: no viable conversion from 'browser_sync::EnumSet<syncable::ModelType, 0, 16>::Iterator' to
      'syncable::FullModelTypeSet::Iterator'
  for (syncable::FullModelTypeSet::Iterator it =
                                            ^
./sync/util/enum_set.h:78:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from
      'browser_sync::EnumSet<syncable::ModelType, 0, 16>::Iterator' to 'const browser_sync::EnumSet<syncable::ModelType, 0, 16>::Iterator &' for 1st argument
  class Iterator {
        ^
./sync/util/enum_set.h:84:5: error: expected the class name after '~' to name the enclosing class
    ~Iterator() {}
    ^
sync/engine/apply_updates_command.cc:76:43: note: in instantiation of member class 'browser_sync::EnumSet<syncable::ModelType, 2, 16>::Iterator' requested
      here
    for (syncable::ModelTypeSet::Iterator it =
                                          ^
In file included from sync/engine/apply_updates_command.cc:5:
In file included from ./sync/engine/apply_updates_command.h:10:
In file included from ./sync/engine/model_changing_syncer_command.h:10:
In file included from ./sync/engine/model_safe_worker.h:15:
In file included from ./sync/syncable/model_type.h:18:
./sync/util/enum_set.h:222:21: error: 1 error generated.
gmake: *** [out/Release/obj.target/sync/sync/engine/build_commit_command.o] Błąd 1
gmake: *** Oczekiwanie na niezakończone zadania....
'browser_sync::EnumSet<syncable::ModelType, 0, 16>::enums_' is not a member of class 'const
      browser_sync::EnumSet<syncable::ModelType, 0, 16>'
    return Iterator(enums_);
                    ^
sync/engine/apply_updates_command.cc:51:48: note: in instantiation of member function 'browser_sync::EnumSet<syncable::ModelType, 0, 16>::First' requested
      here
           server_types_with_unapplied_updates.First(); it.Good(); it.Inc()) {
                                               ^
In file included from sync/engine/apply_updates_command.cc:5:
In file included from ./sync/engine/apply_updates_command.h:10:
In file included from ./sync/engine/model_changing_syncer_command.h:10:
In file included from ./sync/engine/model_safe_worker.h:15:
In file included from ./sync/syncable/model_type.h:18:
./sync/util/enum_set.h:222:21: error: 'browser_sync::EnumSet<syncable::ModelType, 2, 16>::enums_' is not a member of class 'const
      browser_sync::EnumSet<syncable::ModelType, 2, 16>'
    return Iterator(enums_);
                    ^
sync/engine/apply_updates_command.cc:77:45: note: in instantiation of member function 'browser_sync::EnumSet<syncable::ModelType, 2, 16>::First' requested
      here
             status.updates_request_types().First(); it.Good(); it.Inc()) {
                                            ^
8 errors generated.
gmake: *** [out/Release/obj.target/sync/sync/engine/apply_updates_command.o] Błąd 1


Probably something with my environment, any hints?

//Marcin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1207160900230.99942>