OESF Portables Forum

Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Linux Issues => Topic started by: qaz2 on August 17, 2004, 04:24:34 am

Title: Building OE without root
Post by: qaz2 on August 17, 2004, 04:24:34 am
I'm trying so set up OpenEmbedded on a system on which I do not have root (so I can only put stuff in $HOME).  I am using the instructions at http://www.openembedded.org/oe_wiki/index.php/GettingStarted (http://www.openembedded.org/oe_wiki/index.php/GettingStarted).  When I run oemake I get

Quote
| checking for C compiler default output file name... configure: error: C compiler cannot create executables

This is because the compiler can't find the libraries which I have in $HOME/oe/opt/cross/arm-linux/lib.  Any suggestions on how to set up my build environment?
Title: Building OE without root
Post by: Mickeyl on August 17, 2004, 05:44:58 am
Some random bits:

* OE support is at oe@handhelds.org
* Which package did you try to oemake?
* Cross-toolchains are not to be relocated
* I never use OE as root
Title: Building OE without root
Post by: qaz2 on August 17, 2004, 06:27:49 am
Quote
* OE support is at oe@handhelds.org

This isn't really an OE issue.  The OE bits are working fine; the problem is setting up the Linux enviroment.

Quote
* Which package did you try to oemake?

libtool-native is what's failing.  It's failing when configure tries to test the compiler.

Quote
* I never use OE as root.

But you use root to install it, right?  The problem is that I don't have access to /opt, which is where the cross compiler wants to be.
Title: Building OE without root
Post by: Mickeyl on August 17, 2004, 02:31:18 pm
Quote
But you use root to install it, right? The problem is that I don't have access to /opt, which is where the cross compiler wants to be.

No I don't and OE doesn't use /opt. OE puts all things it builds under $TMPDIR.

Quote
This isn't really an OE issue. The OE bits are working fine; the problem is setting up the Linux enviroment.

I suspect you did something wrong when setting OE up. Use oe@handhelds.org and tell us more about your system, i.e. your local.conf, your OEPATH, etc.
Title: Building OE without root
Post by: lardman on August 17, 2004, 04:56:37 pm
Mickey, I'm pretty sure the 2.95.3 toolchain tarball from the OpenZaurus website wants to be stuck in /opt (otherwise it'll be in /usr/local/arm which is also probably not accessible to a non-superuser).

Although OE will build the GCC 3.xx toolchain it doesn't build 2.95.3 iirc. Correct me if I'm wrong, but this could be an issue, but only for compiling the kernel.


Si
Title: Building OE without root
Post by: Mickeyl on August 17, 2004, 05:26:06 pm
The 2.95.3 cross toolchain has nothing to do with the original posters's problems, since libtool-native is a native package.

That aside, my statement that "OE puts all things it builds under $TMPDIR." is true since, as you correctly pointed out, OE doesn't build a 2.95.3 (yet). If it would, it would put it under $TMPDIR.

Anyway, the original poster has a problem with his native compiler, not with an OE built one. Aside from telling us more about your environment, what does config.log under $TMPDIR/work/libtool-native-.../ contain?
Title: Building OE without root
Post by: qaz2 on August 19, 2004, 09:20:12 am
Okay, I got it working.  I guess I must have set it up wrong the first time I tried it.  When I saw that error, I though I needed a prebuilt toolchain.  (It does seem that the prebuilt toolchain requires root.)  I tried it again from scratch and it works (though it seems the oe-env script at openembedded.org changed between my attempts; maybe that did it).