public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] GCC 3
@ 2001-06-18  8:27 Mathijs Kwik (-=TRoXX=-)
  2001-06-18 11:04 ` Rudy Ruiz
  0 siblings, 1 reply; 4+ messages in thread
From: Mathijs Kwik (-=TRoXX=-) @ 2001-06-18  8:27 UTC (permalink / raw
  To: gentoo-dev

It's released! --> GCC-3.0

did anyone use it to build gentoo yet (the cvs versions) ?


I will also very soon post a script that will allow you to REALLY build from
scratch... so not to the live-system, but to some sub-dir, or partition...
I'm testing it and it seems to build fine... what you'll end up with is a
perfect version of achim's build-tarball... the problem with the current
tarball is that to force a rebuild, achim removed the /var/db/pkg/ dir...
which has the nasty disadvantage of losing info about the version
installed... so after a rebuild (bootstrap, emerge system) you are left with
some shit from old versions of packages (example : vim-5.7 was included in
build-tarball... but a rebuild will install 5.8 and leaves the
old(to-be-removed) 5.7 stuff in place)

a cool side-possibility of my script might be (not sure) that if you use a
cross-compiler (never used 1, so maybe I'm wrong) you can get gentoo to work
on different architectures...

well... you'll see soon ;)


bye
/Mathijs





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] GCC 3
  2001-06-18  8:27 Mathijs Kwik (-=TRoXX=-)
@ 2001-06-18 11:04 ` Rudy Ruiz
  0 siblings, 0 replies; 4+ messages in thread
From: Rudy Ruiz @ 2001-06-18 11:04 UTC (permalink / raw
  To: gentoo-dev

I'd love to see that script you have when you're ready to release it for
some "real" testing :)

----- Original Message -----
From: "Mathijs Kwik (-=TRoXX=-)" <troxx@segfault.nl>
To: <gentoo-dev@cvs.gentoo.org>
Sent: Monday, June 18, 2001 7:29 AM
Subject: [gentoo-dev] GCC 3


> It's released! --> GCC-3.0
>
> did anyone use it to build gentoo yet (the cvs versions) ?
>
>
> I will also very soon post a script that will allow you to REALLY build
from
> scratch... so not to the live-system, but to some sub-dir, or partition...
> I'm testing it and it seems to build fine... what you'll end up with is a
> perfect version of achim's build-tarball... the problem with the current
> tarball is that to force a rebuild, achim removed the /var/db/pkg/ dir...
> which has the nasty disadvantage of losing info about the version
> installed... so after a rebuild (bootstrap, emerge system) you are left
with
> some shit from old versions of packages (example : vim-5.7 was included in
> build-tarball... but a rebuild will install 5.8 and leaves the
> old(to-be-removed) 5.7 stuff in place)
>
> a cool side-possibility of my script might be (not sure) that if you use a
> cross-compiler (never used 1, so maybe I'm wrong) you can get gentoo to
work
> on different architectures...
>
> well... you'll see soon ;)
>
>
> bye
> /Mathijs
>
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@cvs.gentoo.org
> http://cvs.gentoo.org/mailman/listinfo/gentoo-dev
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-dev] GCC 3
@ 2001-07-15 14:32 Sebastian Werner
  2001-07-15 15:07 ` Sebastian Werner
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Werner @ 2001-07-15 14:32 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 470 bytes --]

Hey people,

on my system the current gcc-3.0 ebuild work fine, i think this first. I have 
detected that it don't copy any of the c++ header files (libstdc++). All C++ 
based applications fails to find some headers.

I have write my own version of this script and it works fine.
I have added new USE flags for the languages gcc supports (gcc_c++, gcc_f77, 
gcc_java, gcc_objc) so you can disable them.

It will be nice if someone add these file to cvs. Tanks.

Sebstian

[-- Attachment #2: gcc-3.0-r1.ebuild --]
[-- Type: text/plain, Size: 3521 bytes --]

# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Sebastian Werner <sebastian@werner-productions.de>
# based on 3.0 version by Achim Gottinger <achim@gentoo.org>

SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.gz
        ftp://ftp.gnu.org/pub/gnu/gcc/${P}/${P}.tar.gz"

S=${WORKDIR}/${P}
T=/usr

DESCRIPTION="Modern GCC C/C++/Obj.C/Fortan/Java compiler"
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"

if [ -z "`use build`" ] ; then
  if [ "`use bootstrap`" ] ; then
    DEPEND="nls? ( sys-devel/gettext )"
  else
    DEPEND="nls? ( sys-devel/gettext ) sys-apps/texinfo"
  fi
fi

src_unpack() {
    unpack ${P}.tar.gz
    cd ${S}
}

src_compile() {
    local myconf
    local lang

    if [ -z "`use build`" ];then
      myconf="--enable-shared"

      lang=""
      
      if [ "`use gccjava`" ]; then
        lang="java"
      fi
  
      if [ "`use gccobjc`" ]; then
        lang="${lang},objc"
      fi

      if [ "`use gccc++`" ]; then
        lang="${lang},c++"
      fi

      if [ "`use gccf77`" ]; then
        lang="${lang},f77"
      fi

      myconf="${myconf} --enable-languages=c,${lang}"
      
    else
      myconf="--enable-languages=c"
    fi

    if [ "`use nls`" ]; then
      if [ "`use build`" ] ; then
        myconf="${myconf} --with-included-gettext --enable-nls"
      else
        myconf="${myconf} --enable-nls"
      fi
    else
      myconf="${myconf} --disable-nls"
    fi

    if [ -z "`use build`" ]; then
      echo "texinfo no longer included"
    fi

    mkdir $CHOST
    cd $CHOST
    try ../configure --prefix=${T} --mandir=${T}/share/man --infodir=${T}/share/info \
        --enable-version-specific-runtime-libs \
        --host=${CHOST} --build=${CHOST} --target=${CHOST} --enable-threads  \
        --with-local-prefix=${T}/local ${myconf}
	
    LIBCFLAGS="$CFLAGS"
    LIBCXXFLAGS="$CXXFLAGS"
    
    export CFLAGS CXXFLAGS CHOST LIBCFLAGS LIBCXXFLAGS
        
    try make CFLAGS="'$CFLAGS'" LIBCFLAGS="'$LIBCFLAGS'" LIBCXXFLAGS="'$LIBCXXFLAGS'" bootstrap-lean
}

src_install() {
    cd ${S}/${CHOST}
    try make install prefix=${D}${T} mandir=${D}${T}/share/man infodir=${D}${T}/share/info

    echo "LDPATH=${T}/lib/gcc-lib/${CHOST}/${PV}" > ${D}/etc/env.d/05gcc3

    if [ -z "`use build`" ]; then
      dodoc BUGS ChangeLog COPYING COPYING.LIB GNATS README* FAQ MAINTAINERS
      docinto html
      dodoc *.html
      cd ${S}/boehm-gc
      docinto hoehm-gc
      dodoc ChangeLog README*
      docinto gcc
      cd ${S}/gcc
      dodoc ABOUT-GCC-NLS ChangeLog* COPYING* FSFChangeLog* \
        LANGUAGES NEWS PROBLEMS README* \
        SERVICE
      cd ${S}/libf2c
      docinto libf2c
      dodoc ChangeLog *.netlib README TODO
      cd ${S}/libffi
      docinto libffi
      dodoc ChangeLog* LICENSE README
      cd ${S}/libiberty
      docinto libiberty
      dodoc ChangeLog COPYING.LIB README

      if [ "`use gccjava`" ]; then
        cd ${S}/libjava
        docinto libjava
        dodoc ChangeLog* COPYING LIBGJC_LICENSE README THANKS
      fi
      
      cd ${S}/libio
      docinto libio
      dodoc ChangeLog NEWS README
      cd dbz
      docinto libio/dbz
      dodoc README
      cd ../stdio
      docinto libio/stdio
      dodoc ChangeLog*

      if [ "`use gccobjc`" ]; then
        cd ${S}/libobjc
        docinto libobjc
        dodoc ChangeLog README* THREADS*
      fi
      
    else
    
      rm -rf ${D}/usr/share/{man,info}
      
    fi
}



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] GCC 3
  2001-07-15 14:32 [gentoo-dev] GCC 3 Sebastian Werner
@ 2001-07-15 15:07 ` Sebastian Werner
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Werner @ 2001-07-15 15:07 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 590 bytes --]

Ooops, this was not the final. Here is it. ;-)

Sebastian

On Sunday 15 July 2001 22:00, you wrote:
> Hey people,
>
> on my system the current gcc-3.0 ebuild work fine, i think this first. I
> have detected that it don't copy any of the c++ header files (libstdc++).
> All C++ based applications fails to find some headers.
>
> I have write my own version of this script and it works fine.
> I have added new USE flags for the languages gcc supports (gcc_c++,
> gcc_f77, gcc_java, gcc_objc) so you can disable them.
>
> It will be nice if someone add these file to cvs. Tanks.
>
> Sebstian

[-- Attachment #2: gcc-3.0-r1.ebuild --]
[-- Type: text/plain, Size: 3694 bytes --]

# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Sebastian Werner <sebastian@werner-productions.de>
# based on 3.0 version by Achim Gottinger <achim@gentoo.org>

SRC_URI="ftp://gcc.gnu.org/pub/gcc/releases/${P}/${P}.tar.gz
        ftp://ftp.gnu.org/pub/gnu/gcc/${P}/${P}.tar.gz"

S=${WORKDIR}/${P}
T=/usr

DESCRIPTION="Modern GCC C/C++/Obj.C/Fortan/Java compiler"
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"

if [ -z "`use build`" ] ; then
  if [ "`use bootstrap`" ] ; then
    DEPEND="nls? ( sys-devel/gettext )"
  else
    DEPEND="nls? ( sys-devel/gettext ) sys-apps/texinfo"
  fi
fi

src_unpack() {
    unpack ${P}.tar.gz
    cd ${S}
}

src_compile() {
    local myconf
    local lang

    if [ -z "`use build`" ];then
      myconf="--enable-shared"

      lang=""
      
      if [ "`use gcc_java`" ]; then
        lang="java"
      fi
  
      if [ "`use gcc_objc`" ]; then
        lang="${lang},objc"
      fi

      if [ "`use gcc_c++`" ]; then
        lang="${lang},c++"
      fi

      if [ "`use gcc_f77`" ]; then
        lang="${lang},f77"
      fi

      if [ -z "$lang" ]; then
        myconf="${myconf} --enable-languages=c"
      else
        myconf="${myconf} --enable-languages=c,${lang}"
      fi
      
    else
      myconf="--enable-languages=c"
    fi

    if [ "`use nls`" ]; then
      if [ "`use build`" ] ; then
        myconf="${myconf} --with-included-gettext --enable-nls"
      else
        myconf="${myconf} --enable-nls"
      fi
    else
      myconf="${myconf} --disable-nls"
    fi

    if [ -z "`use build`" ]; then
      echo "texinfo no longer included"
    fi

    mkdir $CHOST
    cd $CHOST
    echo ">>> Building with following options: $myconf"
    sleep 5
    
    try ../configure --prefix=${T} --mandir=${T}/share/man --infodir=${T}/share/info \
        --enable-version-specific-runtime-libs \
        --host=${CHOST} --build=${CHOST} --target=${CHOST} --enable-threads  \
        --with-local-prefix=${T}/local ${myconf}
	
    LIBCFLAGS="$CFLAGS"
    LIBCXXFLAGS="$CXXFLAGS"
    
    export CFLAGS CXXFLAGS CHOST LIBCFLAGS LIBCXXFLAGS
        
    try make CFLAGS="'$CFLAGS'" LIBCFLAGS="'$LIBCFLAGS'" LIBCXXFLAGS="'$LIBCXXFLAGS'" bootstrap-lean
}

src_install() {
    cd ${S}/${CHOST}
    try make install prefix=${D}${T} mandir=${D}${T}/share/man infodir=${D}${T}/share/info

    echo "LDPATH=${T}/lib/gcc-lib/${CHOST}/${PV}" > /etc/env.d/05gcc3

    if [ -z "`use build`" ]; then
      dodoc BUGS ChangeLog COPYING COPYING.LIB GNATS README* FAQ MAINTAINERS
      docinto html
      dodoc *.html
      cd ${S}/boehm-gc
      docinto hoehm-gc
      dodoc ChangeLog README*
      docinto gcc
      cd ${S}/gcc
      dodoc ABOUT-GCC-NLS ChangeLog* COPYING* FSFChangeLog* \
        LANGUAGES NEWS PROBLEMS README* \
        SERVICE
      cd ${S}/libf2c
      docinto libf2c
      dodoc ChangeLog *.netlib README TODO
      cd ${S}/libffi
      docinto libffi
      dodoc ChangeLog* LICENSE README
      cd ${S}/libiberty
      docinto libiberty
      dodoc ChangeLog COPYING.LIB README

      if [ "`use gccjava`" ]; then
        cd ${S}/libjava
        docinto libjava
        dodoc ChangeLog* COPYING LIBGJC_LICENSE README THANKS
      fi
      
      cd ${S}/libio
      docinto libio
      dodoc ChangeLog NEWS README
      cd dbz
      docinto libio/dbz
      dodoc README
      cd ../stdio
      docinto libio/stdio
      dodoc ChangeLog*

      if [ "`use gccobjc`" ]; then
        cd ${S}/libobjc
        docinto libobjc
        dodoc ChangeLog README* THREADS*
      fi
      
    else
    
      rm -rf ${D}/usr/share/{man,info}
      
    fi
}



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-15 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-15 14:32 [gentoo-dev] GCC 3 Sebastian Werner
2001-07-15 15:07 ` Sebastian Werner
  -- strict thread matches above, loose matches on Subject: below --
2001-06-18  8:27 Mathijs Kwik (-=TRoXX=-)
2001-06-18 11:04 ` Rudy Ruiz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox