RE: Problems building cross tools

"Gerald Lee" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <9E2742C54E161041A53F36F9A8DC31BE11954F@EXCH-CLUSTER-04.force10networks.com>
Bob - glee answers himself
Oliver Gould replyed:
>>On 2007-07-10 09:30 -0500, Gerald Lee wrote:
>>> 	I'm trying to build from an anonymous cvs tree using the
>>> netbsd-4 label.  I am trying to build purely as a user (no root
access),
 
>>> 	./build.sh -a powerpc -m evbppc -D
>>> /work/sw/glee/NetBSD_4/cross-dest -O
/work/sw/glee/NetBSD_4/cross-obj
-T
>>> /work/sw/glee/NetBSD_4/cross-tools -V BLDX11=no tools

>> I have no idea if this would affect the behavior you describe, but
you
>> at least need to pass the -U flag to build.sh if you are building as
a
>> mortal.

> This happens with -U as well.  The only thing I can think of is that
> LD_LIBRARY_PATH is over-ridden at some point.  I did a search of the
> script (which is the tip of the iceberg I know), and didn't see any
> reference to the environment variable.  I haven't seen any difference
> using -U at all -- doesn't mean I wouldn't, that may come after the
> cross tools are built.

  A bit more background, I did try the command from the log in the
directory
  from a login shell (as opposed to embedded in make), and the command
works
  without failing to find the library.

  I added an echo of LD_LIBRARY_PATH to Makefile.in in the gcc build,
and it
  indicates that the shell variable is null.  I (foolishly tried to add
an
  export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib to the makefile
forgetting
  that each line is a sub-shell.  However, I added that line to the line
  used by the $(SPECS) target (gnu/dist/gcc4/gcc/Makefile.in), and it
works.

  Now that I have it working, I'd like to do it the "right" way.  How
should
  I specify the (not all that) different shared library path, and play
nice
  with build.sh?

> This is a background task for me, so it may be a while before I get
back
> to it.

>> - Oliver

  I know it isn't polite to talk to yourself with out a blue tooth ear
bud,
  but wanted to at least close the loop on what I found out...
 
Thanks once more
- bob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.