ppc-darwin, failed compile

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ppc-darwin, failed compile

Jonas Hansbo
I downloaded QuantLib-0.2.0 (Unix version) and attempted to compile for
Mac OS X (=BSD 4.4). It failed.
Jonas

localhost> ./configure
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for gcc... no
checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc
checking for g++... no
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc
checking build system type... powerpc-apple-darwin1.4
checking host system type... powerpc-apple-darwin1.4
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic Mach-O
dynamically linked shared library
checking command to parse /usr/bin/nm -p output... ok
checking how to run the C++ preprocessor... c++ -E
checking for dlfcn.h... no
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for objdir... .libs
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... no
checking if we can lock with hard links... yes
checking if cc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin1.4 dyld
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for sed... /usr/bin/sed
checking if C++ compiler supports namespaces (required)... yes
checking if C++ environment has working string class (required)... yes
checking for math.h... yes
checking for cmath... yes
checking for ctype.h... yes
checking for cctype... yes
checking for ctime... yes
checking for time.h... yes
checking for limits... no
checking for climits... yes
checking for limits.h... yes
checking for float.h... yes
checking if C++ environment has sqrt... found in std
checking if C++ environment has fabs... found in std
checking if C++ environment has exp... found in std
checking if C++ environment has log... found in std
checking if C++ environment has sin... found in std
checking if C++ environment has cos... found in std
checking if C++ environment has pow... found in std
checking if C++ environment has modf... found in std
checking if C++ environment has toupper... found in std
checking if C++ environment has strlen... found in std
checking if C++ environment has tolower... found in std
checking if C++ environment has clock... found in std
checking if C++ environment has time... found in std
checking if C++ environment has max... found in std
checking if C++ environment has min... found in std
checking if C++ environment has iterator... not found
checking if C++ environment has iterator_traits... found in std
configure: creating ./config.status
config.status: creating Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Calendars/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/CashFlows/Makefile
sed: sed: 40: /tmp/cs21675-2472/subs-1.sed: 3:
/tmp/cs21675-2472/subs-2.sed: invalid command code j
unescaped newline inside substitute pattern
config.status: creating ql/DayCounters/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/FiniteDifferences/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Indexes/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Instruments/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Math/Makefile
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
config.status: creating ql/MonteCarlo/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Patterns/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Pricers/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Solvers1D/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/TermStructures/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/Utilities/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating Examples/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating Examples/Parities/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating Examples/DiscreteHedging/Makefile
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating quantlib-config
sed: 40: /tmp/cs21675-2472/subs-1.sed: unescaped newline inside
substitute pattern
sed: 3: /tmp/cs21675-2472/subs-2.sed: invalid command code j
config.status: creating ql/config.hpp
localhost> make clean
make: *** Warning: File `Makefile' has modification time in the future
(2001-10-25 18:50:55 > 2001-10-25 18:50:44)
make: *** No rule to make target `clean'.  Stop.
localhost> make
make: *** Warning: File `Makefile' has modification time in the future
(2001-10-25 18:50:55 > 2001-10-25 18:50:49)
make: *** No targets.  Stop.
localhost>
Reply | Threaded
Open this post in threaded view
|

Re: ppc-darwin, failed compile

Ferdinando Ametrano-7
At 06:59 PM 10/25/01 +0200, you wrote:
 >I downloaded QuantLib-0.2.0 (Unix version) and attempted to compile for
Mac OS X
 >(=BSD 4.4). It failed.

Thank you Jonas.
Would you please report if it fails also using the latest CVS snapshot?
If you prefer not to use CVS you can download a recent snapshot from
http://quantlib.org/AutomatedBuilds/QuantLib/

thank you in advance

ciao -- Nando



Reply | Threaded
Open this post in threaded view
|

Re: ppc-darwin, failed compile

Luigi Ballabio-4
At 11:42 AM 10/26/01 +0200, Ferdinando Ametrano wrote:
>At 06:59 PM 10/25/01 +0200, you wrote:
> >I downloaded QuantLib-0.2.0 (Unix version) and attempted to compile for
> Mac OS X
> >(=BSD 4.4). It failed.
>
>Thank you Jonas.
>Would you please report if it fails also using the latest CVS snapshot?

Never mind the CVS snapshot, it would fail just the same.
Open the config.status that ./configure created. There will be a bunch of
lines in the middle of it which are fed to sed and look like the ones below:

s,@ACLOCAL@,${SHELL} ~/QuantLib-0.2.0/config
/home/users/l/lb/lballabio/QuantLib-0.2.0/config/missing --run aclocal,;t t

which for some reason are split over two lines. Is there any
autoconf/automake expert around here which knows why this happens and how
not to make it happen?

Edit the file and join the lines so that each sed command is on one line.
After that I've been able to run

localhost> ./config.status

which created the makefiles.

All is not well, though---I then ran make, and the files compiled, but the
final link failed with a whole bunch of multiple definition errors. From
the look of them, it seems to me that for some reason the compiler failed
to recognize inline declarations, so that the corresponding methods were
defined in each unit including the corresponding header. How this happens
beats me.
Is there any cc/darwin expert around here which knows why this happens and
how not to make it happen?

Sorry this doesn't help much,
                                 Luigi