Date: Thu, 19 May 2005 22:50:43 +0300 From: "Vladimir Chukharev" <chu@h33.erkki.ton.tut.fi> To: freebsd-ports@freebsd.org Subject: gcc in devel/libusb (and openoffice-devel) Message-ID: <op.sq1f2tcish9hi4@localhost>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.sq1f2tcish9hi4>