Author Topic: Building OE without root  (Read 4511 times)

qaz2

  • Newbie
  • *
  • Posts: 6
    • View Profile
Building OE without root
« 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.  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?
« Last Edit: August 17, 2004, 04:24:51 am by qaz2 »

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Building OE without root
« Reply #1 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
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

qaz2

  • Newbie
  • *
  • Posts: 6
    • View Profile
Building OE without root
« Reply #2 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.

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Building OE without root
« Reply #3 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.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Building OE without root
« Reply #4 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Building OE without root
« Reply #5 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?
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

qaz2

  • Newbie
  • *
  • Posts: 6
    • View Profile
Building OE without root
« Reply #6 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).