From owner-freebsd-questions@FreeBSD.ORG Wed Nov 7 02:51:24 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B16616A420 for ; Wed, 7 Nov 2007 02:51:24 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 477D013C4B6 for ; Wed, 7 Nov 2007 02:51:24 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA72pDdg014280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 6 Nov 2007 18:51:13 -0800 X-Auth-Received: from dzihan.cs.washington.edu (dzihan.cs.washington.edu [128.208.4.96]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA72pCkf027470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 6 Nov 2007 18:51:13 -0800 Message-ID: <47312820.4050504@u.washington.edu> Date: Tue, 06 Nov 2007 18:51:12 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (X11/20071003) MIME-Version: 1.0 To: questions@freebsd.org References: <20071106193829.531e3067@atomizer.opensourcebeef.net> <8cb6106e0711061731u25002f6cq1e216280d24c7bde@mail.gmail.com> In-Reply-To: <8cb6106e0711061731u25002f6cq1e216280d24c7bde@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.6.182551 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='BODY_SIZE_800_899 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Subject: Re: C compiler cannot create executables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2007 02:51:24 -0000 Josh Carroll wrote: >> configure: error: C compiler cannot create executables >> >> I googled for awhile and found the suggestion to reinstall libtool, but >> that also fails with the same error. >> > > Can you paste the config.log from the port's work source directory > (where configure is located)? > > Can you try the following and see if it compiles? > > echo '#include \nint main(void){ printf("hello world!\\n"); > return 0;}\n' > t.c ; gcc t.c -o t; ./t; rm t.c > > You should either see: > > hello world! > > Or some compiler errors/warnings/etc. > > Josh > Just do... # Exit. echo 'int main() { return 1; } ' >src.c; # Try to compile prog. gcc -O0 src.c && ./a.out && echo $?; # Toss executable, if it exists. [ -e './a.out' ] && rm ./a.out Either you'll get a compiler error, or it should print out 1. -Garrett