Re: build problems Jonathan S. Shapiro (shap@eros-os.org)
Wed, 17 May 2000 02:52:06 -0400

Nope. That utility runs in native linux mode, so it should be linking the standard libbfd from your linux distribution.

It definitely should NOT be linking the one from the cross directory.

Is it possible that libbfd.a is installed in a nonstandard place on your system?



From: "Brian Denheyer" <briand@zipcon.net> To: <eros-port@eros-os.org>
Sent: Tuesday, May 16, 2000 12:38 AM
Subject: build problems

>
> Well, I did the start from scratch, make update thing and tried it
again...
>
> I ran into this error :
>
> make[4]: Entering directory
`/usr/local/src/eros/src/base/cross/bin/mkimage'
> make[4]: *** No rule to make target `-lbfd', needed by `mkimage'. Stop.
> make[4]: Leaving directory
`/usr/local/src/eros/src/base/cross/bin/mkimage'
> *** RECURSIVE BUILD STOPS ***
>
> If we visit the directory and look at the Makefile we find the
> following line in it :
>
> LIBS+= $(EROS_ROOT)/cross/lib/libzlib.a -lbfd -liberty
>
> I'm assuming it should be :
>
> LIBS+= $(EROS_ROOT)/cross/lib/libzlib.a $(EROS_XENV)/lib/libbfd.a \
> $(EROS_XENV)/lib/libiberty.a
>
> So I tried that, and saw a most happy thing :-)
>
> ../../../build/lib/make/erosinstall -d /usr/local/src/eros/domain
> ../../../build/lib/make/erosinstall -m 644 nfile.map

/usr/local/src/eros/domain

> ../../../build/lib/make/erosinstall -m 755 nfile
/usr/local/src/eros/domain
> make[3]: Leaving directory `/usr/local/src/eros/src/base/domain/nfile'
> make[2]: Leaving directory `/usr/local/src/eros/src/base/domain'
> make[1]: Leaving directory `/usr/local/src/eros/src/base'
>
> No errors - rock and roll.
>
> Now I'm off to figure out what exactly it is I'm trying to build.
> Must be a boot disk image, or something, right ?
>
> I'm trying to catch-up on all those build e-mails.
>
> Hope this helps.
>
> Brian
>
> P.S. Can't wait to see "apt-get install eros" !
>
>