Skip to contentSkip to conversation

64-bit compiler

parisc-linux David Huggins-Daines 2 participants 2 messages Jul 10, 2000 – Jul 11, 2000

lore
Share & tools
lore
#0 lore raw

Hi,

I've just checked in the requisite configuration bits (and fixed a buglet in BFD) to make it possible to build a 64-bit toolchain. As expected, merging forward to 2.96 made this a lot easier.

I have no idea whether it generates correct binaries or not, of course.

To try it out, this short recipe should do:

mkdir binutils-64-build && cd binutils-64-build ../binutils-2.10/configure --disable-nls --target=hppa64-linux make
make install

cd ..
mkdir gcc-64-build && cd gcc-64-build

../gcc/configure --target=hppa64-linux --enable-languages=c \
        --disable-nls --disable-multilib

make
make install

Signature · 2 lines
[email protected], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
#1 lore raw
Quoted 9 lines · David Huggins-Daines

Hi,

I've just checked in the requisite configuration bits (and fixed a buglet in BFD) to make it possible to build a 64-bit toolchain. As expected, merging forward to 2.96 made this a lot easier.

I have no idea whether it generates correct binaries or not, of course.

To try it out, this short recipe should do:

David,
The short recipe you included wasn't enough for me... Could you post required changes for the following recipe? (I call it recipe.puffin64)

This is based off of what Matt sent me a while back for 32-bit builds.

thanks,
grant

#!/bin/sh -x

# build the xcompiler and glibc recipe
# 5/2000
# willy, pb, taggart, others
# make sure we don't get anything from any existing $PREFIX/bin
PATH=/usr/local/bin:/usr/bin:/bin

# Top level
TOP=/linux/grundler

# Where your checked-out CVS sources live
SRC=$TOP

# Where your build sub-dirs go
BUILD=$TOP/xc-build64

# Where to put the final bits, needs to be owned by the

# current user(to avoid sudo games)
PREFIX=/opt/puffin64

# Requirements

# o $SRC has binutils-2.10 gcc checked out
# o $PREFIX/include comes from pehc:~ftp/pub/parisc/src/include.tar.gz
cd $TOP
cvs -z3 update -d binutils-2.10 gcc

# Copy include/asm and include/linux to $PREFIX/include
if [ ! -d $SRC/include ]
then
echo Please untar pehc:~ftp/pub/parisc/src/include.tar.gz in $PREFIX/include first! exit 1
fi

cp -r $SRC/linux-2.3/include/asm $PREFIX/include cp -r $SRC/linux-2.3/include/linux $PREFIX/include

# Clean out and/or create some things
rm -fr $BUILD/build-gcc $BUILD/build-binutils mkdir -p $BUILD/build-gcc $BUILD/build-binutils

### binutils
cd $BUILD/build-binutils
# $SRC/binutils-2.10/configure --enable-64-bit-bfd --target=hppa64-linux --prefix=$PREFIX --disable-nls $SRC/binutils-2.10/configure --target=hppa64-linux --prefix=$PREFIX --disable-nls
make
make install

# Prepend $PREFIX/bin to the path to get the right binutils PATH=$PREFIX/bin:$PATH

cd $BUILD/build-gcc && rm -r *

$SRC/gcc/configure \
	--target=hppa64-linux \
	--prefix=$PREFIX \
	--disable-nls \
	--without-libc

make LIBGCC2_INCLUDES=-I$PREFIX/include LANGUAGES=c make install