This is the mail archive of the mailing list for the newlib project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Cbe-oss-dev] memalign weirdness in newlib

On Tue, Jan 08, 2008 at 09:36:07AM +1100, Michael Ellerman wrote:
> On Mon, 2008-01-07 at 11:22 -0800, Patrick Mansfield wrote:
> Is there any doco on building newlib for cell, and how to get the
> compiler to use a custom built version?

Here's what I use:

For CVS, there are some newlib checkout instructions online, but:

	cvs -z3 -d login

[hit enter, no password]

	cvs -z3 -d co newlib

Then to build (modified instructions from a script I use):  

mkdir ${bld}
cd ${bld}

${src}/configure --prefix=/usr --mandir=/usr/share/man \
	--infodir=/usr/share/info --disable-shared --disable-threads \
	--disable-checking --with-headers --with-system-zlib \
	--disable-multilib --disable-nls \
	--program-prefix=spu- \
	--target=spu > cfg.out 2>&1

make -j4 > make.out 2>&1

# And then as root:
sudo make install

The above will overwrite your current SPU newlib install (in /usr/spu),
this is not as bad as overwriting you glibc install, since you can just
re-install the newlib rpm if something is borken.

And then spu-gcc will just work ... I never figured out how to use a
different install prefix.

You can also build spu-gcc and newlib at the same time by adding a symlink
to the gcc directory, and then building.

-- Patrick Mansfield

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]