gm2
[Top][All Lists]
Advanced

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

[Gm2] gm2 builds as a cross compiler for the avr series of microprocesso


From: Gaius Mulley
Subject: [Gm2] gm2 builds as a cross compiler for the avr series of microprocessors on gcc-8.2.0
Date: Tue, 27 Nov 2018 17:24:15 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hello,

I thought I'd mention I have pushed a few patches which allow gm2 to be
built as a cross compiler for the avr series of microprocessors.
The script I used to configure and build gm2 is below.  I'll see if I
can rebuild the gm2-avr debian package for 8.2.0

#/bin/bash

GCC=8.2.0

DIR=/home/gaius/GM2/graft-${GCC}

LANGUAGES=c,c++,gm2
PREFIX=/usr
PREFIX=$HOME/opt

if [ -d $DIR ] ; then
#   if ! ./rebuild-autofiles ; then
#       echo "failed to reconfigure"
#       exit 1
#   fi
   cd $DIR
   rm -rf build-avr-${GCC}
   mkdir build-avr-${GCC}
   cd build-avr-${GCC}
   CFLAGS=-g \
   ../combined/gm2/gcc-versionno/configure \
    --prefix=${PREFIX}/lib \
    --libexecdir=${PREFIX}/lib \
    --infodir=${PREFIX}/share/info \
    --mandir=${PREFIX}/share/man \
    --bindir=${PREFIX}/bin \
    --libdir=${PREFIX}/lib \
    --enable-shared \
    --with-system-zlib \
    --enable-long-long \
    --enable-nls \
    --without-included-gettext \
    --disable-libssp \
    --build=x86_64-linux-gnu \
    --host=x86_64-linux-gnu \
    --enable-languages=c,c++ \
    --target=avr \
    --enable-languages=${LANGUAGES} \
    --enable-checking \
    --disable-libssp \
    --disable-bootstrap \
    --target=avr \
    --build=x86_64-linux-gnu \
    --host=x86_64-linux-gnu

    if ! time make ; then
       echo "build of gcc for the avr failed"
       exit 1
    fi

    if ! make install ; then
       echo "install of gcc for the avr failed"
       exit 2
    fi
else
   echo "cannot find directory $DIR"
   exit 1
fi

hope this is useful,


regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]