[m-dev.] MAC OS X Success!

Terrence Brannon princepawn at earthlink.net
Sat Jan 3 11:49:55 AEST 1970


Fergus Henderson writes:
 > On 15-Apr-2001, Terrence Brannon <princepawn at earthlink.net> wrote:
 > > -- I did have to go an run ranlib on several libraries after typing make
 > > install_main though. 
 > 
 > That is almost certainly due to a problem detecting ranlib during
 > configuration.  Could you please post the contents of config.log and
 > configure.log?

config.log:

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

configure:1334: gcc -E conftest.c
configure:1413: gcc -E -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:1409: undefined type, found `Syntax'
configure:1409: illegal external declaration, missing `;' after `Error'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
configure:1428: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:1471: gcc -c -O -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c 1>&5
configure:1508: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -lm  -L/usr/local/lib  1>&5
configure:1500: warning: conflicting types for built-in function `sin'
configure:1728: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1728: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1728: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
/usr/bin/ld: Undefined symbols:
_memalign
configure:1728: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1728: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1728: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1779: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1779: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1779: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1779: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1779: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1779: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1830: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:1830: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
/usr/bin/ld: Undefined symbols:
__vsnprintf
configure:1864: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:1901: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:1938: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:1934: sys/siginfo.h: No such file or directory
configure:1975: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2012: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2008: ucontext.h: No such file or directory
configure:2048: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2044: sys/ucontext.h: No such file or directory
configure:2086: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2082: asm/sigcontext.h: No such file or directory
configure:2123: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2160: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2197: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2234: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2271: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:2318: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:2371: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:2343: undefined type, found `siginfo_t'
configure:2358: undefined type, found `siginfo_t'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
configure:2343: parse error before `siginfo_t'
configure: In function `main':
configure:2347: `SA_SIGINFO' undeclared (first use in this function)
configure:2347: (Each undeclared identifier is reported only once
configure:2347: for each function it appears in.)
configure:2348: structure has no member named `sa_sigaction'
configure: At top level:
configure:2358: parse error before `siginfo_t'
configure: In function `handler':
configure:2359: `signum' undeclared (first use in this function)
configure:2360: `info' undeclared (first use in this function)
configure:2447: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
/usr/bin/ld: Undefined symbols:
_MR_GET_FAULT_ADDR
configure:2517: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
/usr/bin/ld: Undefined symbols:
_MR_GET_FAULT_ADDR
configure:2692: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:2671: undefined type, found `siginfo_t'
configure:2686: undefined type, found `siginfo_t'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
configure:2671: parse error before `siginfo_t'
configure: In function `main':
configure:2674: `SA_SIGINFO' undeclared (first use in this function)
configure:2674: (Each undeclared identifier is reported only once
configure:2674: for each function it appears in.)
configure: At top level:
configure:2686: parse error before `siginfo_t'
configure: In function `handler':
configure:2687: `signum' undeclared (first use in this function)
configure:2688: `info' undeclared (first use in this function)
configure:2917: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3028: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3066: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3121: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3176: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3234: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3289: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3339: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3383: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3420: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3473: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3512: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3551: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure: In function `main':
configure:3544: warning: use of `long double' type; its size may change in a future release
configure:3544: warning: (Long double usage is reported only once for each file.
configure:3544: warning: To disable this warning, use -Wno-long-double.)
configure:3594: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3637: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3727: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3769: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3933: gcc -fno-defer-pop -fno-function-cse -fno-gcse -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:3897: illegal expression, found `&&'
configure:3898: illegal statement, missing `identifier' after `goto'
configure:3898: syntax error, missing `;' after `*'
configure:3898: illegal expression, found `&&'
configure:3903: illegal statement, missing `identifier' after `goto'
configure:3903: syntax error, missing `;' after `*'
configure:3906: illegal expression, found `&&'
configure:3907: illegal statement, missing `identifier' after `goto'
configure:3907: syntax error, missing `;' after `*'
configure:3907: illegal expression, found `&&'
configure:3912: illegal statement, missing `identifier' after `goto'
configure:3912: syntax error, missing `;' after `*'
configure:3918: illegal expression, found `&&'
configure:3919: illegal statement, missing `identifier' after `goto'
configure:3919: syntax error, missing `;' after `*'
configure:3919: illegal expression, found `&&'
configure:3921: illegal statement, missing `identifier' after `goto'
configure:3921: syntax error, missing `;' after `*'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
configure:4104: gcc  -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
runtime/mercury_regs.h:108: "USE_GCC_GLOBAL_REGISTERS not yet supported on this machine."
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
configure:4157: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
/usr/bin/as conftest.s
conftest.s:4:Invalid mnemonic 'foo(x)'
configure:4756: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
runtime/mercury_regs.h:108: "USE_GCC_GLOBAL_REGISTERS not yet supported on this machine."
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
configure:5071: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib  1>&5
configure:5122: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -lsocket  -L/usr/local/lib  1>&5
/usr/bin/ld: can't locate file for: -lsocket
configure:5163: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -lnsl  -L/usr/local/lib  1>&5
/usr/bin/ld: can't locate file for: -lnsl
configure:5354: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib    1>&5
In file included from configure:5214:
/usr/include/arpa/inet.h:66: warning: `struct in_addr' declared inside parameter list
/usr/include/arpa/inet.h:66: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/include/arpa/inet.h:67: warning: `struct in_addr' declared inside parameter list
/usr/include/arpa/inet.h:67: warning: parameter has incomplete type
/usr/include/arpa/inet.h:69: warning: parameter has incomplete type
/usr/include/arpa/inet.h:71: warning: parameter has incomplete type
configure:5448: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:5444: dlfcn.h: No such file or directory
configure:5491: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -ldl  -L/usr/local/lib  1>&5
/usr/bin/ld: can't locate file for: -ldl
configure:5545: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib   1>&5
/usr/bin/ld: Undefined symbols:
_dlopen
configure:5545: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib   1>&5
/usr/bin/ld: Undefined symbols:
_dlclose
configure:5545: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib   1>&5
/usr/bin/ld: Undefined symbols:
_dlsym
configure:5545: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -L/usr/local/lib   1>&5
/usr/bin/ld: Undefined symbols:
_dlerror
configure:5618: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:5614: readline/readline.h: No such file or directory
configure:5654: gcc -E -traditional-cpp -I/usr/local/include -Iruntime -Iruntime/machdeps  conftest.c >/dev/null 2>conftest.out
configure:5650: readline/history.h: No such file or directory
configure:5700: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -ltermcap  -L/usr/local/lib  1>&5
/usr/bin/ld: can't locate file for: -ltermcap
configure:5734: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -lcurses  -L/usr/local/lib  1>&5
configure:5811: gcc -o conftest -O -I/usr/local/include -Iruntime -Iruntime/machdeps   conftest.c -lreadline -lcurses -L/usr/local/lib  1>&5
/usr/bin/ld: can't locate file for: -lreadline


===== configure.log

loading cache ./config.cache
checking host system type... powerpc-unknown-none
looking for an already installed Mercury compiler to bootstrap with...
checking for mmc... no
checking for GCC source directory... not_found
checking whether to enable the GCC back-end interface... no
checking whether to enable the Aditi back-end... yes
looking for GNU Make...
checking for gmake... gmake
found GNU Make: gmake
looking for a way to create named pipes...
checking for mkfifo... /usr/bin/mkfifo
looking for a way to create temporary files...
checking for mktemp... no
checking for install-info... no
checking for texi2dvi... no
checking for dvips... no
checking for makeinfo... no
checking for info... no
checking for perl... /usr/bin/perl
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E -traditional-cpp
checking return type of signal handlers... void
checking for -lm... yes
checking for use of a Microsoft compiler... no
checking for ranlib... ranlib
checking for ilasm... no
checking for Microsoft.NET Framework SDK... no
checking for sysconf... yes
checking for getpagesize... yes
checking for memalign... no
checking for mprotect... yes
checking for sigaction... yes
checking for setitimer... yes
checking for strerror... yes
checking for memmove... yes
checking for dup... yes
checking for fileno... yes
checking for fdopen... yes
checking for fstat... yes
checking for vsnprintf... yes
checking for _vsnprintf... no
checking for unistd.h... yes
checking for sys/wait.h... yes
checking for sys/siginfo.h... no
checking for sys/signal.h... yes
checking for ucontext.h... no
checking for sys/ucontext.h... no
checking for asm/sigcontext.h... no
checking for sys/param.h... yes
checking for sys/time.h... yes
checking for sys/times.h... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for `sigaction' field name... checking whether cross-compiling... no
sa_handler
checking for working `sigcontext_struct' in second arg... no
checking for working `sigcontext_struct' in third arg... no
checking for `siginfo_t'... no
checking for an integer type with the same size as a pointer... int
checking for an integer type of at least 64 bits... long long
checking for an integer type of at least 32 bits... int
checking for an integer type of at least 16 bits... short
checking the number of low tag bits available... 2
checking the number of bytes per word... 4
checking the number of words in a synchronization term... 13
checking the number of bits per word... 32
checking whether we can use unboxed floats... no
checking whether float is 64-bit... no
checking whether double is 64-bit... yes
checking whether long double is 64-bit... yes
checking whether architecture is big-endian... yes
checking whether architecture is little-endian... no
checking return values of system... yes
checking to see if we can handle contexts blocking on IO... yes
checking whether we can use gcc labels... no
checking whether we can use global registers without gcc labels... no
checking whether we can support profiling on this system... yes
using `GRADE=none.gc' to compile the compiler
using `DEFAULT_GRADE=none.gc' as the default grade for applications
using `LIBGRADES=  none.gc.tr.debug hlc.gc ' as the set of library grades to install
checking whether the assembler does not handle .type... no
checking for as... /usr/bin/as
checking whether the assembler does full preprocessing... no
checking whether structure assignment conflicts with global registers... yes
checking whether Mercury supports shared libraries on this system... no
checking for struct tms and times function... yes
checking for -lsocket... no
checking for -lnsl... no
checking whether we can use sockets (for Morphine)... yes
checking whether to enable the external debugger... yes
checking for dlfcn.h... no
checking for -ldl... no
checking for dlopen... no
checking for dlclose... no
checking for dlsym... no
checking for dlerror... no
checking whether to enable the new MercuryFile struct... no
checking for readline/readline.h... no
checking for readline/history.h... no
looking for termcap or curses (needed by readline)...
checking for -ltermcap... no
checking for -lcurses... yes
checking for -lreadline... no
checking whether any C files need to be rebuilt...
no - they are compatible with autoconfigured settings
updating cache ./config.cache
creating ./config.status
creating Mmake.common
creating scripts/Mmake.vars
creating scripts/mmc
creating scripts/mprof
creating scripts/mercury_update_interface
creating scripts/mgnuc
creating scripts/ml
creating scripts/mmake
creating scripts/c2init
creating scripts/mdb
creating scripts/mdbrc
creating scripts/sicstus_conv
creating scripts/mkfifo_using_mknod
creating bindist/bindist.build_vars
creating runtime/mercury_conf.h




 > 
 > > -- also, hello_world (from rbeck's excellent tutorial) comes out as a
 > >    3 megabyte file!
 > 
 > The real fix for this is to support shared libraries.
 > But there are some much easier things you can do which may
 > improve things a lot:
 > (1) Try using `strip' on the executable.
 > (2) Build it in grade hlc.gc, it'll probably be 2-3 times smaller.
 > 	mmake hello_world.clean
 > 	mmake GRADE=hlc.gc hello_world.depend
 > 	mmake GRADE=hlc.gc hello_world
 >     or just
 >         mmc -H hello
 > 
 > -- 
 > Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
 >                                     |  of excellence is a lethal habit"
 > WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
 > --------------------------------------------------------------------------
 > mercury-developers mailing list
 > Post messages to:       mercury-developers at cs.mu.oz.au
 > Administrative Queries: owner-mercury-developers at cs.mu.oz.au
 > Subscriptions:          mercury-developers-request at cs.mu.oz.au
 > --------------------------------------------------------------------------

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list