Subject: Re: x11/xorg-imake won't build with icc
To: Emil =?iso-8859-1?Q?Sk=F6ldberg?= <>
From: Emil Skoeldberg <>
List: tech-pkg
Date: 07/04/2005 13:34:19
OK, I have tried to figure this out myself, but only succeeded in=
getting a few questions:

1 As far as I understand, pkgsrc is doing its best to stop me from=
  supplying library paths to the linker, be it via CFLAGS, LDFLAGS, =
  LD_LIBRARY_PATH or whatever. Still it seems (from my build attempt =
  below) like libimf from (in my case) /opt/intel_cc_80/lib is=20
  really needed; so where should this piece of information be supplie=

  With my (limited) understanding, I would have thought that things l=
  this should automatically be added by the wrapper scripts, but it=
  seems not to be the case.

2 At the beginning of my attempts to try out pkgsrc on linux with icc=
  I just set PKGSRC_COMPILER to icc in mk.conf, and went ahead, I the=
  realised that in order to actually use icc I had to set CC to=20
  path_to/icc (otherwise gcc was used). Again, I would have thought t=
  setting PKGSRC_COMPILER would have been enough, so have I missed=
  anything in my setup of pkgsrc, or is it just the way it is?=20
  (Why in that case?)

Some googling gives that xorg won't build with icc anyway at the mome=
(see, but since =
whole attempt to use icc was intended to be some kind of learning=
experience of how pkgsrc really works, I'm still interested in=20
understanding the above.


On Fri, Jul 01, 2005 at 04:47:00PM +0100, Emil Sk=F6ldberg wrote:
> I have just got a new box on which I have installed Slackware linux
> and I thought I'd try to use pkgsrc with Intel's icc compiler.=20
> Bootstrapping went fine, and I've installed a few packages without =
> much problems; however, the process of building xorg fails in xorg-=
> with the following:
> root@darkstar:/usr/pkgsrc/x11/xorg-imake# bmake
> =3D=3D=3D> Checking for vulnerabilities in xorg-imake-6.8.2nb1
> =3D> Checksum SHA1 OK for X11R6.8.2-src1.tar.gz.
> =3D> Checksum RMD160 OK for X11R6.8.2-src1.tar.gz.
> =3D> Checksum SHA1 OK for X11R6.8.2-src3.tar.gz.
> =3D> Checksum RMD160 OK for X11R6.8.2-src3.tar.gz.
> =3D=3D=3D> Extracting for xorg-imake-6.8.2nb1
> =3D=3D=3D> Required installed package bison-[0-9]*: bison-2.0 found
> =3D=3D=3D> Required installed package flex-[0-9]*: flex-2.5.4a foun=
> =3D=3D=3D> Required installed package xorg-dirs>=3D1.1: xorg-dirs-1=
.1 found
> =3D=3D=3D> Patching for xorg-imake-6.8.2nb1
> =3D=3D=3D> Applying pkgsrc patches for xorg-imake-6.8.2nb1
> =3D=3D=3D> Overriding tools for xorg-imake-6.8.2nb1
> =3D=3D=3D> Creating toolchain wrappers for xorg-imake-6.8.2nb1
> =3D=3D=3D> Configuring for xorg-imake-6.8.2nb1
> =3D=3D=3D> Building for xorg-imake-6.8.2nb1
> cd /usr/obj/x11/xorg-imake/work/xc && /usr/bin/make Makefile.boot &=
&    =20
> /usr/bin/make -f xmakefile VerifyOS version.def Makefiles includes
> cd ./config/imake && /usr/bin/make  -f Makefile.ini BOOTSTRAPCFLAGS=
> CC=3D"/opt/intel_cc_80/bin/icc"
> make[1]: Entering directory=20
> `/usr/obj/x11/xorg-imake/work/xc/config/imake'
> making imake with BOOTSTRAPCFLAGS=3D and=20
> /opt/intel_cc_80/bin/icc -o ccimake -DCROSSCOMPILEDIR=3D\"\"  -O=
> -I../../include -I../../imports/x11/include/X11 ccimake.c
> /usr/bin/ld: cannot find -limf
> make[1]: *** [ccimake] Error 1
> make[1]: Leaving directory=20
> `/usr/obj/x11/xorg-imake/work/xc/config/imake'
> make: *** [imake.proto] Error 2
> *** Error code 2
> Stop.
> bmake: stopped in /usr/pkgsrc/x11/xorg-imake
> =3D=3D=3D>=20
> =3D=3D=3D> There was an error during the ``build'' phase.
> =3D=3D=3D> Please investigate the following for more information:
> =3D=3D=3D>      * log of the build
> =3D=3D=3D>      * /usr/obj/x11/xorg-imake/work/.work.log
> =3D=3D=3D>=20
> *** Error code 1
> Stop.
> bmake: stopped in /usr/pkgsrc/x11/xorg-imake
> I would appreciate any clues about this.
> Emil