|
From: <ju...@mi...> - 2003-04-21 14:42:43
|
Hi again
OK, given you're not using aclocal or automake, I've checked a fresh copy
out of CVS. I have make links to Apple's versions of the config.guess and
config.sub files. I ran autoconf. I then ran the
./configure --with-lisp=acl --with-lisp-exec=alisp
--prefix=/Users/chris/Desktop/Matlisp/matlisp/
Command, which gave me pretty much the same output as before:
alisp --prefix=/Users/chris/Desktop/Matlisp/matlisp/
checking build system type... powerpc-apple-darwin6.5
checking host system type... powerpc-apple-darwin6.5
checking target system type... powerpc-apple-darwin6.5
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output... b.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
So, again, b.out appears, although I can't actually see that file on my
system (nor the conftest.c file) -- perhaps these get cleaned up in the
./configure... script?
One thing I have just remembered: When writing C++ code for OS X, one has
to explicitly link against libstdc++.a, which, as far as I understand, is
not the case on Linux, say. Could a similar problem be to blame here?
I have included config.log below, in case that casts more light on the
problem.
Thanks again.
Chris
-- 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.57. Invocation command line was
$ ./configure --with-lisp=acl --with-lisp-exec=alisp
--prefix=/Users/chris/Desktop/Matlisp/matlisp/
## --------- ##
## Platform. ##
## --------- ##
hostname = Totty.local.
uname -m = Power Macintosh
uname -r = 6.5
uname -s = Darwin
uname -v = Darwin Kernel Version 6.5: Mon Apr 7 17:05:38 PDT 2003;
root:xnu/xnu-344.32.obj~1/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 6.5:
Mon Apr 7 17:05:38 PDT 2003; root:xnu/xnu-344.32.obj~1/RELEASE_PPC
Kernel configured for up to 2 processors.
1 processor is physically available.
Processor type: ppc750 (PowerPC 750)
Processor active: 0
Primary memory available: 256.00 megabytes.
Default processor set: 53 tasks, 148 threads, 1 processors
Load average: 2.33, Mach factor: 0.30
unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1269: checking build system type
configure:1287: result: powerpc-apple-darwin6.5
configure:1295: checking host system type
configure:1309: result: powerpc-apple-darwin6.5
configure:1317: checking target system type
configure:1331: result: powerpc-apple-darwin6.5
configure:1452: checking for ranlib
configure:1468: found /usr/bin/ranlib
configure:1479: result: ranlib
configure:1538: checking for gcc
configure:1564: result: gcc
configure:1808: checking for C compiler version
configure:1811: gcc --version </dev/null >&5
gcc (GCC) 3.1 20020420 (prerelease)
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:1814: $? = 0
configure:1816: gcc -v </dev/null >&5
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420
(prerelease)
configure:1819: $? = 0
configure:1821: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1824: $? = 1
configure:1848: checking for C compiler default output
configure:1851: gcc -c -O2 conftest.c >&5
configure:1854: $? = 0
configure:1900: result: b.out
configure:1905: checking whether the C compiler works
configure:1911: ./b.out
./configure: ./b.out: No such file or directory
configure:1914: $? = 127
configure:1923: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=powerpc-apple-darwin6.5
ac_cv_build_alias=powerpc-apple-darwin6.5
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-c -O2'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_F77_set=set
ac_cv_env_F77_value=/sw/bin/g77
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_exeext=
ac_cv_host=powerpc-apple-darwin6.5
ac_cv_host_alias=powerpc-apple-darwin6.5
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_target=powerpc-apple-darwin6.5
ac_cv_target_alias=powerpc-apple-darwin6.5
## ----------------- ##
## Output variables. ##
## ----------------- ##
ATLAS_DIR=''
ATLAS_LIBS=''
BLAS_OBJS='dgemm.o dswap.o dtrmv.o lsame.o zdotu.o zhemv.o ztrmv.o dgemv.o
dsymv.o dtrsm.o zher2.o ztrsm.o dasum.o dger.o dsyr.o dtrsv.o
zdscal.o zher2k.o ztrsv.o daxpy.o dsyr2.o dzasum.o xerbla.o zgemm.o
zherk.o dcabs1.o dnrm2.o dsyr2k.o dznrm2.o zaxpy.o zgemv.o zscal.o
dcopy.o drot.o dsyrk.o idamax.o zcopy.o zgerc.o zswap.o ddot.o
dscal.o dtrmm.o izamax.o zdotc.o zgeru.o ztrmm.o dsymm.o'
CC='gcc'
CFLAGS='-c -O2'
CLIBS=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
F77='/sw/bin/g77'
F77_EXTRA_UNDERSCORE=''
F77_LOWER_CASE=''
F77_UNDERSCORE=''
FFLAGS=''
FLIBS=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LISPEVAL='-e'
LISPEXEC='alisp'
LTLIBOBJS=''
NO_ATLAS_LAPACK_OBJS='dgetrf.o zgetrf.o dgetrs.o zgetrs.o dlaswp.o
zlaswp.o dgesv.o zgesv.o'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
SHARED_LIB_LDFLAGS=''
SHELL='/bin/sh'
ac_ct_CC='gcc'
ac_ct_F77=''
ac_ct_RANLIB='ranlib'
bindir='${exec_prefix}/bin'
build='powerpc-apple-darwin6.5'
build_alias=''
build_cpu='powerpc'
build_os='darwin6.5'
build_vendor='apple'
datadir='${prefix}/share'
exec_prefix='NONE'
host='powerpc-apple-darwin6.5'
host_alias=''
host_cpu='powerpc'
host_os='darwin6.5'
host_vendor='apple'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/Users/chris/Desktop/Matlisp/matlisp/'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
srcdir='.'
sysconfdir='${prefix}/etc'
target='powerpc-apple-darwin6.5'
target_alias=''
target_cpu='powerpc'
target_os='darwin6.5'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 1
On 21 Apr 2003, Raymond Toy wrote:
> >>>>> "Chris" == junk2 <ju...@mi...> writes:
>
> Chris> 1. I was using one of the Matlisp releases. I've now checked the latest
> Chris> version of Matlisp out of CVS.
>
> Good.
>
> Chris> 2. One of the problems I found was regarding the config.sub and
> Chris> config.guess files. Apple provides version of these files so porting is
> Chris> easier (see:
> Chris> developer.apple.com/techpubs/macosx/Darwin/GettingStarted/PortingUNIX/compiling/chapter_3_section_8.html).
> Chris> So I did:
>
> I'll take a look at this and see if we can use these instead for the
> other supported platforms.
>
> Chris> 3. Trying to do the aclocal, autoconf, automake sequence, I got complains
> Chris> about missing AM_INIT_AUTOMAKE, ./aclocal.m4, ./mkinstalldirs and
> Chris> ./missing. I copied aclocal.m4, mkinstalldirs and missing from a C++
>
> We don't use aclocal or automake. Running autoconf should be enough.
> I don't know what will happen if you run aclocal and automake.
>
> Chris> [snip]
> Chris> Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420
> Chris> (prerel
> Chris> ease)
> Chris> configure:1819: $? = 0
> Chris> configure:1821: gcc -V </dev/null >&5
> Chris> gcc: argument to `-V' is missing
> Chris> configure:1824: $? = 1
> Chris> configure:1848: checking for C compiler default output
> Chris> configure:1851: gcc -c -O2 conftest.c >&5
> Chris> configure:1854: $? = 0
> Chris> configure:1900: result: b.out
> Chris> configure:1905: checking whether the C compiler works
> Chris> configure:1911: ./b.out
> Chris> ./configure: ./b.out: No such file or directory
>
> Can you figure this out? Does the compiler really put the executable
> in b.out instead of a.out?
>
> Ray
>
|