automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem compiling on DEC with dependencies (cxx -M)


From: Patrick Guio
Subject: problem compiling on DEC with dependencies (cxx -M)
Date: Fri, 3 Nov 2000 16:41:42 +0100 (CET)

Dear all
I am not sure if this is to be adressed to libtool or maybe automake
since the problem might come from depcom...
Anyway I am trying to build a c++ library using libtool on a 
alphaev6-dec-osf5.0 
using cxx.

These set up should allow to archive correctly

# The archiver.
AR="ar"
AR_FLAGS="-rv"
RANLIB="ar ts"
old_archive_cmds="\$AR \$AR_FLAGS \$oldlib 
\${libname}_la/*.o\$oldobjs\$old_deplibs~\$RANLIB\$oldlib"
 
If a directory of templates are created in ./\${libname}_la for example.
Now when using dependency tracking the mode choosen is 
 
checking dependency style of cxx... conftest.o: conftest.c
conftest.o:     conftest.h
dashmstdout

When running 

% make libutilities_la-parser.lo 
source='parser.cpp' object='libutilities_la-parser.lo' libtool=yes \
depfile='.deps/libutilities_la-parser.Plo'
tmpdepfile='.deps/libutilities_la-parser.TPlo' \
depmode=dashmstdout /bin/ksh ../depcomp \
/bin/ksh ../libtool --mode=compile cxx
-DPACKAGE=\"mudfas\" -DVERSION=\"0.9\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1
-I. -I. -I.  -DHDF -I/astro/local/opt/HDF_4.1r3/4.1r3_digunix/include
-I/mn/sothi/u1/patrickg/src/blitz -DFLOAT_FIELD -ptr libutilities_la
-nocompress -std strict_ansi -DBZ_DISABLE_XOPEN_SOURCE -ieee -c -o
libutilities_la-parser.lo `test -f parser.cpp || echo './'`parser.cpp
cxx -DPACKAGE=\"mudfas\" -DVERSION=\"0.9\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1
-I. -I. -I. -DHDF -I/astro/local/opt/HDF_4.1r3/4.1r3_digunix/include
-I/mn/sothi/u1/patrickg/src/blitz -DFLOAT_FIELD -ptr libutilities_la
-nocompress -std strict_ansi -DBZ_DISABLE_XOPEN_SOURCE -ieee -c parser.cpp
-o libutilities_la-parser.o
echo timestamp > libutilities_la-parser.lo

Surprise, there is no libutilities_la-parser.o!
I have put a set -x in top of libtool and in order to find dependencies
the compiler is ran with the option -M
The problem is that when specifying -M with cxx even though you put also 
the options -c -o $obj you don't create the .o file. 
And it looks like that the .o is removed first and then the cxx -M is run
without running again cxx alone, therefore the .o is not created.

Sincerely

Patrick

======================================================================
                                  Patrick Guio
                    Institute of Physics, University of Oslo
                      P.O. box 1048, Blindern, N-0316 Oslo
               Tel : (+47) 22 84 40 60 - Fax : (+47) 22 85 56 71
                        E-mail : address@hidden 
                          URL : http://www.fys.uio.no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]