POV-Ray : Newsgroups : povray.unix : compile errors on fedora 24 Server Time: 14 Dec 2018 10:09:58 GMT
  compile errors on fedora 24 (Message 1 to 5 of 5)  
From: RM
Subject: compile errors on fedora 24
Date: 1 Jul 2016 03:30:01
Message: <web.5775e2cf8b4af27e66d820d0@news.povray.org>
i was able to get it to compile on fedora 23 but i get the following error on
fedora 24:

g++ -DHAVE_CONFIG_H -I. -I..  -I../unix/povconfig -I.. -I../unix -I../vfe
-I../vfe/unix -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pthread
-I/usr/include/OpenEXR -I/usr/include/libdrm  -pthread -I/usr/lib64/include
-I/usr/include  -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -s -O3 -ffast-math -march=native -Wno-multichar
-pthread -MT frontend/renderfrontend.o -MD -MP -MF $depbase.Tpo -c -o
frontend/renderfrontend.o frontend/renderfrontend.cpp &&\
mv -f $depbase.Tpo $depbase.Po
frontend/renderfrontend.cpp: In member function ‘void
pov_frontend::RenderFrontendBase::NewBackup(POVMS_Object&,
pov_frontend::ViewData&, const pov_base::Path&)’:
frontend/renderfrontend.cpp:621:53: error: no match for ‘operator==’ (operand
types are ‘pov_base::IOBase’ and ‘bool’)
         if(vd.imageBackup->write(&hdr, sizeof(hdr)) == false)
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
frontend/renderfrontend.cpp: In member function ‘void
pov_frontend::RenderFrontendBase::ContinueBackup(POVMS_Object&,
pov_frontend::ViewData&, pov_frontend::RenderFrontendBase::ViewId, int&,
std::vector<int>&, const pov_base::Path&)’:
frontend/renderfrontend.cpp:674:53: error: no match for ‘operator==’ (operand
types are ‘pov_base::IOBase’ and ‘bool’)
             if (inbuffer->read (&hdr, sizeof (hdr)) == false)
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Makefile:1155: recipe for target 'frontend/renderfrontend.o' failed
make[2]: *** [frontend/renderfrontend.o] Error 1
make[2]: Leaving directory '/data2/archives/programs/povray-master/source'
Makefile:662: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/data2/archives/programs/povray-master'
Makefile:455: recipe for target 'all' failed
make: *** [all] Error 2

can anyone offer any assistance ?
Thank you


Post a reply to this message

From: Le Forgeron
Subject: Re: compile errors on fedora 24
Date: 1 Jul 2016 06:28:10
Message: <57760d7a$1@news.povray.org>
Le 01/07/2016 05:27, RM a écrit :
> i was able to get it to compile on fedora 23 but i get the following error on
> fedora 24:
> 
> 
> can anyone offer any assistance ?
> Thank you

Which version of code ? (stable or master branch ?)

What is the version of g++ on fedora 24 ?

Can you try another compiler ? (like clang)

(I only have an ubuntu here)


Post a reply to this message

From: RM
Subject: Re: compile errors on fedora 24
Date: 1 Jul 2016 23:15:01
Message: <web.5776f8f612783cf9e66d820d0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> Which version of code ? (stable or master branch ?)
master 3.7.1-alpha.8656843
> What is the version of g++ on fedora 24 ?
GCC 6.11
> Can you try another compiler ? (like clang)

clang is available for fedora 24
what options do i set  to use it instead of gcc?


Post a reply to this message

From: Le Forgeron
Subject: Re: compile errors on fedora 24
Date: 2 Jul 2016 06:03:43
Message: <5777593f@news.povray.org>
Le 02/07/2016 01:12, RM a écrit :
> Le_Forgeron <jgr### [at] freefr> wrote:
> 
>> Which version of code ? (stable or master branch ?)
> master 3.7.1-alpha.8656843
>> What is the version of g++ on fedora 24 ?
> GCC 6.11

Oh, interesting change, the default mode is gnu++14 instead of gnu++98

It seems IOBase is now missing something like
  operator bool()const{...}
but deeper analysis might be needed.

Or instead of ( X.write() == false ), it could be rewritten ( !(X.write()) == true )
or even ( !(X.write()) ) as == true is implicit

I guess that previously the operator const void*() was used by previous standard to
get an evaluation of the test

>> Can you try another compiler ? (like clang)
> 
> clang is available for fedora 24
> what options do i set  to use it instead of gcc?
> 
On the ./configure command line, add CXX=clang++ CC=clang


Post a reply to this message

From: RM
Subject: Re: compile errors on fedora 24
Date: 2 Jul 2016 16:25:01
Message: <web.5777e9ec12783cf9e66d820d0@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:

> Oh, interesting change, the default mode is gnu++14 instead of gnu++98

Before trying clang i tried this:

.../configure COMPILED_BY="RSM"  --with-boost=/usr/lib64
--disable-io-restrictions
--with-boost-thread=boost_thread LIBS=-Lboost_system CXXFLAGS="-Wno-multichar
-std=gnu++98" LDFLAGS="-L/usr/lib64"

and make check worked

Thank you for your help Le_Forgeron


Post a reply to this message

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.