Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 00:22:10 -0800
From:      Vivek Thakkar <vivekt.vivek@gmail.com>
To:        freebsd-amd64@freebsd.org
Subject:   Problems cross compiling (using icc) at /usr/src level-- include  path?
Message-ID:  <50bd60570902090022k67b50d24i4a443e1c20cc274f@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I am cross compiling freebsd system using "icc" at /usr/src level on host
amd64 platform. I find that during the build process, freebsd creates
temporary include directory
at ${MAKEOBJDIRPREFIX}/${.CURDIR}/tmp/usr/include path using '__include'
rule. But I can't understand how the gcc adds this include path in its list
of directories to be searched.

My icc compiler fails to do the same. As a work around, I tried to use
-idirafter option (same for icc and gcc) because gcc adds this path at the
end of the list. This works for some libraries but fails
for the others because mkdep does not create dependencies on system include
paths (which is what -idirafter does, i.e. adds the new path as a system
level search path). As a result my compilation
fails at mkdep stage. Any help in understanding this would be highly
appreciated.

Thanks and Regards,
-Vivek



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50bd60570902090022k67b50d24i4a443e1c20cc274f>