Solaris compiler setup ?

David Holmes david.holmes at oracle.com
Fri Oct 26 17:15:41 PDT 2012


On 27/10/2012 12:36 AM, Magnus Ihse Bursie wrote:
> On 2012-10-26 13:17, David Holmes wrote:
>>
>> > which /usr/sfw/bin/gmake
>> /usr/sfw/bin/gmake
>
> Well that looked good at least. :)
>>
>>> I have just pushed a patch to build-infra that will detect if this is
>>> the case, and if so just use /usr/sfw/bin/gmake directly. You are
>>> encouraged to pull the latest build-infra and try it. :-)
>>
>> checking for gmake... /usr/sfw/bin/gmake
>> configure: Testing potential make at /usr/sfw/bin/gmake, found using
>> gmake in PATH
>> configure: Resolving FOUND_MAKE (as /usr/sfw/bin/gmake) with 'which'
>> failed, using /usr/sfw/bin/gmake directly.
>> configure: Using GNU make 3.81 (or later) at /usr/sfw/bin/gmake
>> (version: GNU Make 3.81)
>
> However, this is not the result configure is getting. It claims the
> result of running "which /usr/sfw/bin/gmake" is empty. Can you check the
> configure log which "which" binary that configure located? It should say
> something like
> checking for which... /usr/bin/which

checking for which... /usr/bin/which

> If it does, what does running "/usr/bin/which /usr/sfw/bin/gmake" tell
> you? And is it that outputted to stdout or stderr?

 > /usr/bin/which /usr/sfw/bin/gmake
/usr/sfw/bin/gmake

 > /usr/bin/which /usr/sfw/bin/gmake > /dev/null
 >

 > /usr/bin/which /usr/sfw/bin/gmake 2> /dev/null
/usr/sfw/bin/gmake

stdout (which I would expect and which is what 'which' does on linux too)

>> FYI the autoconf detection logic didn't seem to work right as it tried
>> to run autogen.sh even though I don't have autoconf on Solaris:
>>
>> Configure source code has been updated, checking time stamps
>> Warning: The configure source files is newer than the generated files.
>> Running autogen.sh to correct the situation
>
> Probably the "which" witch hunting us again. I'm doing this test:
> if test "x`which autoconf 2> /dev/null`" = x; then
> echo "Cannot locate autoconf, unable to correct situation."
> ...
> else
> echo "Running autogen.sh to correct the situation"
> ...
> fi

So the problem here is that for something not found, which reports:

  > which autoconf
no autoconf in /java/east/jdk/7/latest/solaris-i586//bin /usr/local/bin 
/java/devtools/i386/SUNWspro/SS12u1/bin 
/java/devtools/i386/teamware/7.7/bin /java/jdk/bin/ 
/java/devtools/share/bin /java/devtools/i386/bin . /usr/X11/bin/ 
/usr/ccs/bin /opt/sfw/bin /home/daholme/bin /usr/dt/bin /usr/openwin/bin 
/usr/ccs/bin /usr/bin /bin /usr/sbin /sbin /usr/ucb /usr/local/bin 
/usr/dist/local/exe /usr/sfw/bin /usr/dist/exe /usr/lib/lp/postscript . 
/net/backpack.us.oracle.com/archives/jprt/east/dist/bin/

and that also goes to stdout.

David


> /Magnus



More information about the build-infra-dev mailing list