Subject: Re: gcc3
To: Masao Uebayashi <uebayasi@pultek.co.jp>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/28/2002 14:41:20
On Tue, 3 Dec 2002, Masao Uebayashi wrote:

> I don't think I can complete this package soon.  It's nice if someone
> will pick this one up and finish the work.

I am using this under Linux. I commented out
ONLY_FOR_PLATFORM=             NetBSD-*
line.

I added
PKGNAME=                gcc3-3.2.1
so I could have both gcc's installed at same time.

I probably should have changed the GCC_PREFIX from
GCC_PREFIX=             ${PREFIX}/${PKGNAME}
to
GCC_PREFIX=             ${PREFIX}/${DISTNAME}

The build did:

Fixing headers into
/home/jeremy/netbsd/usr/pkgsrc/lang/gcc3/work/gcc-3.2.1/gcc/
include for i386--linux-gnu target
Finding directories and links to directories
 Searching /usr/include/.
 Searching /usr/include/./X11
Making symbolic directory links
Fixing directory /usr/include into
/home/jeremy/netbsd/usr/pkgsrc/lang/gcc3/work
/gcc-3.2.1/gcc/include


Fixing directory /usr/include/X11 into
/home/jeremy/netbsd/usr/pkgsrc/lang/gcc3/
work/gcc-3.2.1/gcc/include/root/usr/X11R6/include/X11
Applying machine_name             to X11/Xarch.h
Applying avoid_wchar_t_type       to X11/Xlib.h
Fixed:  X11/Xlib.h
Applying io_quotes_def            to X11/Xmu/Atoms.h
Applying machine_name             to X11/Xos.h
Fixed:  X11/Xos.h
Applying machine_name             to X11/Xos_r.h
Fixed:  X11/Xos_r.h
Applying machine_name             to X11/Xosdefs.h
Fixed:  X11/Xosdefs.h
Applying machine_name             to X11/Xthreads.h
Fixed:  X11/Xthreads.h
Cleaning up unneeded di

Then -I/usr/X11R6/include was used a lot. I was surprised.

The problem is that the dynamic PLIST had X11 files.
And the install complained:

/bin/ls:
/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include
/X11/Xlib.h: No such file or directory
/bin/ls:
/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include
/X11/Xos.h: No such file or directory
/bin/ls:
/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include
/X11/Xos_r.h: No such file or directory
/bin/ls:
/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include
/X11/Xosdefs.h: No such file or directory
/bin/ls:
/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include
/X11/Xthreads.h: No such file or directory
===> Registering installation for gcc3-3.2.1
pkg_create: can't stat
`/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include/X11/Xlib.h'
pkg_create: can't stat
`/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include/X11/Xos.h'
pkg_create: can't stat
`/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include/X11/Xos_r.h'
pkg_create: can't stat
`/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include/X11/Xosdefs.h'
pkg_create: can't stat
`/usr/gcc3-3.2.1/lib/gcc-lib/i386--linux/3.2.1/include/rootX11R6/include/X11/Xthreads.h'


Anyways, I am using this gcc3 fine.

   Jeremy C. Reed
   http://bsd.reedmedia.net/