<div dir="ltr"><div class="gmail_default" style="font-size:small">GG tested CLANG in the Fedora Operating System.  It compiled with no errors.  The Slackware compiler version is not current.  Slackware is a difficult to maintain product so we only upgrade it very infrequently.  Out of curiosity, is your Slackware up to date? ours definitely is not.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 29, 2020 at 12:44 PM Andrew Randrianasulu via Cin <<a href="mailto:cin@lists.cinelerra-gg.org">cin@lists.cinelerra-gg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have CC and CXX set to clang and clang++ for quite some  time  for compiling CinGG. It was  working until today:<br>
<br>
-------<br>
In file included from fileffmpeg.C:10:<br>
In file included from ./asset.h:32:<br>
In file included from ./indexable.h:29:<br>
./garbage.h:53:33: warning: all paths through this function will call itself [-Winfinite-recursion]<br>
        Garbage &operator=(Garbage &v) { return *this=v; } //disallow = operator<br>
                                       ^<br>
In file included from fileexr.C:27:<br>
In file included from ./file.h:37:<br>
In file included from ./formattools.h:26:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:62:<br>
/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]<br>
        void create_objects(const char *text);<br>
             ^<br>
/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)<br>
        virtual void create_objects() { return; };<br>
                     ^<br>
In file included from filedv.C:49:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/iostream:39:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ostream:38:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:41:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/locale_classes.h:40:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/string:52:<br>
/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<br>
  inline namespace literals<br>
         ^<br>
In file included from filedv.C:49:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/iostream:39:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ostream:38:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:46:<br>
/usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:63:10: error: expected unqualified-id<br>
  inline namespace _V2 {<br>
         ^<br>
/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'<br>
    error_code(int __v, const error_category& __cat) noexcept<br>
                              ^<br>
/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'<br>
    assign(int __v, const error_category& __cat) noexcept<br>
                          ^<br>
/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'<br>
    const error_category&<br>
          ^<br>
/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'<br>
    const error_category*       _M_cat;<br>
          ^<br>
/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'<br>
    : _M_value(0), _M_cat(&system_category()) { }<br>
                           ^<br>
/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'<br>
    { assign(0, system_category()); }<br>
                ^<br>
/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'<br>
  { return error_code(static_cast<int>(__e), generic_category()); }<br>
                                             ^<br>
/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'<br>
    error_condition(int __v, const error_category& __cat) noexcept<br>
                                   ^<br>
/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'<br>
    assign(int __v, const error_category& __cat) noexcept<br>
                          ^<br>
/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'<br>
    const error_category&<br>
          ^<br>
/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'<br>
    const error_category*       _M_cat;<br>
          ^<br>
/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'<br>
    : _M_value(0), _M_cat(&generic_category()) { }<br>
                           ^<br>
/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'<br>
    { assign(0, generic_category()); }<br>
                ^<br>
/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'<br>
  { return error_condition(static_cast<int>(__e), generic_category()); }<br>
                                                  ^<br>
/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'<br>
    system_error(int __v, const error_category& __ecat, const char* __what)<br>
                                ^<br>
/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'<br>
    system_error(int __v, const error_category& __ecat)<br>
                                ^<br>
/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'<br>
    system_error(int __v, const error_category& __ecat, const string& __what)<br>
                                ^<br>
In file included from fileexr.C:36:<br>
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:<br>
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:<br>
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:<br>
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:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/sstream:38:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/istream:38:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/bits/ios_base.h:46:<br>
/usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/system_error:63:10: error: expected unqualified-id<br>
  inline namespace _V2 {<br>
         ^<br>
fatal error: too many errors emitted, stopping now [-ferror-limit=]<br>
/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'<br>
    error_code(int __v, const error_category& __cat) noexcept<br>
                              ^<br>
/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'<br>
    assign(int __v, const error_category& __cat) noexcept<br>
                          ^<br>
/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'<br>
    const error_category&<br>
          ^<br>
/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'<br>
    const error_category*       _M_cat;<br>
          ^<br>
/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'<br>
    : _M_value(0), _M_cat(&system_category()) { }<br>
                           ^<br>
/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'<br>
    { assign(0, system_category()); }<br>
                ^<br>
/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'<br>
  { return error_code(static_cast<int>(__e), generic_category()); }<br>
                                             ^<br>
/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'<br>
    error_condition(int __v, const error_category& __cat) noexcept<br>
                                   ^<br>
In file included from fileffmpeg.C:12:<br>
In file included from ./bitspopup.h:25:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:35:<br>
/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]<br>
        int activate(int popup_x = -1, int popup_y = -1);<br>
            ^<br>
/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)<br>
        virtual int activate();<br>
                    ^<br>
/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'<br>
    assign(int __v, const error_category& __cat) noexcept<br>
                          ^<br>
In file included from fileffmpeg.C:12:<br>
In file included from ./bitspopup.h:25:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:36:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcfilebox.h:33:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bctextbox.h:25:<br>
/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]<br>
        int activate(int take_focus = 1);<br>
            ^<br>
/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)<br>
        virtual int activate();<br>
                    ^<br>
In file included from fileffmpeg.C:12:<br>
In file included from ./bitspopup.h:25:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:36:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bcfilebox.h:33:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/bctextbox.h:25:<br>
/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]<br>
        int activate(int x, int y, int w=-1, int h=-1);<br>
            ^<br>
/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)<br>
        virtual int activate();<br>
                    ^<br>
/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'<br>
    const error_category&<br>
          ^<br>
/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'<br>
    const error_category*       _M_cat;<br>
          ^<br>
/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'<br>
    : _M_value(0), _M_cat(&generic_category()) { }<br>
                           ^<br>
6 warnings and 20 errors generated.<br>
make[2]: *** [Makefile:563: i686/filedv.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
/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'<br>
    { assign(0, generic_category()); }<br>
                ^<br>
/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'<br>
  { return error_condition(static_cast<int>(__e), generic_category()); }<br>
                                                  ^<br>
/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'<br>
    system_error(int __v, const error_category& __ecat, const char* __what)<br>
                                ^<br>
/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'<br>
    system_error(int __v, const error_category& __ecat)<br>
                                ^<br>
/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'<br>
    system_error(int __v, const error_category& __ecat, const string& __what)<br>
                                ^<br>
In file included from fileffmpeg.C:12:<br>
In file included from ./bitspopup.h:25:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/guicast.h:62:<br>
/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]<br>
        void create_objects(const char *text);<br>
             ^<br>
/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)<br>
        virtual void create_objects() { return; };<br>
                     ^<br>
In file included from fileexr.C:36:<br>
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:<br>
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:<br>
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:<br>
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:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/sstream:38:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/istream:38:<br>
In file included from /usr/bin/../lib/gcc/i586-slackware-linux/5.5.0/../../../../include/c++/5.5.0/ios:42:<br>
/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'<br>
  const error_category& iostream_category() noexcept;<br>
        ^<br>
In file included from fileffmpeg.C:15:<br>
In file included from ./ffmpeg.h:29:<br>
In file included from /dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../thirdparty/ffmpeg.git/./libavformat/internal.h:28:<br>
/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]<br>
static inline int is_dos_path(const char *path)<br>
                  ^<br>
In file included from fileffmpeg.C:16:<br>
In file included from ./filebase.h:32:<br>
In file included from ./file.inc:49:<br>
/dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/language.h:45:21: warning: unused function 'msgtext' [-Wunused-function]<br>
static inline char *msgtext(const char *msgid)<br>
                    ^<br>
/dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra/../guicast/language.h:55:21: warning: unused function 'msgqual' [-Wunused-function]<br>
static inline char *msgqual(const char *msgqual,const char *msgid)<br>
                    ^<br>
5 warnings and 19 errors generated.<br>
make[2]: *** [Makefile:563: i686/fileexr.o] Error 1<br>
7 warnings generated.<br>
8 warnings generated.<br>
make[2]: Leaving directory '/dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1/cinelerra'<br>
make[1]: *** [Makefile:527: all-recursive] Error 1<br>
make[1]: Leaving directory '/dev/shm/tmp/cinelerra-goodguy-20201029/cinelerra-5.1'<br>
make: *** [Makefile:483: all] Error 2<br>
<br>
----<br>
<br>
Not sure what really caused this, will retry with plain GCC 5.5.0 ....<br>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div>