Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20276 closed defect (invalid)

C compiler cannot create executables

Reported by: macports@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port:

Description (last modified by blb@…)

I am trying to use MacPorts to install mysql.

I have xcode 3.0, x11 XQuartz 2.1.6 and MacPorts 1.710 installed.

$PATH: /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/ local/bin:/usr/X11/bi

When I sudo port install mysql5-server

I receive:

--->  Configuring mysql5
Error: Target org.macports.configure returned: configure failure:
shell command " cd "/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql5/
work/mysql-5.0.83" && ./configure --prefix=/opt/local --mandir=/opt/
local/share/man --infodir=/opt/local/share/info --localstatedir=/opt/
local/var/db/mysql5 --libdir=/opt/local/lib/mysql5 --bindir=/opt/local/
lib/mysql5/bin --includedir=/opt/local/include/mysql5 --datadir=/opt/
local/share/mysql5 --sysconfdir=/opt/local/etc/mysql5 --with-zlib-dir=/
opt/local --with-openssl=/opt/local --with-extra-charsets=complex --
with-federated-storage-engine --with-unix-socket-path=/opt/local/var/
run/mysql5/mysqld.sock --with-mysqld-user=mysql --without-bench --
enable-thread-safe-client --without-readline " returned error 77
Command output: checking build system type... i386-apple-darwin9.7.0
checking host system type... i386-apple-darwin9.7.0
checking target system type... i386-apple-darwin9.7.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking "character sets"... default: latin1, collation:
latin1_swedish_ci; compiled in: latin1 latin1 utf8 big5 cp1250 cp932
eucjpms euckr gb2312 gbk latin1 latin2 sjis tis620 ucs2 ujis utf8
checking whether to compile national Unicode collations... yes
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) awk
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name...
configure: error: in `/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql5/
work/mysql-5.0.83':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Error: The following dependencies failed to build: mysql5
Error: Status 1 encountered during processing.

In fact I get the error:

Error: Target org.macports.configure returned: configure failure

whenever I use MacPorts.

Would very much appreciate help with this,

regards,

Mike

Change History (9)

comment:1 Changed 15 years ago by wsiegrist@…

Owner: changed from macports-tickets@… to ryandesign@…
Port: mysql5 added
Summary: mysql5-server install configure failuremysql5 install configure failure
Type: requestdefect

By the way, you should probably upgrade Xcode to 3.1.3 whether it fixes this or not... Assigning to maintainer.

comment:2 Changed 15 years ago by macports@…

I have upgraded xcode as suggested. Same problem. Thanks for the help.

comment:3 Changed 15 years ago by blb@…

Description: modified (diff)

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

"configure: error: C compiler cannot create executables" almost always means Xcode is not installed properly, or at all. The odd bit here is that it's failing while working on mysql5 -- which means it already successfully installed mysql5's dependencies zlib, openssl, readline, ncurses, and ncursesw. I suppose it's possible those dependencies were installed some time earlier when Xcode was installed properly, then Xcode was uninstalled, then you tried to install mysql5?

Can you please show me the output of this command on your system, which should show us what C compilers you have:

ls -l /usr/bin/gcc*

I also noticed "/usr/local/bin" in your PATH. Although MacPorts does not use your PATH while installing ports, /usr/local is a special location and software will often look there anyway, which is why we recommend you keep /usr/local empty if you want to use MacPorts. What is in your /usr/local?

comment:5 Changed 15 years ago by macports@…

Many thanks for the help.

I did not install any of the dependencies earlier. The installation of Leopard comes from an Install and Archive I did. Is this a completely clean install? Could this be a problem?

I do not have /usr/local/bin on my system. Not sure how to remove it on an initial search, but I will remove it.

In /usr/local there are 2 directories - include and lib

include 
ls - A:
fuse fuse.h
lib
ls -A
libfuse.0.dylib			
libfuse.dylib			
libfuse_ino64.2.dylib		
libhelium_mac.a
libfuse.2.7.3.dylib		
libfuse.la			
libfuse_ino64.dylib		
pkgconfig
libfuse.2.dylib			
libfuse_ino64.2.7.3.dylib	
libfuse_ino64.la

Output of ls -l /usr/bin/gcc*:

lrwxr-xr-x  1 root  wheel       7 12 Jul 20:43 /usr/bin/gcc -> gcc-4.0
-rwxr-xr-x  1 root  wheel   93088  5 Feb 08:00 /usr/bin/gcc-4.0
-rwxr-xr-x  1 root  wheel  105680 28 Apr 05:47 /usr/bin/gcc-4.2

Thanks again for the help. I hope this sheds some light on the situation,

many thanks,

Mike

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Looks like the C compiler is present. Not sure why it cannot create executables then. Could you attach the config.log from one of the failed attempts?

comment:7 in reply to:  5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to macports@…:

I did not install any of the dependencies earlier.

And yet, MacPorts believes they are installed, otherwise mysql5 could not begin to install. What does "port installed" show?

The installation of Leopard comes from an Install and Archive I did. Is this a completely clean install? Could this be a problem?

I don't know what all an archive and install archives. You may want to try completely uninstalling MacPorts and any installed ports (following the instructions in the FAQ) and then reinstalling them.

comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

If this is still a problem, please let us know.

comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: mysql5 removed
Summary: mysql5 install configure failureC compiler cannot create executables
Note: See TracTickets for help on using tickets.