Help with using Autotools (GNU build system) on Mac OS X 10.6.3

Greetings All,
I have tried to install several free and open source software, which use Autotools (GNU build system) for build automation, in vain.

The "./configure" script terminates with an error, indicating that the GCC compiler does not have a library (-lposix) that is needed.


Go Trojans >./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/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 use 32 bit compile... no
checking enable lxt support... yes
checking enable lxt2 support... yes
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
Go Trojans >







Some of the contents of the "config.log" file include:

configure:2600: checking for C++ compiler version
configure:2607: g++ --version >&5
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659)
Copyright (C) 2007 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:2610: $? = 0
configure:2617: g++ -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5659~1/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c +,obj-c+ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5659)
configure:2620: $? = 0
configure:2627: g++ -V >&5
g++-4.2: argument to `-V' is missing
configure:2630: $? = 1
configure:2653: checking for C++ compiler default output file name
configure:2680: g++ conftest.cpp -lposix >&5
ld: library not found for -lposix
collect2: ld returned 1 exit status
configure:2683: $? = 1
configure:2721: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "veriwell"
| #define PACKAGE_TARNAME "veriwell"
| #define PACKAGE_VERSION "2.8.7"
| #define PACKAGE_STRING "veriwell 2.8.7"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "veriwell"
| #define VERSION "2.8.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2728: error: C++ compiler cannot create executables
See `config.log' for more details.



I cannot find a definition of the "-lposix" library in the "./configure" file, and do not know enough about Autotools (GNU build system) to modify the "./configure" file to the correct location of the library.

In addition, where can I find this "-lposix" library in my computer? "g++" is located in "/usr/bin", which only contains executables. Does this "-lposix" library exist? Does anyone else have this problem?

Thank you.

Mac Book Pro, Mac OS X (10.6.3)

Posted on Apr 12, 2010 9:41 AM

Reply
14 replies

Apr 12, 2010 10:33 AM in response to Zhiyang

Zhiyang wrote:
Greetings All,
I have tried to install several free and open source software, which use Autotools (GNU build system) for build automation, in vain.


It sounds like you haven't fully installed XCode. Did you do a full install with default settings or did you select individual components? I just downloaded and built veriwell with no problems. I don't have a posix library, but such a library shouldn't be needed on a true UNIX system such as MacOSX. It sounds like the configure script is getting into a fallback mode for Windows because it is missing some other items that it expects to be there.

Apr 12, 2010 10:13 PM in response to etresoft

How do I know if I am using the right shell?

I was using the Bash shell.

I have extracted the tar ball again, and re-ran the "configure" script in both the Bash and Tcsh shells.

And, I still get the same error message on both occasions.







I am pasting the contents of the config.log file below.


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

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

$ ./configure

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

hostname = zhiyang-ongs-macbook-pro.local
uname -m = i386
uname -r = 10.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 72 tasks, 359 threads, 2 processors
Load average: 2.13, Mach factor: 0.61
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /Applications/apps/scripts
PATH: /Applications/apps/text_editors/nedit
PATH: /sw/bin
PATH: /sw/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /usr/X11R6/bin
PATH: /Developer/Simulator/GTKwave/bin
PATH: /Developer/Simulator/Icarus/bin
PATH: /Applications/apps/sw_dev_tools-not_gnu/gnat/bin
PATH: /Applications/apps/scripts
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /Developer/Simulator/GTKwave/bin
PATH: /Developer/Simulator/Icarus/bin
PATH: /Applications/apps/sw_dev_tools-not_gnu/gnat/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /Applications/apps/scripts
PATH: /Applications/apps/text_editors/nedit
PATH: /sw/bin
PATH: /sw/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /usr/X11R6/bin
PATH: /Developer/Simulator/GTKwave/bin
PATH: /Developer/Simulator/Icarus/bin
PATH: /Applications/apps/sw_dev_tools-not_gnu/gnat/bin


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

configure:1551: checking for a BSD-compatible install
configure:1606: result: /usr/bin/install -c
configure:1617: checking whether build environment is sane
configure:1660: result: yes
configure:1725: checking for gawk
configure:1754: result: no
configure:1725: checking for mawk
configure:1754: result: no
configure:1725: checking for nawk
configure:1754: result: no
configure:1725: checking for awk
configure:1741: found /usr/bin/awk
configure:1751: result: awk
configure:1761: checking whether make sets $(MAKE)
configure:1781: result: yes
configure:1962: checking for style of include used by make
configure:1990: result: GNU
configure:2061: checking for gcc
configure:2087: result: c89
configure:2331: checking for C compiler version
configure:2334: c89 --version </dev/null >&5
c89: illegal option -- -
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2337: $? = 1
configure:2339: c89 -v </dev/null >&5
c89: illegal option -- v
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2342: $? = 1
configure:2344: c89 -V </dev/null >&5
c89: illegal option -- V
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2347: $? = 1
configure:2370: checking for C compiler default output file name
configure:2373: c89 -O2 conftest.c -lposix >&5
ld: library not found for -lposix
collect2: ld returned 1 exit status
configure:2376: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "alliance"
| #define VERSION "5.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2415: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=set
ac_cv_env_CC_value=c89
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-O2
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=c89
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ABE_DLL_VERSION=''
ABL_DLL_VERSION=''
ABT_DLL_VERSION=''
ABV_DLL_VERSION=''
ACLOCAL='${SHELL} /Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred/alliance-5 .0/missing --run aclocal-1.9'
ALCBANNER_MAJOR_VERSION=''
ALCBANNER_MINOR_VERSION=''
ALCBANNER_VERSION=''
ALLIANCE_BUILD_FALSE=''
ALLIANCE_BUILD_TRUE=''
ALLIANCE_CFLAGS=''
ALLIANCE_LIBS=''
ALLIANCE_TOP=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred/alliance-5 .0/missing --run tar'
AR=''
ATTILA_MAJOR_VERSION=''
ATTILA_MINOR_VERSION=''
ATTILA_VERSION=''
AUTOCONF='${SHELL} /Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred/alliance-5 .0/missing --run autoconf'
AUTOHEADER='${SHELL} /Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred/alliance-5 .0/missing --run autoheader'
AUTOMAKE='${SHELL} /Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred/alliance-5 .0/missing --run automake-1.9'
AUT_DLL_VERSION=''
AWK='awk'
B2F_MAJOR_VERSION=''
B2F_MINOR_VERSION=''
B2F_VERSION=''
BDD_DLL_VERSION=''
BEH_DLL_VERSION=''
BHL_DLL_VERSION=''
BOOG_MAJOR_VERSION=''
BOOG_MINOR_VERSION=''
BOOG_VERSION=''
BOOM_MAJOR_VERSION=''
BOOM_MINOR_VERSION=''
BOOM_VERSION=''
BTR_DLL_VERSION=''
BVL_DLL_VERSION=''
CC='c89'
CCDEPMODE=''
CFLAGS='-O2'
CPP=''
CPPFLAGS=''
CST_DLL_VERSION=''
CTL_DLL_VERSION=''
CTP_DLL_VERSION=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DOC_MAJOR_VERSION=''
DOC_MINOR_VERSION=''
DOC_VERSION=''
DREAL_MAJOR_VERSION=''
DREAL_MINOR_VERSION=''
DREAL_VERSION=''
ECHO='/bin/echo'
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
ELP_DLL_VERSION=''
EXEEXT=''
EXP_MAJOR_VERSION=''
EXP_MINOR_VERSION=''
EXP_VERSION=''
F77=''
FFLAGS=''
FKS_DLL_VERSION=''
FLATBEH_MAJOR_VERSION=''
FLATBEH_MINOR_VERSION=''
FLATBEH_VERSION=''
FMI_MAJOR_VERSION=''
FMI_MINOR_VERSION=''
FMI_VERSION=''
FSM_DLL_VERSION=''
FSP_MAJOR_VERSION=''
FSP_MINOR_VERSION=''
FSP_VERSION=''
FTL_DLL_VERSION=''
FVH_DLL_VERSION=''
GRAAL_MAJOR_VERSION=''
GRAAL_MINOR_VERSION=''
GRAAL_VERSION=''
INCLUDE_MOTIF=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
K2F_MAJOR_VERSION=''
K2F_MINOR_VERSION=''
K2F_VERSION=''
L2P_MAJOR_VERSION=''
L2P_MINOR_VERSION=''
L2P_VERSION=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBOBJS=''
LIBS='-lposix'
LIBTOOL=''
LINK_MOTIF=''
LINK_XPM=''
LN_S=''
LOG_DLL_VERSION=''
LOON_MAJOR_VERSION=''
LOON_MINOR_VERSION=''
LOON_VERSION=''
LTLIBOBJS=''
LVX_MAJOR_VERSION=''
LVX_MINOR_VERSION=''
LVX_VERSION=''
LYNX_MAJOR_VERSION=''
LYNX_MINOR_VERSION=''
LYNX_VERSION=''
M2E_MAJOR_VERSION=''
M2E_MINOR_VERSION=''
M2E_VERSION=''
MAKEINFO='${SHELL} /Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred/alliance-5 .0/missing --run makeinfo'
MAL_DLL_VERSION=''
MAP_DLL_VERSION=''
MBK_CUR=''
MBK_DLL_VERSION=''
MBK_REL=''
MBK_REV=''
MBK_VERSION=''
MCL_DLL_VERSION=''
MCP_DLL_VERSION=''
MEL_DLL_VERSION=''
MGL_DLL_VERSION=''
MGN_DLL_VERSION=''
MHL_DLL_VERSION=''
MIPS_ASM_MAJOR_VERSION=''
MIPS_ASM_MINOR_VERSION=''
MIPS_ASM_VERSION=''
MMG_DLL_VERSION=''
MOCHA_MAJOR_VERSION=''
MOCHA_MINOR_VERSION=''
MOCHA_VERSION=''
MSL_DLL_VERSION=''
MVG_DLL_VERSION=''
MVL_DLL_VERSION=''
NERO_MAJOR_VERSION=''
NERO_MINOR_VERSION=''
NERO_VERSION=''
OBJEXT=''
OCP_MAJOR_VERSION=''
OCP_MINOR_VERSION=''
OCP_VERSION=''
PACKAGE='alliance'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PAT2SPI_MAJOR_VERSION=''
PAT2SPI_MINOR_VERSION=''
PAT2SPI_VERSION=''
PATH_SEPARATOR=':'
PAT_DLL_VERSION=''
PGN_DLL_VERSION=''
PHL_DLL_VERSION=''
PPT_DLL_VERSION=''
PROOF_MAJOR_VERSION=''
PROOF_MINOR_VERSION=''
PROOF_VERSION=''
RANLIB=''
RCF_DLL_VERSION=''
RDS_DLL_VERSION=''
RFM_DLL_VERSION=''
RGS_DLL_VERSION=''
RING_MAJOR_VERSION=''
RING_MINOR_VERSION=''
RING_VERSION=''
RPR_DLL_VERSION=''
RTD_DLL_VERSION=''
RTL_DLL_VERSION=''
RTN_DLL_VERSION=''
RUT_DLL_VERSION=''
RWI_DLL_VERSION=''
S2R_MAJOR_VERSION=''
S2R_MINOR_VERSION=''
S2R_VERSION=''
SCAPIN_MAJOR_VERSION=''
SCAPIN_MINOR_VERSION=''
SCAPIN_VERSION=''
SCH_DLL_VERSION=''
SCL_DLL_VERSION=''
SEA_MAJOR_VERSION=''
SEA_MINOR_VERSION=''
SEA_VERSION=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SYF_MAJOR_VERSION=''
SYF_MINOR_VERSION=''
SYF_VERSION=''
TOOLSDIRS=''
VASY_MAJOR_VERSION=''
VASY_MINOR_VERSION=''
VASY_VERSION=''
VBH_DLL_VERSION=''
VBL_DLL_VERSION=''
VERSION='5.0'
VEX_DLL_VERSION=''
VPD_DLL_VERSION=''
VPN_DLL_VERSION=''
VRD_DLL_VERSION=''
VTL_DLL_VERSION=''
VVH_DLL_VERSION=''
X11_LIBS=''
XEXT_LIBS=''
XFSM_MAJOR_VERSION=''
XFSM_MINOR_VERSION=''
XFSM_VERSION=''
XGRA_MAJOR_VERSION=''
XGRA_MINOR_VERSION=''
XGRA_VERSION=''
XM_LIBS=''
XPAT_MAJOR_VERSION=''
XPAT_MINOR_VERSION=''
XPAT_VERSION=''
XPM_LIBS=''
XP_LIBS=''
XSCH_MAJOR_VERSION=''
XSCH_MINOR_VERSION=''
XSCH_VERSION=''
XT_LIBS=''
XVPN_MAJOR_VERSION=''
XVPN_MINOR_VERSION=''
XVPN_VERSION=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
YACC=''
ac_ct_AR=''
ac_ct_CC='c89'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/Applications/apps/eda/alliance_vlsi_cad_sys/download_files/untarred /alliance-5.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='$(install_sh) -d'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE "alliance"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "5.0"

configure: exit 77

Apr 13, 2010 7:00 AM in response to Zhiyang

Zhiyang wrote:
How do I know if I am using the right shell?


In an earlier post you were using a bash from /usr/local that appeared to have problems. Plus, that posix setting appears related to the shell inside the configure script. I don't understand automake any more than you do. It usually works and is very easy to use. When it doesn't work, good luck.

PATH: /sw/bin
PATH: /sw/sbin


I was afraid I was going to see something like that. You are using Fink. That is something else that, when it works, is very easy to use, but when it doesn't, good luck.

I catch a lot of flak for my Fink/MacPorts bashing. I only do it because I see so many posts very similar to yours where I can build the software easily and you mysteriously cannot. I don't know what to tell you. From what I can tell, Fink/MacPorts work fine as long as you rely on them entirely. If Fink has a veriwell package, you must use that.

I don't have Fink or MacPorts. I also have no trouble building open-source software. Maybe those two facts are related, maybe not. You could ask your question on Fink's support page, wait for someone here who uses Fink to try your problem, or uninstall Fink.

Apr 13, 2010 5:07 PM in response to etresoft

etresoft wrote:

I catch a lot of flak for my Fink/MacPorts bashing. I only do it because I see so many posts very similar to yours where I can build the software easily and you mysteriously cannot. I don't know what to tell you. From what I can tell, Fink/MacPorts work fine as long as you rely on them entirely. If Fink has a veriwell package, you must use that.

I don't have Fink or MacPorts. I also have no trouble building open-source software. Maybe those two facts are related, maybe not. You could ask your question on Fink's support page, wait for someone here who uses Fink to try your problem, or uninstall Fink.


I've decided to meet you halfway from now on on this issue.

The problem is almost always a misunderstanding by the user of what/how this stuff works (or what it does to their PATH)

Maybe the OP could just remove the /sw stuff from his path and try again.

Eric

Apr 18, 2010 7:37 AM in response to etresoft

Greetings,
I removed /sw/bin and /sw/sbin from my $PATH.

Go Trojans >$PATH
-bash: /Applications/apps/scripts:/Applications/apps/text editors/nedit:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/ bin:/usr/X11R6/bin:/Developer/Simulator/GTKwave/bin:/Developer/Simulator/Icarus/ bin:/Applications/apps/sw_dev_tools-notgnu/gnat/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/b in: No such file or directory
Go Trojans >

However, I still get the same error.

Do you still think it is because of the shell I am using?




Again, I am pasting the contents of config.log

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

It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ ./configure

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

hostname = zhiyang-ongs-macbook-pro.local
uname -m = i386
uname -r = 10.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 85 tasks, 379 threads, 2 processors
Load average: 0.42, Mach factor: 1.58
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /Applications/apps/scripts
PATH: /Applications/apps/text_editors/nedit
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /usr/X11R6/bin
PATH: /Developer/Simulator/GTKwave/bin
PATH: /Developer/Simulator/Icarus/bin
PATH: /Applications/apps/sw dev_tools-notgnu/gnat/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin


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

configure:1842: checking build system type
configure:1856: result: i686-apple-darwin10.3.0
configure:1876: checking host system type
configure:1889: result: i686-apple-darwin10.3.0
configure:1909: checking target system type
configure:1922: result: i686-apple-darwin10.3.0
configure:1966: checking for a BSD-compatible install
configure:2034: result: /usr/bin/install -c
configure:2045: checking whether build environment is sane
configure:2082: result: yes
configure:2136: checking for gawk
configure:2166: result: no
configure:2136: checking for mawk
configure:2166: result: no
configure:2136: checking for nawk
configure:2166: result: no
configure:2136: checking for awk
configure:2152: found /usr/bin/awk
configure:2163: result: awk
configure:2174: checking whether make sets $(MAKE)
configure:2196: result: yes
configure:2429: checking for gcc
configure:2456: result: c89
configure:2685: checking for C compiler version
configure:2694: c89 --version >&5
c89: illegal option -- -
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2705: $? = 1
configure:2694: c89 -v >&5
c89: illegal option -- v
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2705: $? = 1
configure:2694: c89 -V >&5
c89: illegal option -- V
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2705: $? = 1
configure:2694: c89 -qversion >&5
c89: illegal option -- q
usage: c89 [-cEgs] [-D name[=value]] [-I directory] ... [-L directory] ...
[-o outfile] [-O optlevel] [-U name]... operand ...
configure:2705: $? = 1
configure:2727: checking for C compiler default output file name
configure:2749: c89 -O2 conftest.c -lposix >&5
ld: library not found for -lposix
collect2: ld returned 1 exit status
configure:2753: $? = 1
configure:2790: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "systemc-ams"
| #define VERSION "1.0BETA1"
| #define REVISION "$Revision: 987 $"
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:2796: error: in `/data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1':
configure:2800: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac cvbuild=i686-apple-darwin10.3.0
ac cv_env_CCCset=
ac cv_env_CCCvalue=
ac cv_env_CCset=set
ac cv_env_CCvalue=c89
ac cv_env_CFLAGSset=set
ac cv_env_CFLAGSvalue=-O2
ac cv_env_CPPFLAGSset=
ac cv_env_CPPFLAGSvalue=
ac cv_env_CXXFLAGSset=
ac cv_env_CXXFLAGSvalue=
ac cv_env_CXXset=set
ac cv_env_CXXvalue=g++
ac cv_env_LDFLAGSset=
ac cv_env_LDFLAGSvalue=
ac cv_env_LIBSset=set
ac cv_env_LIBSvalue=-lposix
ac cv_env_build_aliasset=
ac cv_env_build_aliasvalue=
ac cv_env_host_aliasset=
ac cv_env_host_aliasvalue=
ac cv_env_target_aliasset=
ac cv_env_target_aliasvalue=
ac cvhost=i686-apple-darwin10.3.0
ac cv_pathinstall='/usr/bin/install -c'
ac cv_progAWK=awk
ac cv_prog_ac_ctCC=c89
ac cv_prog_make_makeset=yes
ac cvtarget=i686-apple-darwin10.3.0

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1/config/missing --run aclocal-1.8'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1/config/missing --run tar'
AR_TOOL=''
AUTOCONF='${SHELL} /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1/config/missing --run autoconf'
AUTOHEADER='${SHELL} /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1/config/missing --run autoheader'
AUTOMAKE='${SHELL} /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1/config/missing --run automake-1.8'
AWK='awk'
CC='c89'
CCDEPMODE=''
CFLAGS='-O2'
CPPFLAGS=''
CXX='g++'
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEBUG_CXXFLAGS=''
DEFS=''
DEPDIR=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EXEEXT=''
EXTRA_CXXFLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL STRIPPROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS='-lposix'
LTLIBOBJS=''
MAKEINFO='${SHELL} /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1/config/missing --run makeinfo'
OBJEXT=''
OPT_CXXFLAGS=''
PACKAGE='systemc-ams'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TARGET_ARCH=''
VERSION='1.0BETA1'
ac ctCC='c89'
ac ctCXX=''
am _fastdepCCFALSE=''
am _fastdepCCTRUE=''
am _fastdepCXXFALSE=''
am _fastdepCXXTRUE=''
am__include=''
am _leadingdot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-apple-darwin10.3.0'
build_alias=''
build_cpu='i686'
build_os='darwin10.3.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-apple-darwin10.3.0'
host_alias=''
host_cpu='i686'
host_os='darwin10.3.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install sh='/data/2010/proj/eslmodels/ams/systemc-ams-1.0BETA1/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(mkinstalldirs)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program transformname='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-apple-darwin10.3.0'
target_alias=''
target_cpu='i686'
target_os='darwin10.3.0'
target_vendor='apple'

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "systemc-ams"
#define VERSION "1.0BETA1"
#define REVISION "$Revision: 987 $"

configure: exit 77

Apr 18, 2010 7:43 AM in response to Mark Jalbert

Greetings,
I tried doing that, but my ./config files for SystemC-AMS cannot find my current copy of SystemC now.

So, it was able to find the path/library for the GCC compiler, but it can no longer find my SystemC installation.

This seems like a catch-22. If I don't use "sudo su -l", I cannot get the ./configure file to find the local copy of GCC. If I do, I cannot find the current location of the SystemC installation.

What do you suggest?

Thank you.

Apr 18, 2010 7:45 AM in response to Mark Jalbert

Here is the transcript from the Terminal.


[zhiyang-ongs-macbook-pro:esl_models/ams/systemc-ams-1.0BETA1] zhiyang% sudo su -l
Password:
zhiyang-ongs-macbook-pro:~ root# ./configure
-sh: ./configure: No such file or directory
zhiyang-ongs-macbook-pro:~ root# pwd
/var/root
zhiyang-ongs-macbook-pro:~ root# cd /data/2010/proj/esl_models/ams/systemc-ams-1.0BETA1 zhiyang-ongs-macbook-pro:systemc-ams-1.0BETA1 root# ./configurechecking build system type... i686-apple-darwin10.3.0
checking host system type... i686-apple-darwin10.3.0
checking target system type... i686-apple-darwin10.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for systemc directory... configure: WARNING: SystemC directory was not found
searched $SYSTEMC_PATH
searched $SYSTEMC_HOME
searched `pwd`/systemc-2.2
searched `pwd`/../systemc-2.2
unable to find systemc directory. use --with-systemc=<systemc_dir>
configure: error: SystemC installation root directory does not exist.
Was systemC installed correctly?
zhiyang-ongs-macbook-pro:systemc-ams-1.0BETA1 root# $path
zhiyang-ongs-macbook-pro:systemc-ams-1.0BETA1 root# $PATH
-sh: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin: No such file or directory
zhiyang-ongs-macbook-pro:systemc-ams-1.0BETA1 root# echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
zhiyang-ongs-macbook-pro:systemc-ams-1.0BETA1 root#

May 3, 2010 12:24 AM in response to Jun T.

Thank you Jun T.

I have removed the settings from my .bash_profile and .cshrc files.

However, when I run the ./configure script for UPS debugger (ups-3.38-beta2), the GCC compiler cannot compile the code.

*What shall I set the $CC macro to? gnu9x? gcc? g++?*



The transcript of my terminal session is abstracted below.

Go Trojans >./configure
checking for gcc... gnu9x
checking for C compiler default output... configure: error: C compiler cannot create executables
Go Trojans >





The contents of my .config file are given below.


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

It was created by configure, which was
generated by GNU Autoconf 2.53. Invocation command line was

$ ./configure

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

hostname = zhiyang-ongs-macbook-pro.local
uname -m = i386
uname -r = 10.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 75 tasks, 386 threads, 2 processors
Load average: 0.20, Mach factor: 1.79
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /Applications/apps/scripts
PATH: /Applications/apps/text_editors/nedit
PATH: /sw/bin
PATH: /sw/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /usr/X11R6/bin
PATH: /Developer/Simulator/GTKwave/bin
PATH: /Developer/Simulator/Icarus/bin
PATH: /Applications/apps/sw dev_tools-notgnu/gnat/bin
PATH: /Applications/apps/scripts
PATH: /Applications/apps/text_editors/nedit
PATH: /sw/bin
PATH: /sw/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin
PATH: /usr/X11R6/bin
PATH: /Developer/Simulator/GTKwave/bin
PATH: /Developer/Simulator/Icarus/bin
PATH: /Applications/apps/sw dev_tools-notgnu/gnat/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/texbin
PATH: /usr/X11/bin


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

configure:1261: checking for gcc
configure:1287: result: gnu9x
configure:1531: checking for C compiler version
configure:1534: gnu9x --version </dev/null >&5
./configure: line 1535: gnu9x: command not found
configure:1537: $? = 127
configure:1539: gnu9x -v </dev/null >&5
./configure: line 1540: gnu9x: command not found
configure:1542: $? = 127
configure:1544: gnu9x -V </dev/null >&5
./configure: line 1545: gnu9x: command not found
configure:1547: $? = 127
configure:1573: checking for C compiler default output
configure:1576: gnu9x -O2 conftest.c -lposix >&5
./configure: line 1577: gnu9x: command not found
configure:1579: $? = 127
configure: failed program was:
#line 1550 "configure"
#include "confdefs.h"

#ifdef F77 DUMMYMAIN
# ifdef __cplusplus
extern "C"
# endif
int F77 DUMMYMAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
configure:1606: error: C compiler cannot create executables

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac cv_env_CCset=set
ac cv_env_CCvalue=gnu9x
ac cv_env_CFLAGSset=set
ac cv_env_CFLAGSvalue=-O2
ac cv_env_CPPFLAGSset=
ac cv_env_CPPFLAGSvalue=
ac cv_env_CPPset=
ac cv_env_CPPvalue=
ac cv_env_LDFLAGSset=
ac cv_env_LDFLAGSvalue=
ac cv_env_build_aliasset=
ac cv_env_build_aliasvalue=
ac cv_env_host_aliasset=
ac cv_env_host_aliasvalue=
ac cv_env_target_aliasset=
ac cv_env_target_aliasvalue=
ac cv_prog_ac_ctCC=gnu9x

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""

configure: exit 77

May 3, 2010 7:12 AM in response to Zhiyang

Zhiyang wrote:
However, when I run the ./configure script for UPS debugger (ups-3.38-beta2), the GCC compiler cannot compile the code.


MacOSX is not a supported architecture for this project. If you want to use it, you'll have to hack on it. I tried autoreconf, but that failed as it usually does. I hacked the configure line with "configure --build=i386-freebsd --with-x" before I lost interest.

To give you an idea of what you are up against, the README file explicitly says to run configure and then hack up the Makefile. Good luck!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Help with using Autotools (GNU build system) on Mac OS X 10.6.3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.