Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build with GCC 4.8.5 #80

Open
jbeich opened this issue Jul 13, 2016 · 0 comments
Open

Fails to build with GCC 4.8.5 #80

jbeich opened this issue Jul 13, 2016 · 0 comments

Comments

@jbeich
Copy link
Contributor

jbeich commented Jul 13, 2016

Regressed since b762132. No issues building with GCC 4.9.4 or GCC 5.4.0. However, FreeBSD Ports still use lang/gcc port (currently tracks GCC 4.8.x series) by default to build C++11 projects on FreeBSD 9.x and earlier.

g++48 -o build/release/src/base/notification_registrar.o -c -O2 -pipe -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc48 --ansi -Wall -Wno-sign-compare -Wno-narrowing -Wno-write-strings -std=c++11 -O2 -pipe -D_GLIBCXX_USE_C99 -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict-aliasing -pthread -funsigned-char -DNDEBUG -DBOOST_DISABLE_ASSERTS -ffunction-sections -fdata-sections -DHAVE_CONFIG_H -DENABLE_NLS -DNO_SDL_GLEXT -D_REENTRANT -D_THREAD_SAFE -DCASE_SENSITIVE_FILESYSTEM -D_THREAD_SAFE -I/usr/local/include -Ibuild -Isrc -Ivendor -I/usr/local/include/SDL -I/usr/local/include/freetype2 -Ibuild/release -I. src/base/notification_registrar.cc
src/base/notification_registrar.cc: In member function 'void NotificationRegistrar::Remove(NotificationObserver*, NotificationType, const NotificationSource&)':
src/base/notification_registrar.cc:50:26: error: no matching function for call to 'std::vector<NotificationRegistrar::Record>::erase(__gnu_cxx::__normal_iterator<const NotificationRegistrar::Record*, std::vector<NotificationRegistrar::Record> >&)'
   registered_.erase(found);
                          ^
src/base/notification_registrar.cc:50:26: note: candidates are:
In file included from /usr/local/lib/gcc48/include/c++/vector:69:0,
                 from src/base/notification_registrar.h:9,
                 from src/base/notification_registrar.cc:5:
/usr/local/lib/gcc48/include/c++/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = NotificationRegistrar::Record; _Alloc = std::allocator<NotificationRegistrar::Record>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<NotificationRegistrar::Record*, std::vector<NotificationRegistrar::Record> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = NotificationRegistrar::Record*]
     vector<_Tp, _Alloc>::
     ^
/usr/local/lib/gcc48/include/c++/bits/vector.tcc:134:5: note:   no known conversion for argument 1 from '__gnu_cxx::__normal_iterator<const NotificationRegistrar::Record*, std::vector<NotificationRegistrar::Record> >' to 'std::vector<NotificationRegistrar::Record>::iterator {aka __gnu_cxx::__normal_iterator<NotificationRegistrar::Record*, std::vector<NotificationRegistrar::Record> >}'
/usr/local/lib/gcc48/include/c++/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = NotificationRegistrar::Record; _Alloc = std::allocator<NotificationRegistrar::Record>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<NotificationRegistrar::Record*, std::vector<NotificationRegistrar::Record> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = NotificationRegistrar::Record*]
     vector<_Tp, _Alloc>::
     ^
/usr/local/lib/gcc48/include/c++/bits/vector.tcc:146:5: note:   candidate expects 2 arguments, 1 provided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant