From owner-freebsd-ports@FreeBSD.ORG Thu May 19 19:50:47 2005 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 4745E16A4CE for ; Thu, 19 May 2005 19:50:47 +0000 (GMT) Received: from h33.erkki.ton.tut.fi (h33.erkki.ton.tut.fi [193.166.84.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE62443D77 for ; Thu, 19 May 2005 19:50:46 +0000 (GMT) (envelope-from chu@h33.erkki.ton.tut.fi) Received: from [10.10.1.4] (helo=localhost) by h33.erkki.ton.tut.fi with esmtp (Exim 4.50 (FreeBSD)) id 1DYrAy-000Ikc-KB for freebsd-ports@freebsd.org; Thu, 19 May 2005 22:59:24 +0300 Date: Thu, 19 May 2005 22:50:43 +0300 To: freebsd-ports@freebsd.org From: "Vladimir Chukharev" Organization: @home Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.0 (FreeBSD, build 1095) Subject: gcc in devel/libusb (and openoffice-devel) 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, 19 May 2005 19:50:47 -0000 Hi, For quite long time, not less than a month, on upgrading devel/libusb (and openoffice-devel) I got a strange error: C compiler cannot create executables (see below). A small investigation shows that the cause was the line in /etc/make.conf CPUTYPE?=pentium3m (I have pentium-m actually, but it won't boot if kernel or world are build for pentium-m, and pentium3m seems to me the closest to pentium-m.) The reason is that gcc32 does not support pentium3m (nor pentium-m, FWIW). When I changed to pentium3, all went fine... I wonder now, is it easy to add some sanity check of the CPUTYPE values, because now the error message is not clear. Perhaps, this can be done globally, in bsd.*.mk ? chu@chu:~ 21:48:57 $ sudo limits -m 128m -d 128m -s 128m nice portupgrade -m BATCH=yes -DkwR libusb Password: ---> Upgrading 'libusb-0.1.7_1' to 'libusb-0.1.10a' (devel/libusb) ---> Building '/usr/ports/devel/libusb' with make flags: BATCH=yes ===> libusb-0.1.10a depends on executable: gcc32 - found ===> Configuring for libusb-0.1.10a configure: WARNING: you should use --build, --host, --target checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking build system type... i386-portbld-freebsd5.4 checking host system type... i386-portbld-freebsd5.4 checking for style of include used by make... GNU checking for i386-portbld-freebsd5.4-gcc... gcc32 checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. ===> Script "configure" failed unexpectedly. Please report the problem to johnjen@reynoldsnet.org [maintainer] and attach the "/usr/ports/devel/libusb/work/libusb-0.1.10a/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 Stop in /usr/ports/devel/libusb. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade31158.0 make BATCH=yes ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! devel/libusb (libusb-0.1.7_1) (configure error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed Best regards, -- V.Chukharev