[blfs-support] Cups-2.2.7 with clang 6 installed
wblaszcz at bigpond.net.au
Wed Jun 6 14:39:51 PDT 2018
On Wed, 2018-06-06 at 22:45 +0200, Christopher Gregory wrote:
> > Sent: Thursday, June 07, 2018 at 7:57 AM
> > From: "Bruce Dubbs" <bruce.dubbs at gmail.com>
> > To: blfs-support at lists.linuxfromscratch.org
> > Subject: Re: [blfs-support] Cups-2.2.7 with clang 6 installed
> > On 06/06/2018 02:46 PM, Christopher Gregory wrote:
> > > Hello,
> > >
> > > With this new build that I am currently doing using gcc-8.1.0 and having had to install clang etc to build the drivers for my radeon video card,
> > >
> > > I found that having CC=gcc parsed to both configure and make was not enough to get this to compile. When it went through the configure and was running make, I noticed that
> > > it still had CXX=clang listed along with CC=gcc, and the build failed.
> > >
> > > I had to add CC=gcc CXX=g++ to the instructions to get it to work correctly as it always failed with:
> > >
> > > Compiling ppdc-array.cxx...
> > > clang-6.0: error: unknown argument: '-fno-lifetime-dse'
> > >
> > > Would it hurt to have the CXX=g++ added to the current book instructions? I do not know if it is or will affect anyone else, or if even this build of mine has a mind of its own.
> > Why did you have CXX=clang? We don't have that anywhere in the book.
> > Looks like an issue specific to your configuration to me.
> > We do mention CC=clang in stunnel, but that is for old versions of
> > binutils and we do not export it even then.
> > -- Bruce
> > --
> > http://lists.linuxfromscratch.org/listinfo/blfs-support
> > FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > Unsubscribe: See the above information page
> Hello Bruce,
> In the build instructions for cups it has:
> CC=gcc right before the ./configure switch.
> In the command explanation section it has the following note:
> CC=gcc: This environment variable ensures that gcc is used, if clang is installed. Remove it, if you prefer to use clang. Using clang almost doubles build time and slightly decreases build disk
> space. Installed disk space is not appreciably modified.
> I found that just having CC=gcc was not enough to get this to correctly build, as for some reason the build would still try using clang to, if I have the term correct, linking, ie using clang
> equivalent of g++
> This was not my doing. I am just following what is currently listed in svn for the instructions for both systemd version and for sysv of the book.
FWIW, I've been using both CC=gcc CXX=g++ in my Cups build for quite some time, for the very same reason mentioned by Christopher.
Looking back at my history, it was at the time when -DLLVM_LINK_LLVM_DYLIB=ON was added to llvm.
More information about the blfs-support