Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 21, 2005, 10:48 AM   #1
jer2eydevil88
macrumors regular
 
Join Date: Feb 2004
Location: USA
Send a message via AIM to jer2eydevil88
C Compiler won't create executable

I am attempting to install Gaim on my new mac mini. So I install XCode for os 10.3 and now supposedly i have developer tools. Well look i'm new to both programming and mac os x the only practice I have with this is 1 year of C++ using Visual Studio and a bunch of time spent messing with linux that usually ended in a format and a reinstall of windows. So now that you know i'm the lame duck windows user please take pity on me.

After reading the errors below can someone tell me how to enable my compiler to create executables. (or if someone has compiled gaim for mac *any version here people* please share as I hate ichat its bubbly... and stuff)

Here is the log file generated by gaim as i attempt to compile it.

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gaim configure 1.1.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = dhcp-140-270.sawh.uc.edu
uname -m = Power Macintosh
uname -r = 7.7.1
uname -s = Darwin
uname -v = Darwin Kernel Version 7.7.1: Mon Nov 29 19:34:12 PST 2004; root:xnu/xnu-517.10.5.obj~2/RELEASE_PPC 

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
	 Darwin Kernel Version 7.7.1:
Mon Nov 29 19:34:12 PST 2004; root:xnu/xnu-517.10.5.obj~2/RELEASE_PPC


Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc7450 (PowerPC 7450)
Processor active: 0
Primary memory available: 512.00 megabytes.
Default processor set: 58 tasks, 160 threads, 1 processors
Load average: 0.91, Mach factor: 0.38
unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1601: checking build system type
configure:1619: result: powerpc-apple-darwin7.7.1
configure:1627: checking host system type
configure:1641: result: powerpc-apple-darwin7.7.1
configure:1649: checking target system type
configure:1663: result: powerpc-apple-darwin7.7.1
configure:1693: checking for a BSD-compatible install
configure:1748: result: /usr/bin/install -c
configure:1759: checking whether build environment is sane
configure:1802: result: yes
configure:1867: checking for gawk
configure:1896: result: no
configure:1867: checking for mawk
configure:1896: result: no
configure:1867: checking for nawk
configure:1896: result: no
configure:1867: checking for awk
configure:1883: found /usr/bin/awk
configure:1893: result: awk
configure:1903: checking whether make sets $(MAKE)
configure:1923: result: yes
configure:2096: checking for sed
configure:2114: found /usr/bin/sed
configure:2126: result: /usr/bin/sed
configure:2186: checking for gcc
configure:2202: found /usr/bin/gcc
configure:2212: result: gcc
configure:2456: checking for C compiler version
configure:2459: gcc --version </dev/null >&5
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2462: $? = 0
configure:2464: gcc -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
configure:2467: $? = 0
configure:2469: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2472: $? = 1
configure:2495: checking for C compiler default output file name
configure:2498: gcc    conftest.c  >&5
ld: can't locate file for: -lcrt1.o
configure:2501: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "gaim"
| #define PACKAGE_TARNAME "gaim"
| #define PACKAGE_VERSION "1.1.1"
| #define PACKAGE_STRING "gaim 1.1.1"
| #define PACKAGE_BUGREPORT "gaim-devel@lists.sourceforge.net"
| #define PACKAGE "gaim"
| #define VERSION "1.1.1"
| #define CONFIG_ARGS ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2540: error: C compiler cannot create executables
See `config.log' for more details.

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define CONFIG_ARGS ""
#define PACKAGE "gaim"
#define PACKAGE_BUGREPORT "gaim-devel@lists.sourceforge.net"
#define PACKAGE_NAME "gaim"
#define PACKAGE_STRING "gaim 1.1.1"
#define PACKAGE_TARNAME "gaim"
#define PACKAGE_VERSION "1.1.1"
#define VERSION "1.1.1"

configure: exit 77
jer2eydevil88 is offline   0 Reply With Quote
Old Jan 21, 2005, 10:52 AM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
The c compiler certainly can produce executables! I think configure needs a kick. Some instructions on compiling gaim here.
robbieduncan is offline   0 Reply With Quote
Old Jan 26, 2005, 12:26 AM   #3
therevolution
macrumors 6502
 
Join Date: May 2003
Fink is handy for installing lots of different apps, including gaim. Once it's installed (directions are on the website), you just type "fink install gaim" and, after a short wait, you're done. Fink doesn't always have the latest version of gaim available, but you said that's okay with you, so give it a shot.
therevolution is offline   0 Reply With Quote
Old May 3, 2007, 05:28 AM   #4
cwittenb
macrumors newbie
 
Join Date: May 2007
some idea

Although the thread is quite old, wanted to post my solution here, as
I ran about this error message today.
On my Tiger V.10.9.4 it seems that Xcode has set gcc v.3.22
to the default.
If I set the compiler to 4.0 it seems to create the executables as requested.

In the terminal: $ sudo gcc_select 4.0

Maybe this is still of a help to some people out there.
cucwittenb.
cwittenb is offline   0 Reply With Quote
Old May 3, 2007, 10:44 AM   #5
GeeYouEye
macrumors 68000
 
GeeYouEye's Avatar
 
Join Date: Dec 2001
Location: State of Denial
Send a message via AIM to GeeYouEye Send a message via Yahoo to GeeYouEye
Quote:
Originally Posted by cwittenb View Post
Although the thread is quite old, wanted to post my solution here, as
I ran about this error message today.
On my Tiger V.10.9.4 it seems that Xcode has set gcc v.3.22
to the default.
If I set the compiler to 4.0 it seems to create the executables as requested.

In the terminal: $ sudo gcc_select 4.0

Maybe this is still of a help to some people out there.
cucwittenb.
Argh... thanks for solving that. I was wondering why I was having problems compiling on the command line when it worked fine in Xcode... it never occurred to me that Apple might select a different version by default.
__________________
I bring order to chaos. You are in chaos Windows, you are the contradiction, a bug wishing to be an OS.
Visit Softyards Software
NEW DEFINITION OF GEEK
Like politics, free speech, computers, entertainment, and more? Join us at Wordforge.net
GeeYouEye is offline   0 Reply With Quote
Old Dec 1, 2010, 04:26 PM   #6
monie
macrumors newbie
 
Join Date: Dec 2010
Hi,
Thanks to everyone who posted. I've been struggling with CLISP's configure for a few hours now. IT WORKED IT WORKED AND I'M SO HAPPY.

Sorry, I had to get that out of my system. If you're having the same problem, I recommend just getting Fink (hey, it might be useful in the future, anyway) rather than try to debug configure.

I also had a lot of trouble getting Xcode to be my friend. Fink recommends which version of Xcode to get under Additional Things to Install according to your Mac OS version here
http://www.finkproject.org/download/...php?phpLang=en
and it would've saved me a helluvalotta time had I read that before trying to upgrade my OS to get the newest version, giving up, and then installing a too-early version and trying to get everything to work.

You can download earlier versions of Xcode here:
http://connect.apple.com
You'll need to register, though it's free.

If your configure file is wacky, I saw some people who just made another one with autoconf. It didn't work with CLISP, but if you want to give it a shot, here is a tutorial:
http://mij.oltrelinux.com/devel/autoconf-automake/
monie is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: Finder won't let me create new tags bedifferent OS X Mavericks (10.9) 0 Sep 24, 2013 09:44 PM
Bootcamp won't create partition on SSD MUrhino OS X 10.8 Mountain Lion 2 Aug 5, 2013 10:20 PM
LionDiskmaker won't create 10.9 USB mmomega OS X Mavericks (10.9) 15 Jun 19, 2013 11:28 PM
new objective C-class won't create .h file OriginalJef iPhone/iPad Programming 2 Mar 3, 2013 03:24 PM
iTunes won't let me create an Apple ID? 2012Tony2012 Mac Applications and Mac App Store 2 Jan 8, 2013 05:35 PM

Forum Jump

All times are GMT -5. The time now is 11:30 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC