LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 656 - configure script sometimes fails on Solaris/Sparc
Summary: configure script sometimes fails on Solaris/Sparc
Status: RESOLVED FIXED
Alias: None
Product: Test Suite
Classification: Unclassified
Component: Programs Tests (show other bugs)
Version: 1.6
Hardware: PC Solaris
: P normal
Assignee: Reid Spencer
URL:
Keywords: build-problem, portability
Depends on:
Blocks:
 
Reported: 2005-11-08 09:31 PST by John T. Criswell
Modified: 2010-02-22 12:44 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John T. Criswell 2005-11-08 09:31:42 PST
The configure script sometimes fails on Sparc with the following error:

./configure --with-llvmgccdir=/localhome/tbrethou/cfrontend/sparc/llvm-gcc/
--with-f2c=/home/vadve/shared/localtools/sparc
--with-llvmsrc=/localhome/tbrethou/llvm --with-llvmobj=/localhome/tbrethou/llvm

Error:
[cut lots of config output]
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for f2c bin/lib/include locations... checking for nag-fortran
bin/lib/include locations... ./configure: bad substitution

Work around: If you have bash available on your machine, try to run the
configure script with it:

bash ./configure
Comment 1 Chris Lattner 2005-11-08 11:26:52 PST
Note, this may only be a problem if CONFIG_SHELL=sh is in the environment.

-Chris
Comment 2 Reid Spencer 2005-12-21 20:26:52 PST
Is this still a problem?

I need the config.log from solaris in order to debug this.

I remember there being some bash code in the find_std_program.m4 script but I
thought we fixed that a while back, per revision 1.3:

date: 2005/07/25 20:25:08;  author: reid;  state: Exp;  lines: +22 -22
Get rid of bash specific syntax for variable dereferencing, replacing it
with the more crufty (but more widely available) "eval" command.

Is this a new problem or the same one?
Comment 3 Reid Spencer 2005-12-21 20:27:49 PST
Mine
Comment 4 Chris Lattner 2006-01-21 01:18:57 PST
I just verified that this works on Solaris.  Thanks for the fix Reid!

-Chris