libX11 and clang: compile error

Oliver Pinter oliver.pntr at gmail.com
Sat May 26 09:39:01 UTC 2012


Hi!

Somewhere in config* or Makefile are a hardcoded /usr/bin/cpp ...
-------------- next part --------------
Script started on Sat May 26 10:51:06 2012

op has logged on :0 from local.
root@opn libX11# make

===>  License MIT accepted by the user
===>  Extracting for libX11-1.4.4,1
=> SHA256 Checksum OK for xorg/lib/libX11-1.4.4.tar.bz2.
===>  Patching for libX11-1.4.4,1
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xcb.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/share/aclocal/xorg-macros.m4 - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/bigreqsproto.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xcmiscproto.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xextproto.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xtrans.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/kbproto.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/inputproto.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xf86bigfontproto.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xau.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xdmcp.pc - found
===>   libX11-1.4.4,1 depends on file: /usr/local/libdata/pkgconfig/xproto.pc - found
===>   libX11-1.4.4,1 depends on executable: pkg-config - found
===>  Configuring for libX11-1.4.4,1
checking build system type... amd64-portbld-freebsd9.0
checking host system type... amd64-portbld-freebsd9.0
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-portbld-freebsd9.0 file names to amd64-portbld-freebsd9.0 format... func_convert_file_noop
checking how to convert amd64-portbld-freebsd9.0 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for cc option to accept ISO C99... none needed
checking whether __clang__ is declared... yes
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking if cc supports -Werror=attributes... no
checking whether to build functional specifications... no
checking for xsltproc... /usr/local/bin/xsltproc
checking for X.Org SGML entities >= 1.8... no
checking for cpp... /usr/bin/cpp
checking if /usr/bin/cpp requires -undef... yes
checking if /usr/bin/cpp requires -traditional... configure: error: /usr/bin/cpp does not preserve whitespace with or without -traditional.  I don't know what to do.
===>  Script "configure" failed unexpectedly.
Please report the problem to x11 at FreeBSD.org [maintainer] and attach the
"/usr/ports/x11/libX11/work/libX11-1.4.4/config.log" including the output of
the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/x11/libX11.
root@opn libX11# cat /etc/src.conf 

CC=clang
CXX=clang++
CPP=clang-cpp

WITH_CLANG=
WITH_CLANG_EXTRAS=
WITH_CLANG_IS_CC=
WITH_IDEA=

WITHOUT_ZFS=
WITHOUT_FLOPPY=

root@opn libX11# ^Dexit

Script done on Sat May 26 10:51:19 2012


More information about the freebsd-x11 mailing list