xfig build failure on amd64 with clang, possibly imake problem?

Anton Shterenlikht mexas at bristol.ac.uk
Tue Jan 1 10:06:06 UTC 2013


	Date: Mon, 31 Dec 2012 14:42:13 +0100
	From: Matthias Andree <mandree at FreeBSD.org>

	> 	imake doesn't run properly if built with clang; you must build with GCC/g++.
	> 
	> 	Chris
	> 
	> So is this something for the port maintaner (x11@)
	> to sort out?
	> 

	Yes, and I've already mailed them.

	In the meanwhile, this should get you going:

	cd /usr/ports/devel/imake
	make -DNOCLEANDEPENDS clean
	make USE_GCC=any all deinstall install clean
	cd /usr/ports/graphics/xfig
	make clean
	make install clean

	This procedure worked for me on 9.1-RELEASE amd64, where it would fail
	when imake was built with clang (from ports), as Chris already confirmed.

I'm on -current r244694, and it seems
it doesn't work for me.

BUZI# cat imake-build.sh
#!/bin/sh

cd /usr/ports/devel/imake
make -DNOCLEANDEPENDS clean
make USE_GCC=any all deinstall install clean
cd /usr/ports/graphics/xfig
make clean
make install clean

exit 0
BUZI#

BUZI# ./imake-build.sh > imake-xfig.log 2>&1

BUZI# cat imake-xfig.log
===>  Cleaning for imake-1.0.4,1
===>   imake-1.0.4,1 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for imake-1.0.4,1
=> SHA256 Checksum OK for xorg/util/imake-1.0.4.tar.bz2.
===>   imake-1.0.4,1 depends on file: /usr/local/bin/perl5.16.2 - found
===>  Patching for imake-1.0.4,1
===>   imake-1.0.4,1 depends on file: /usr/local/bin/perl5.16.2 - found
===>  Applying FreeBSD patches for imake-1.0.4,1
===>   imake-1.0.4,1 depends on executable: ucpp - found
===>   imake-1.0.4,1 depends on file: /usr/local/libdata/pkgconfig/xproto.pc - found
===>   imake-1.0.4,1 depends on file: /usr/local/bin/perl5.16.2 - found
===>  Configuring for imake-1.0.4,1
===>   FreeBSD 10 autotools fix applied to /usr/ports/devel/imake/work/imake-1.0.4/aclocal.m4
===>   FreeBSD 10 autotools fix applied to /usr/ports/devel/imake/work/imake-1.0.4/configure
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... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcpp
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 for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... amd64-portbld-freebsd10.0
checking host system type... amd64-portbld-freebsd10.0
checking for a sed that does not truncate output... /usr/bin/sed
checking how to run the C preprocessor... gcpp
checking for cpp... (cached) ucpp -s
checking if ucpp -s requires -undef... no
checking if ucpp -s requires -traditional... no
checking for mkstemp... yes
checking for perl... yes
checking for XPROTO... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
===>  Building for imake-1.0.4,1
make  all-am
  CC     imake-imake.o
imake.c: In function 'LogMsg':
imake.c:706: warning: format not a string literal, argument types not checked
imake.c: In function 'parse_utsname':
imake.c:866: warning: format not a string literal, argument types not checked
  CCLD   imake
  CC     revpath.o
  CCLD   revpath
  GEN    xmkmf
  GEN    ccmakedep
  GEN    mergelib
  GEN    mkhtmlindex
  GEN    imake.1
  GEN    revpath.1
  GEN    makeg.1
  GEN    xmkmf.1
  GEN    ccmakedep.1
  GEN    mergelib.1
  GEN    mkdirhier.1
  GEN    cleanlinks.1
  GEN    mkhtmlindex.1
/usr/bin/sed -i.bak -e 's|^configdirspec= *|configdirspec=|' /usr/ports/devel/imake/work/imake-1.0.4/xmkmf
===>  Deinstalling for devel/imake
===>   Deinstalling imake-1.0.4,1
The following packages will be deinstalled:

	imake-1.0.4,1

The deinstallation will free 47 kB
Deleting imake-1.0.4,1... done
===>  Installing for imake-1.0.4,1
===>   imake-1.0.4,1 depends on executable: gccmakedep - found
===>   imake-1.0.4,1 depends on executable: makedepend - found
===>   imake-1.0.4,1 depends on file: /usr/local/lib/X11/config/xorg.cf - found
===>   imake-1.0.4,1 depends on executable: ucpp - found
===>   imake-1.0.4,1 depends on file: /usr/local/libdata/pkgconfig/xproto.pc - found
===>   imake-1.0.4,1 depends on file: /usr/local/bin/perl5.16.2 - found
===>   Generating temporary packing list
===>  Checking if devel/imake already installed
test -z "/usr/local/bin" || ./install-sh -c -d "/usr/local/bin"
  install  -s -o root -g wheel -m 555 imake revpath '/usr/local/bin'
test -z "/usr/local/bin" || ./install-sh -c -d "/usr/local/bin"
 install  -o root -g wheel -m 555 makeg xmkmf ccmakedep mergelib mkdirhier cleanlinks mkhtmlindex '/usr/local/bin'
test -z "/usr/local/man/man1" || ./install-sh -c -d "/usr/local/man/man1"
 install  -o root -g wheel -m 444 imake.1 revpath.1 makeg.1 xmkmf.1 ccmakedep.1 mergelib.1 mkdirhier.1 cleanlinks.1 mkhtmlindex.1 '/usr/local/man/man1'
===>   Compressing manual pages for imake-1.0.4,1
===>   Registering installation for imake-1.0.4,1
Installing imake-1.0.4,1... done
===>  Cleaning for imake-1.0.4,1
===>  Cleaning for xfig-3.2.5b_1
===>  Found saved configuration for xfig-3.2.5b_1
===>   xfig-3.2.5b_1 depends on file: /usr/local/sbin/pkg - found
===>  Extracting for xfig-3.2.5b_1
=> SHA256 Checksum OK for xfig.3.2.5b.full.tar.gz.
===>  Patching for xfig-3.2.5b_1
===>  Applying FreeBSD patches for xfig-3.2.5b_1
===>   xfig-3.2.5b_1 depends on executable: imake - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/ice.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/sm.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/xi.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found
===>   xfig-3.2.5b_1 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   xfig-3.2.5b_1 depends on shared library: jpeg.11 - found
===>   xfig-3.2.5b_1 depends on shared library: png15 - found
===>   xfig-3.2.5b_1 depends on shared library: Xaw3d.8 - found
===>  Configuring for xfig-3.2.5b_1
imake -DUseInstalled -I/usr/local/lib/X11/config
In file included from Imakefile.c:16:
In file included from /usr/local/lib/X11/config/Imake.tmpl:109:
/usr/local/lib/X11/config/FreeBSD.cf:451:35: error: '#' is not followed by a macro parameter
#define IncludeMakefile(file) @@# dependencies are in .depend
                                  ^
In file included from Imakefile.c:16:
In file included from /usr/local/lib/X11/config/Imake.tmpl:316:
/usr/local/lib/X11/config/Imake.rules:1674:27: warning: empty character constant [-Winvalid-pp-token]
        for flag in ${MAKEFLAGS} ''; do \                               @@\
                                 ^
/usr/local/lib/X11/config/Imake.rules:1897:35: error: '#' is not followed by a macro parameter
#define IncludeMakefile(file) @@# dependencies are in .depend
                                  ^
In file included from Imakefile.c:16:
/usr/local/lib/X11/config/Imake.tmpl:2144:10: fatal error: ' X11 .rules' file not found
#include ProjectRulesFile
         ^
/usr/local/lib/X11/config/Imake.tmpl:2142:35: note: expanded from macro 'ProjectRulesFile'
# define ProjectRulesFile       Concat3(<,TopLevelProject,.rules>)
                                        ^
/usr/local/lib/X11/config/Imake.rules:256:23: note: expanded from macro 'Concat3'
#define Concat3(a,b,c)a/**/b/**/c
                      ^
1 warning and 3 errors generated.
imake: Exit code 1.
  Stop.
===>  Building for xfig-3.2.5b_1
"Makefile", line 11: Need an operator
"Makefile", line 12: Need an operator
"Makefile", line 15: Need an operator
"Makefile", line 16: Need an operator
"Makefile", line 17: Need an operator
"Makefile", line 18: Need an operator
"Makefile", line 20: Need an operator
"Makefile", line 38: Need an operator
"Makefile", line 39: Need an operator
"Makefile", line 40: Need an operator
"Makefile", line 56: Need an operator
"Makefile", line 57: Need an operator
"Makefile", line 62: Need an operator
"Makefile", line 63: Need an operator
"Makefile", line 64: Need an operator
"Makefile", line 147: Need an operator
"Makefile", line 148: Need an operator
"Makefile", line 149: Need an operator
"Makefile", line 162: Need an operator
"Makefile", line 163: Need an operator
"Makefile", line 166: Need an operator
"Makefile", line 167: Need an operator
"Makefile", line 168: Need an operator
"Makefile", line 169: Need an operator
"Makefile", line 256: Need an operator
"Makefile", line 475: Need an operator
"Makefile", line 516: Need an operator
"Makefile", line 517: Need an operator
"Makefile", line 815: Inconsistent operator for xfig
"Makefile", line 817: Missing dependency operator
"Makefile", line 823: Need an operator
"Makefile", line 825: Need an operator
"Makefile", line 826: Need an operator
"Makefile", line 830: Need an operator
"Makefile", line 831: Need an operator
"Makefile", line 832: Need an operator
"Makefile", line 835: Need an operator
"Makefile", line 836: Need an operator
"Makefile", line 840: Need an operator
"Makefile", line 841: Need an operator
"Makefile", line 842: Need an operator
"Makefile", line 843: Need an operator
"Makefile", line 846: Need an operator
"Makefile", line 857: Need an operator
"Makefile", line 861: Need an operator
"Makefile", line 862: Need an operator
"Makefile", line 866: Need an operator
"Makefile", line 867: Need an operator
"Makefile", line 869: Need an operator
"Makefile", line 949: Need an operator
"Makefile", line 954: Need an operator
"Makefile", line 959: Need an operator
"Makefile", line 962: Need an operator
"Makefile", line 999: Need an operator
"Makefile", line 1002: Need an operator
"Makefile", line 1005: Need an operator
"Makefile", line 1018: Need an operator
"Makefile", line 1023: Missing dependency operator
make: fatal errors encountered -- cannot continue
*** [do-build] Error code 1

Stop in /usr/ports/graphics/xfig.
*** [install] Error code 1

Stop in /usr/ports/graphics/xfig.



More information about the freebsd-ports mailing list