From owner-freebsd-ports@FreeBSD.ORG Thu Sep 9 23:34:31 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C62F316A4CE for ; Thu, 9 Sep 2004 23:34:31 +0000 (GMT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3541743D41 for ; Thu, 9 Sep 2004 23:34:31 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) i89NYK1a047565; Fri, 10 Sep 2004 01:34:24 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.10/8.12.10/Submit) id i89NYFhB047564; Fri, 10 Sep 2004 01:34:15 +0200 (CEST) (envelope-from marius) Date: Fri, 10 Sep 2004 01:34:15 +0200 From: Marius Strobl To: Clint Olsen Message-ID: <20040910013415.J69188@newtrinity.zeist.de> References: <20040909073137.GA74529@0lsen.net> <20040909073327.GA74594@0lsen.net> <20040910005023.A46342@newtrinity.zeist.de> <20040909231511.GC78471@0lsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040909231511.GC78471@0lsen.net>; from clint@0lsen.net on Thu, Sep 09, 2004 at 04:15:11PM -0700 X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.27.0.6; VDF 6.27.0.53 (host: newtrinity.zeist.de) cc: ports@freebsd.org Subject: Re: icc -fast (static) broken? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2004 23:34:31 -0000 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.). > > Hi: > > 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.