[blfs-support] Cups-2.2.7 with clang 6 installed

Ken Moffat zarniwhoop at ntlworld.com
Fri Jun 8 10:00:19 PDT 2018

On Thu, Jun 07, 2018 at 09:56:05AM -0500, Bruce Dubbs wrote:
> On 06/07/2018 05:04 AM, Wayne Blaszczyk wrote:
> > I build llvm and clang separately and use slightly different parameters to the book, hence why I didn't report this issue myself.
> > But looking at the configure script, (and I'm not expert reading these scripts), but to me it looks like if it finds clang++, it will use it rather than g++.
> > I would be interested in your configure output around this area:
> > 
> > checking for gcc option to accept ISO C89... none needed
> > checking how to run the C preprocessor... gcc -E
> > checking for clang++... clang++
> > checking whether we are using the GNU C++ compiler... yes
> > checking whether clang++ accepts -g... yes
> > checking for ranlib... ranlib
> > checking for ar... /usr/bin/ar
> > checking for chmod... /bin/chmod
> Yes, I have the identical sequence on my log.

As a long-time radeon user, what is in the book works for me too.

My LLVM uses
CC=gcc CXX=g++ \
cmake -DCMAKE_INSTALL_PREFIX=/usr           \
      -DLLVM_ENABLE_FFI=ON                  \
      -DCMAKE_BUILD_TYPE=Release            \
      -DLLVM_BUILD_LLVM_DYLIB=ON            \
      -DLLVM_LINK_LLVM_DYLIB=ON             \
      -Wno-dev ..

and I do not build cups until after Xorg (but before the gtk

With systemd disabled and just passing CC=gcc to configure, the
output from cups at the start of make is:

config.status: creating config.h
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -O2 -march=native -I/usr/include/libusb-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/p11-kit-1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_THREAD_SAFE -D_REENTRANT  
Using CC=gcc
Using CXX=gcc
Using DSOFLAGS=-L../cups  -Wl,-soname,all -shared -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LDFLAGS=-L../cgi-bin -L../cups -L../filter -L../ppdc -L../scheduler -fPIE -pie -Wall -Wno-format-y2k -Wunused -fPIC -Os -g -fstack-protector -Wno-unused-result -Wsign-conversion -Wno-tautological-compare -Wno-format-truncation -D_GNU_SOURCE
Using LIBS=-lcups   -lgnutls -lz -lpthread -lm -lcrypt   -lz
Making all in cups...

Curious why it doesn't work for you.

              Keyboard not found, Press F1 to continue

More information about the blfs-support mailing list