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

1 As far as I understand, pkgsrc is doing its best to stop me from=
=20
  supplying library paths to the linker, be it via CFLAGS, LDFLAGS, =
=20
  LD_LIBRARY_PATH or whatever. Still it seems (from my build attempt =
=20
  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=
d?

  With my (limited) understanding, I would have thought that things l=
ike=20
  this should automatically be added by the wrapper scripts, but it=
=20
  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=
n=20
  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=
hat
  setting PKGSRC_COMPILER would have been enough, so have I missed=
=20
  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=
nt
(see https://bugs.freedesktop.org/show_bug.cgi?id=3D3283), but since =
the=20
whole attempt to use icc was intended to be some kind of learning=
=20
experience of how pkgsrc really works, I'm still interested in=20
understanding the above.

/emil



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
>=20
>=20
> Bootstrapping went fine, and I've installed a few packages without =
too=20
> much problems; however, the process of building xorg fails in xorg-=
imake
> with the following:
>=20
> 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=
d
> =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
>=20
> =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=
=3D""=20
> 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
> CROSSCOMPILEFLAGS=3D-DCROSSCOMPILEDIR=3D"" in config/imake
> /opt/intel_cc_80/bin/icc -o ccimake -DCROSSCOMPILEDIR=3D\"\"  -O=
=20
> -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
>=20
> 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
>=20
> Stop.
> bmake: stopped in /usr/pkgsrc/x11/xorg-imake
>=20
>=20
> I would appreciate any clues about this.
>=20
> Emil
>=20