OpenCores
no use no use 1/1 no use no use
Building GNU tool chain as a non-root
by ankurs on Jan 10, 2013
ankurs
Posts: 1
Joined: Jan 10, 2013
Last seen: Jan 10, 2013
Hi,

I wanted to know how problematic it could go to build the Openrisc gnu tool chain on a machine where I don't have root permission?

As I was building using
> ./bld-all.sh --force --prefix /mypath/openrisc --or1ksim-dir /mypath/or1ksim --uclibc-dir uClibc --linux-dir linux

initially I got errors regarding gmp.h mpfr.h and mpc.h not found. I installed them individually in my local space, modified LD_LIBRARY_PATH and reran the building.

Previous error disappeared, but I am now getting the error saying,

"Checking for suffix of object files... configure: error: in '/mypath/gnu-stable/bd-linux/or32-linux/libgcc':
cannot compute suffix of object files: cannot compile
check for more details in config.log"

I checked the config.log and saw some posts on web regarding this error in context of building linux from scratch. Looks like I need to move some files from root directory (not possible because I don't have permissions) to my local space and then rebuild it.

Can somebody help me know exactly what am I missing?

Thank you

Ankur
RE: Building GNU tool chain as a non-root
by jeremybennett on Jan 11, 2013
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi Ankur

Do you have "." on your search path, or possibly a search path starting with ":". These are known to confuse GNU build tools.

HTH

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: Building GNU tool chain as a non-root
by rdaddio on Jan 11, 2013
rdaddio
Posts: 18
Joined: Dec 24, 2005
Last seen: Jul 15, 2021
Is this a system that you have built the toolchain on before? Did you happen to update all the recommended prereqs such as below?

sudo apt-get -y install build-essential make gcc g++ flex bison patch \
texinfo libncurses5-dev libmpfr-dev libgmp3-dev libmpc-dev libzip-dev \
python-dev libexpat1-dev
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.