[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] gcc 4.2.2 build problem



Actually, this problem turns out to be because you've disabled the
fixincludes code with defining STMP_FIXINC= in gcc/config/m68k/t-mint.

On Linux we need to run the fixincludes code so that it picks up the
correct syslimits.h definitions.

I'm very puzzled...

I've just recompiled the whole thing on Linux Debian Testing, without any problem, and without enabling STMP_FIXINC = stmp-fixinc. As usual, I installed the MiNTLib and PML to their final location before compiling libstdc++-v3 and libssp.

I understood that the fixincludes were only here to fix old system headers not compatibles with GCC. Because the MiNTLib is compatible with GCC, I disabled fixincludes, which seemed to be useless. In other words, it seemed to me that fixincludes patch the include contents, not the include location.

As it may help you, I attach to this email the quick-and-dirty script I've just used to compile on Linux. In order to make it quicker, I disabled multilib (only m68000 libraries). Just copy/paste the whole script into a terminal, wait a moment, and you'll find the binaries installed and ready to use in $HOME/base. It worked for me.

I would really want to know if STMP_FIXINC is really usefull for us, or if it is a wrong way.

Vincent
set -x

ARCHIVES_DIR=$HOME/mint/archives
BUILD_DIR=$HOME/mint/compil
INSTALL_DIR=$HOME/base

export PATH=$PATH:$INSTALL_DIR/bin

mkdir -p $ARCHIVES_DIR
mkdir -p $BUILD_DIR

## binutils

cd $ARCHIVES_DIR
wget http://ftp.gnu.org/gnu/binutils/binutils-2.18.tar.bz2
wget http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/binutils-2.18-mint-20070922.diff.bz2

PACKAGENAME=binutils
VERSION=-2.18
VERSIONPATCH=-mint-20070922

cd $BUILD_DIR
tar jxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.bz2"
mv $PACKAGENAME$VERSION $PACKAGENAME$VERSION$VERSIONPATCH
#tar jxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.bz2"
cd $PACKAGENAME$VERSION$VERSIONPATCH
bzcat "$ARCHIVES_DIR/$PACKAGENAME$VERSION$VERSIONPATCH.diff.bz2" |patch -p1
cd ..

mkdir $PACKAGENAME$VERSION$VERSIONPATCH.obj
cd $PACKAGENAME$VERSION$VERSIONPATCH.obj
../$PACKAGENAME$VERSION$VERSIONPATCH/configure --target=m68k-atari-mint --prefix=$INSTALL_DIR --disable-nls
make

make install


## GCC
cd $ARCHIVES_DIR
wget http://ftp.gnu.org/gnu/gcc/gcc-4.2.2/gcc-4.2.2.tar.bz2
wget http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/gcc-4.2.2-mint-20071201.diff.bz2

PACKAGENAME=gcc
VERSION=-4.2.2
VERSIONPATCH=-mint-20071201

cd $BUILD_DIR
tar jxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.bz2"
mv $PACKAGENAME$VERSION $PACKAGENAME$VERSION$VERSIONPATCH
#tar jxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.bz2"
cd $PACKAGENAME$VERSION$VERSIONPATCH
bzcat "$ARCHIVES_DIR/$PACKAGENAME$VERSION$VERSIONPATCH.diff.bz2" |patch -p1
cd ..

mkdir $PACKAGENAME$VERSION$VERSIONPATCH.obj
cd $PACKAGENAME$VERSION$VERSIONPATCH.obj
../$PACKAGENAME$VERSION$VERSIONPATCH/configure --target=m68k-atari-mint --prefix=$INSTALL_DIR --disable-nls --disable-multilib --disable-libstdcxx-pch --enable-languages="c,c++"
#../$PACKAGENAME$VERSION$VERSIONPATCH/configure --target=m68k-atari-mint --prefix=$INSTALL_DIR --disable-nls --enable-languages="c,c++"

make all-gcc
make install-gcc


## MiNTLib
cd $ARCHIVES_DIR
wget http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/mintlib-0.57.3.tar.gz
wget http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/mintlib-0.57.3-patch-20071201.diff.bz2

PACKAGENAME=mintlib
VERSION=-0.57.3
VERSIONPATCH=-patch-20071201

cd "$BUILD_DIR"
tar zxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.gz"
mv $PACKAGENAME$VERSION $PACKAGENAME$VERSION$VERSIONPATCH
#tar zxvf "$ARCHIVES_DIR/$PACKAGENAME$VERSION.tar.gz"
cd $PACKAGENAME$VERSION$VERSIONPATCH
bzcat "$ARCHIVES_DIR/$PACKAGENAME$VERSION$VERSIONPATCH.diff.bz2" |patch -p1

BINARY_BASE=$INSTALL_DIR/m68k-atari-mint
sed -i "s:^\(prefix=\).*:\1$BINARY_BASE:g" configvars

make
make install

## PML
cd $ARCHIVES_DIR
wget http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/pml-2.03.zip
wget http://vincent.riviere.free.fr/soft/m68k-atari-mint/archives/pml-2.03-mint-20070609.diff.bz2

PACKAGENAME=pml
VERSION=-2.03
VERSIONPATCH=-mint-20070609

cd $BUILD_DIR

unzip "$ARCHIVES_DIR/$PACKAGENAME$VERSION.zip"
mv $PACKAGENAME$VERSION $PACKAGENAME$VERSION$VERSIONPATCH
#unzip "$ARCHIVES_DIR/$PACKAGENAME$VERSION.zip"
cd $PACKAGENAME$VERSION$VERSIONPATCH
bzcat "$ARCHIVES_DIR/$PACKAGENAME$VERSION$VERSIONPATCH.diff.bz2" |patch -p1
cd pmlsrc

# 1st pass for compiling m68000 libraries
make
make install CROSSDIR=$INSTALL_DIR/m68k-atari-mint


## GCC 2
PACKAGENAME=gcc
VERSION=-4.2.2
VERSIONPATCH=-mint-20071201

cd $BUILD_DIR
cd $PACKAGENAME$VERSION$VERSIONPATCH.obj

make
make install