libtool
[Top][All Lists]
Advanced

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

Re: -Wp flag??


From: Gary V . Vaughan
Subject: Re: -Wp flag??
Date: Tue, 3 Apr 2001 22:50:39 +0100

On Tuesday 03 April 2001 10:14 pm, Paul Wighton wrote:
> Hello..

Hi there.

I'm leaving the text of your email intact for the benefit of new readers on 
address@hidden  It appears that the problems you are experiencing are 
caused by the automated compiler dependency generation code in automake.

Hopefully someone on the automake lists can shed some more light on this...

Cheers,
        Gary.

> Im having some troubles getting libtool to run properly on IRIX,  Im trying
> to integrate the autobuild system into some software, and everything works
> fine on Linux, but Irix is a different story.
>
> When the generated makefile is run, this is the output:
>
>      /bin/sh ../../libtool --mode=compile CC <***> -LANG:std -fullwarn
> -woff 1110,1209,1424,3201 -c foo.cc rm -f .libs/foo.lo
>      CC <***> -LANG:std -fullwarn -woff 1110,1209,1424,3201
> -Wp,-MD,.deps/foo.pp -c foo.cc  -DPIC -o .libs/foo.lo cc-1574 CC: ERROR
>        The definition of macro %sq is not valid.
>
>      cc-1005 CC: ERROR
>        The source file ".deps/foo.pp" is unavailable.
>
> NB: <***> is where a whole bunch of -D's and -I's were, they were snipped
> for clarity's sake
>
> If I, however, copy the first line, and simple run it from the shell,
> everything works fine!! here is the output:
>
>
>      $> /bin/sh ../../libtool --mode=compile CC <***> -LANG:std -fullwarn
> -woff 1110,1209,1424,3201 -c foo.cc
>
>     rm -f .libs/foo.lo
>     CC <***> -LANG:std -fullwarn -woff 1110,1209,1424,3201 -c foo.cc  -DPIC
> -o .libs/foo.lo mv -f .libs/foo.lo foo.o
>     (cd . && ln -s foo.o foo.lo)
>
> Notice the missing -Wp,-MD.. statement, which I assume is the problem.
>
> The only conclusion I can draw from this is that libtool is getting
> incorrectly configured in my configure script which could be closely
> related to another problem I was having: under Irix, gcc will be used to
> compile even tho I would like the code to compile with IRIX's C++ compiler
> (CC)
>
> To solve this problem, I did the following in configure.in:
>
>   case "${os}" in
>     Linux) CXX=g++;
>            CC=gcc;
>            CXXFLAGS="-LANG:std -Wall -Wno-reorder -Wno-unused
> -Wno-sign-compare";; Irix)  CXX=CC;
>            CC=cc;
>            CXXFLAGS="-LANG:std -fullwarn -woff 1110,1209,1424,3201";;
>     *)     AC_PROG_CXX;;
>   esac
>
> this is one of the first things to get done in configure.in,
> AM_PROG_LIBTOOL comes after.  So im suspecting that my libtool troubles are
> realted to the fact that AC_PROG_CXX is not being used correctly, am I
> forgetting to set any varibales that AM_PROG_CXX would normally set??? Ive
> also tried setting DLD, LD, PIC, AR, ARFLAGS, and RANLIB in this case
> statement... no luck.
>
> I have read over all of the GNU documentation of Automake, Autoconf and
> Libtool, as well as "GNU automake, autoconf, and libtool" that is available
> online at sources.redhat.com and I cant seem to find the solution
>
> I also ran the testsuite and it failed on hardcode.test, but I suspect this
> is not the problem
>
> Anyone got any suggestions??
>
> Thank you all for your time
>
> -Paul Wighton
>
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool

-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

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