Skip to content

Instantly share code, notes, and snippets.

@zenoalbisser
Created July 31, 2013 22:06
Show Gist options
  • Save zenoalbisser/6126614 to your computer and use it in GitHub Desktop.
Save zenoalbisser/6126614 to your computer and use it in GitHub Desktop.
Mac / clang++ / libc++ / x86_64
$ clang++ --version
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
$ clang++ -MMD -MF obj/chromium/ui/gfx/image/ui.image_family.o.d -DANGLE_DX11 -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 -DUSE_UNORDERED_CONTAINERS=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DENABLE_LANGUAGE_DETECTION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DUI_IMPLEMENTATION -DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' -DSK_USE_POSIX_THREADS -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_FORTIFY_SOURCE=2 -I../../chromium -I../../chromium/third_party/skia/src/core -I../../chromium/skia/config -I../../chromium/third_party/skia/include/config -I../../chromium/third_party/skia/include/core -I../../chromium/third_party/skia/include/effects -I../../chromium/third_party/skia/include/pdf -I../../chromium/third_party/skia/include/gpu -I../../chromium/third_party/skia/include/gpu/gl -I../../chromium/third_party/skia/include/lazy -I../../chromium/third_party/skia/include/pathops -I../../chromium/third_party/skia/include/pipe -I../../chromium/third_party/skia/include/ports -I../../chromium/third_party/skia/include/utils -I../../chromium/third_party/skia/include/utils/mac -I../../chromium/skia/ext -I../../chromium/third_party/icu/source/i18n -I../../chromium/third_party/icu/source/common -I../../chromium/third_party/libpng -I../../chromium/third_party/zlib -Igen/ui/app_locale_settings -Igen/ui/ui_strings -Igen/ui/ui_resources -I../../chromium/third_party/libjpeg_turbo -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -O3 -gdwarf-2 -fno-strict-aliasing -fvisibility=hidden -Werror -Wnewline-eof -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene -Wno-c++11-narrowing -Wno-reserved-user-defined-literal -Wno-char-subscripts -Wno-unused-function -Wno-covered-switch-default -Wstring-conversion -Wno-deprecated -Wno-deprecated-declarations -Wno-newline-eof -Wno-unused-value -Wno-unused-variable -Wno-header-hygiene -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics -fcolor-diagnostics -std=gnu++11 -stdlib=libc++ -c ../../chromium/ui/gfx/image/image_family.cc -o obj/chromium/ui/gfx/image/ui.image_family.o
In file included from ../../chromium/ui/gfx/image/image_family.cc:5:
In file included from ../../chromium/ui/gfx/image/image_family.h:9:
In file included from /usr/bin/../lib/c++/v1/map:371:
In file included from /usr/bin/../lib/c++/v1/__tree:16:
In file included from /usr/bin/../lib/c++/v1/memory:594:
/usr/bin/../lib/c++/v1/utility:220:9: error: field has incomplete type 'gfx::ImageFamily::MapKey'
_T1 first;
^
/usr/bin/../lib/c++/v1/__tree:602:16: note: in instantiation of template class 'std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>' requested here
value_type __value_;
^
/usr/bin/../lib/c++/v1/__tree:688:28: note: in instantiation of template class 'std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, void *>' requested here
typedef const typename __node::base __node_base;
^
/usr/bin/../lib/c++/v1/map:606:19: note: in instantiation of template class 'std::__1::__tree_const_iterator<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, const std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey,
gfx::Image>, void *> *, long>' requested here
_TreeIterator __i_;
^
../../chromium/ui/gfx/image/image_family.h:87:50: note: in instantiation of template class 'std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, const
std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, void *> *, long> >' requested here
std::map<MapKey, gfx::Image>::const_iterator map_iterator_;
^
../../chromium/ui/gfx/image/image_family.h:31:10: note: forward declaration of 'gfx::ImageFamily::MapKey'
struct MapKey;
^
In file included from ../../chromium/ui/gfx/image/image_family.cc:5:
In file included from ../../chromium/ui/gfx/image/image_family.h:9:
/usr/bin/../lib/c++/v1/map:836:50: error: no viable conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to 'const_iterator'
(aka '__map_const_iterator<typename __base::const_iterator>')
const_iterator end() const _NOEXCEPT {return __tree_.end();}
^~~~~~~~~~~~~
../../chromium/ui/gfx/image/image_family.h:96:59: note: in instantiation of member function 'std::__1::map<gfx::ImageFamily::MapKey, gfx::Image, std::__1::less<gfx::ImageFamily::MapKey>, std::__1::allocator<std::__1::pair<const
gfx::ImageFamily::MapKey, gfx::Image> > >::end' requested here
const_iterator end() const { return const_iterator(map_.end()); }
^
/usr/bin/../lib/c++/v1/map:604:23: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to
'const std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, const std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, void *> *, long> > &' for
1st argument
class _LIBCPP_VISIBLE __map_const_iterator
^
/usr/bin/../lib/c++/v1/map:604:23: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to
'std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, const std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, void *> *, long> > &&' for 1st
argument
class _LIBCPP_VISIBLE __map_const_iterator
^
/usr/bin/../lib/c++/v1/map:630:5: note: candidate constructor not viable: no known conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to '__map_iterator<typename
__tree_const_iterator<pair<MapKey, Image>, const __tree_node<pair<MapKey, Image>, void *> *, long>::__non_const_iterator>' for 1st argument
__map_const_iterator(
^
/usr/bin/../lib/c++/v1/map:961:17: error: no viable conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to 'const_iterator'
(aka '__map_const_iterator<typename __base::const_iterator>')
{return __tree_.lower_bound(__k);}
^~~~~~~~~~~~~~~~~~~~~~~~
../../chromium/ui/gfx/image/image_family.cc:71:12: note: in instantiation of member function 'std::__1::map<gfx::ImageFamily::MapKey, gfx::Image, std::__1::less<gfx::ImageFamily::MapKey>, std::__1::allocator<std::__1::pair<const
gfx::ImageFamily::MapKey, gfx::Image> > >::lower_bound' requested here
map_.lower_bound(MapKey(desired_aspect, 0));
^
/usr/bin/../lib/c++/v1/map:604:23: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to
'const std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, const std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, void *> *, long> > &' for
1st argument
class _LIBCPP_VISIBLE __map_const_iterator
^
/usr/bin/../lib/c++/v1/map:604:23: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to
'std::__1::__map_const_iterator<std::__1::__tree_const_iterator<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, const std::__1::__tree_node<std::__1::pair<gfx::ImageFamily::MapKey, gfx::Image>, void *> *, long> > &&' for 1st
argument
class _LIBCPP_VISIBLE __map_const_iterator
^
/usr/bin/../lib/c++/v1/map:630:5: note: candidate constructor not viable: no known conversion from 'const_iterator' (aka '__tree_const_iterator<value_type, __node_const_pointer, difference_type>') to '__map_iterator<typename
__tree_const_iterator<pair<MapKey, Image>, const __tree_node<pair<MapKey, Image>, void *> *, long>::__non_const_iterator>' for 1st argument
__map_const_iterator(
^
3 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment