This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

stow & g++ header installation


Hello!

I want to install gcc 3.0.1 using GNU stow (on alphaev67-dec-osf4.0f). Therefore
I do something like:
  % configure \
    --prefix=$GLOBDIR \
    --exec_prefix=$ARCHDIR
  ...
  % make bootstrap
  ...
  % make install \
    prefix=$GLOBDIR/stow/gcc-3.0.1 \
    exec_prefix=$ARCHDIR/stow/gcc-3.0.1
  ...

FIRST PROBLEM:
--------------
Basically the same output is produced then as for a plain `make install', except
for:
  ...
  libtool: install: warning: remember to run `libtool --finish $ARCHDIR/lib'
  ...
when installing libsupc++.a/libstdc++.a, while `make install' reports:
  ...
  ----------------------------------------------------------------------
  Libraries have been installed in:
     $ARCHDIR/lib

  ...
  ----------------------------------------------------------------------
  ...
(In both cases, I replaced `$ARCHDIR' manually for readability, of course.)
Is this a serious warning? Do I need to perform this libtool-call, or is it done
by the installation?

SECOND PROBLEM:
---------------
After stowing the installed files, I (seem to) get identical layout of the
target directories as for the immediate `make install', with links instead of
the according files/subdirectories.
But compiling a C++ "Hello world!" example fails, for `iostream' not being
found. After a pure `make install', it works fine.
How can this be, as both times there is $GLOBDIR/include/g++-v3/iostream ?

I found several hints that this is a well-known problem, but I also found many
examples in the mailing lists of people who in fact do install into some
`.../stow/...' directory, so I'd like to ask whether there also is a well-known
solution.

BTW: I know that I could avoid the problems by
`--enable-version-specific-runtime-libs', installing the g++-headers in
$(libsubdir), but I'd like to at least understand why it can't be made the
elegant way?

Thanks in advance!
Andreas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]