[Cin] WEird build error with clang-10 ad gcc 5.5 headers
Phyllis Smith
phylsmith2017 at gmail.com
Thu Oct 29 20:11:04 CET 2020
Andrew, mentioned this to GG and he plans on looking at CLANG usage after
he finishes a new Tile Mixer arithmetic algorithm (because his brain is
loaded with that information right now already). Thanks for the ffmpeg
patch in your last email - he will look at that much later.
On Thu, Oct 29, 2020 at 12:44 PM Andrew Randrianasulu via Cin <
cin at lists.cinelerra-gg.org> wrote:
> I have CC and CXX set to clang and clang++ for quite some time for
> compiling CinGG. It was working until today:
>
> -------
> In file included from fileffmpeg.C:10:
> In file included from ./asset.h:32:
> In file included from ./indexable.h:29:
> ./garbage.h:53:33: warning: all paths through this function will call
> itself [-Winfinite-recursion]
> Garbage &operator=(Garbage &v) { return *this=v; } //disallow =
> operator
> ^
> In file included from fileexr.C:27:
> In file included from ./file.h:37:
> In file included from ./formattools.h:26:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:62:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/errorbox.h:35:7:
> warning: 'ErrorBox::create_objects' hides overloaded virtual function
> [-Woverloaded-virtual]
> void create_objects(const char *text);
> ^
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:222:15:
> note: hidden overloaded virtual function 'BC_WindowBase::create_objects'
> declared here: different number of parameters (0 vs 1)
> virtual void create_objects() { return; };
> ^
> In file included from filedv.C:49:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/iostream:39:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ostream:38:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:41:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/locale_classes.h:40:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/string:52:
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/basic_string.h:5653:10:
> error: expected unqualified-id
> inline namespace literals
> ^
> In file included from filedv.C:49:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/iostream:39:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ostream:38:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:46:
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:63:10:
> error: expected unqualified-id
> inline namespace _V2 {
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:143:31:
> error: unknown type name 'error_category'
> error_code(int __v, const error_category& __cat) noexcept
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:152:27:
> error: unknown type name 'error_category'
> assign(int __v, const error_category& __cat) noexcept
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:172:11:
> error: unknown type name 'error_category'
> const error_category&
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:191:11:
> error: unknown type name 'error_category'
> const error_category* _M_cat;
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:141:28:
> error: use of undeclared identifier 'system_category'
> : _M_value(0), _M_cat(&system_category()) { }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:160:17:
> error: use of undeclared identifier 'system_category'
> { assign(0, system_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:197:46:
> error: use of undeclared identifier 'generic_category'
> { return error_code(static_cast<int>(__e), generic_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:221:36:
> error: unknown type name 'error_category'
> error_condition(int __v, const error_category& __cat) noexcept
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:230:27:
> error: unknown type name 'error_category'
> assign(int __v, const error_category& __cat) noexcept
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:251:11:
> error: unknown type name 'error_category'
> const error_category&
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:265:11:
> error: unknown type name 'error_category'
> const error_category* _M_cat;
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:219:28:
> error: use of undeclared identifier 'generic_category'
> : _M_value(0), _M_cat(&generic_category()) { }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:245:17:
> error: use of undeclared identifier 'generic_category'
> { assign(0, generic_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:271:51:
> error: use of undeclared identifier 'generic_category'
> { return error_condition(static_cast<int>(__e), generic_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:348:33:
> error: unknown type name 'error_category'
> system_error(int __v, const error_category& __ecat, const char* __what)
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:351:33:
> error: unknown type name 'error_category'
> system_error(int __v, const error_category& __ecat)
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:355:33:
> error: unknown type name 'error_category'
> system_error(int __v, const error_category& __ecat, const string&
> __what)
> ^
> In file included from fileexr.C:36:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/ImfChromaticities.h:46:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/ImathVec.h:46:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/ImathExc.h:47:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/IexBaseExc.h:51:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/sstream:38:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/istream:38:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:46:
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:63:10:
> error: expected unqualified-id
> inline namespace _V2 {
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:143:31:
> error: unknown type name 'error_category'
> error_code(int __v, const error_category& __cat) noexcept
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:152:27:
> error: unknown type name 'error_category'
> assign(int __v, const error_category& __cat) noexcept
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:172:11:
> error: unknown type name 'error_category'
> const error_category&
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:191:11:
> error: unknown type name 'error_category'
> const error_category* _M_cat;
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:141:28:
> error: use of undeclared identifier 'system_category'
> : _M_value(0), _M_cat(&system_category()) { }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:160:17:
> error: use of undeclared identifier 'system_category'
> { assign(0, system_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:197:46:
> error: use of undeclared identifier 'generic_category'
> { return error_code(static_cast<int>(__e), generic_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:221:36:
> error: unknown type name 'error_category'
> error_condition(int __v, const error_category& __cat) noexcept
> ^
> In file included from fileffmpeg.C:12:
> In file included from ./bitspopup.h:25:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:35:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcpan.h:96:6:
> warning: 'BC_Pan::activate' hides overloaded virtual function
> [-Woverloaded-virtual]
> int activate(int popup_x = -1, int popup_y = -1);
> ^
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:375:14:
> note: hidden overloaded virtual function 'BC_WindowBase::activate' declared
> here: different number of parameters (0 vs 2)
> virtual int activate();
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:230:27:
> error: unknown type name 'error_category'
> assign(int __v, const error_category& __cat) noexcept
> ^
> In file included from fileffmpeg.C:12:
> In file included from ./bitspopup.h:25:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:36:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcfilebox.h:33:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bctextbox.h:25:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bclistbox.h:190:6:
> warning: 'BC_ListBox::activate' hides overloaded virtual function
> [-Woverloaded-virtual]
> int activate(int take_focus = 1);
> ^
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:375:14:
> note: hidden overloaded virtual function 'BC_WindowBase::activate' declared
> here: different number of parameters (0 vs 1)
> virtual int activate();
> ^
> In file included from fileffmpeg.C:12:
> In file included from ./bitspopup.h:25:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:36:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcfilebox.h:33:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bctextbox.h:25:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bclistbox.h:191:6:
> warning: 'BC_ListBox::activate' hides overloaded virtual function
> [-Woverloaded-virtual]
> int activate(int x, int y, int w=-1, int h=-1);
> ^
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:375:14:
> note: hidden overloaded virtual function 'BC_WindowBase::activate' declared
> here: different number of parameters (0 vs 4)
> virtual int activate();
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:251:11:
> error: unknown type name 'error_category'
> const error_category&
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:265:11:
> error: unknown type name 'error_category'
> const error_category* _M_cat;
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:219:28:
> error: use of undeclared identifier 'generic_category'
> : _M_value(0), _M_cat(&generic_category()) { }
> ^
> 6 warnings and 20 errors generated.
> make[2]: *** [Makefile:563: i686/filedv.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:245:17:
> error: use of undeclared identifier 'generic_category'
> { assign(0, generic_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:271:51:
> error: use of undeclared identifier 'generic_category'
> { return error_condition(static_cast<int>(__e), generic_category()); }
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:348:33:
> error: unknown type name 'error_category'
> system_error(int __v, const error_category& __ecat, const char* __what)
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:351:33:
> error: unknown type name 'error_category'
> system_error(int __v, const error_category& __ecat)
> ^
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:355:33:
> error: unknown type name 'error_category'
> system_error(int __v, const error_category& __ecat, const string&
> __what)
> ^
> In file included from fileffmpeg.C:12:
> In file included from ./bitspopup.h:25:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:62:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/errorbox.h:35:7:
> warning: 'ErrorBox::create_objects' hides overloaded virtual function
> [-Woverloaded-virtual]
> void create_objects(const char *text);
> ^
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:222:15:
> note: hidden overloaded virtual function 'BC_WindowBase::create_objects'
> declared here: different number of parameters (0 vs 1)
> virtual void create_objects() { return; };
> ^
> In file included from fileexr.C:36:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/ImfChromaticities.h:46:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/ImathVec.h:46:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/ImathExc.h:47:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/openexr-2.4.1/usr/local/include/OpenEXR/IexBaseExc.h:51:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/sstream:38:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/istream:38:
> In file included from
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:
> /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:207:9:
> error: unknown type name 'error_category'
> const error_category& iostream_category() noexcept;
> ^
> In file included from fileffmpeg.C:15:
> In file included from ./ffmpeg.h:29:
> In file included from
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/ffmpeg.git/./libavformat/internal.h:28:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/ffmpeg.git/./libavformat/os_support.h:70:19:
> warning: unused function 'is_dos_path' [-Wunused-function]
> static inline int is_dos_path(const char *path)
> ^
> In file included from fileffmpeg.C:16:
> In file included from ./filebase.h:32:
> In file included from ./file.inc:49:
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/language.h:45:21:
> warning: unused function 'msgtext' [-Wunused-function]
> static inline char *msgtext(const char *msgid)
> ^
> /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/language.h:55:21:
> warning: unused function 'msgqual' [-Wunused-function]
> static inline char *msgqual(const char *msgqual,const char *msgid)
> ^
> 5 warnings and 19 errors generated.
> make[2]: *** [Makefile:563: i686/fileexr.o] Error 1
> 7 warnings generated.
> 8 warnings generated.
> make[2]: Leaving directory
> '/dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra'
> make[1]: *** [Makefile:527: all-recursive] Error 1
> make[1]: Leaving directory
> '/dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1'
> make: *** [Makefile:483: all] Error 2
>
> ----
>
> Not sure what really caused this, will retry with plain GCC 5.5.0 ....
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20201029/4403cab5/attachment-0001.htm>
More information about the Cin
mailing list