Help - Search - Members - Calendar
Full Version: Building OE without root
OESF Forums > General Forums > Desktop Operating Systems Issues > Linux Issues
qaz2
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. 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?
Mickeyl
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
qaz2
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.
Mickeyl
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.
lardman
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
Mickeyl
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?
qaz2
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).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.