First Last Prev Next    No search results available
Details
: shell scripts output by gccld don't work if you change PATH
Bug#: 289
: tools
: gccld
Status: RESOLVED
Resolution: FIXED
: All
: All
: trunk
: P2
: minor
: ---

:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Brian R. Gaeke <gaeke+bugs@uiuc.edu>
Assigned To: Brian R. Gaeke <gaeke+bugs@uiuc.edu>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-03-12 11:47
gccld outputs shell scripts that try to start lli without specifying a full
path name.  The problem with 
this is that if you change your path so that it doesn't have lli in it, you
suddenly can't run "binaries" that 
llvm-gcc outputs.

The workaround is to edit the script so that it specifies the full path name of
lli, or to use the CBE or 
LLC instead.

I ran across this when playing with the test suite for GNU ed-0.2; it resets
the PATH before running any 
tests.
------- Comment #1 From Chris Lattner 2004-03-12 13:34:29 -------
Hrm, what do you suggest doing to fix this?  I guess we could have the shell
script hardcode the path to lli, based on the path to gccld...

-Chris
------- Comment #2 From Brian R. Gaeke 2004-03-12 14:44:04 -------
I'm not sure... I really don't like hardcoded paths. We could do something like

#!/bin/sh
lli=${LLVM_INTERP-lli}
exec $lli ...options... /full/path/to/file.bc

This would give us the ability to use the LLVM_INTERP environment variable as a workaround.
------- Comment #3 From Chris Lattner 2004-03-12 14:47:34 -------
That works for me.  You could also have multiple fall-backs, like trying the
LLIINTERP var, then lli in the path, then the hardcoded one...

-chris
------- Comment #4 From Chris Lattner 2004-05-07 14:27:45 -------
Any thoughts on this bug Brian?

-Chris
------- Comment #5 From Brian R. Gaeke 2004-05-07 16:52:46 -------
patch is in...

First Last Prev Next    No search results available