icc -fast (static) broken?
marius at alchemy.franken.de
Thu Sep 9 16:34:31 PDT 2004
On Thu, Sep 09, 2004 at 04:15:11PM -0700, Clint Olsen wrote:
> On Sep 10, Marius Strobl wrote:
> > You are most likely using an installation of the ICC port that was done
> > before support for the C++ DSO destruction ABI was added to FreeBSD on a
> > FreeBSD that has support for it. If the problem doesn't go away after you
> > re-installed the current version of the ICC port (make sure the WRKDIR is
> > deleted before building it again) please report what __FreeBSD_version
> > you are using (from /usr/include/osreldate.h) and the full command-line
> > that causes the problem (need to know if you are compiling C or C++,
> > etc.).
> Blasting the workdir does seem to help considerably. I'm using
> __FreeBSD_version 503000 (beta1). I'm compiling for C targets using
> something like:
Does '-static' work now?
> icc -ipo -DNDEBUG -Wall -g -o test array.c
> which now generates:
> IPO: using IR for /tmp/iccbinMNSKnA.o
> IPO: performing single-file optimizations
> IPO link: can not find -lcprts
> IPO Warning: unresolved : _end
> Referenced in libc.a(sbrk.o)
> But seems to successfully generate a working binary anyway...
These IPO warnings under FreeBSD are known and harmless. It's rather a
cosmetic issue, they can be silenced with additional hacks in the ICC
port but I don't think that's worth it.
More information about the freebsd-ports