On 2011-12-30, James Hartley <jjhart...@gmail.com> wrote:
>===>  Configuring for gcc-4.2.4
> Using /usr/ports/pobj/gcc-4.2.4/config.site (generated)
> loading site script /usr/ports/pobj/gcc-4.2.4/config.site
> creating cache ./config.cache
> checking host system type... i386-unknown-openbsd5.0
> checking target system type... i386-unknown-openbsd5.0
> checking build system type... i386-unknown-openbsd5.0
> checking for a BSD compatible install... /usr/bin/install -c -o root -g bin
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for gcc... /usr/ports/pobj/gcc-4.2.4/bin/egcc
> checking whether the C compiler (/usr/ports/pobj/gcc-4.2.4/bin/egcc -O2 -g
> ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
> *** Error code 1
>
> Stop in /usr/ports/lang/gcc/4.2 (line 2401 of /usr/ports/infrastructure/mk/
> bsd.port.mk).
>

Any OKs for the diff below? It converts the error to something a lot
more useful.

===>  Extracting for gcc-4.2.4
/usr/local/pobj-i386/gcc-4.2.4/bootstrap/bin/egcc -v # if this fails, you must 
extract suitable libraries from an old OpenBSD release
/usr/local/pobj-i386/gcc-4.2.4/bootstrap/bin/egcc: can't load library 
'libc.so.53.0'
*** Error code 4


Also does anyone have a 5.0 i386 system handy that they could generate
a new adastrap file on? (*not* -current, it needs to be something where
the libraries are easily available in future). If I remember correctly
you do something like 'make package' then increase BOOTSTRAP_GEN and
'make adastrap'.


Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/gcc/4.2/Makefile,v
retrieving revision 1.69
diff -u -p -r1.69 Makefile
--- Makefile    3 Dec 2011 15:54:05 -0000       1.69
+++ Makefile    30 Dec 2011 22:51:10 -0000
@@ -107,6 +107,9 @@ REGRESS_DEPENDS += ${BUILD_PKGPATH},-ada
 .endif
 
 post-extract:
+.if ${BUILD_PACKAGES:M-ada}
+       ${WRKDIR}/bootstrap/bin/egcc -v # if this fails, you must extract 
suitable libraries from an old OpenBSD release
+.endif
 .for f in egcc gnatbind gnatmake gnatlink
        echo "#! /bin/sh" >${WRKDIR}/bin/$f
        echo 'GNAT_ROOT=${WRKDIR}/bootstrap GCC_ROOT=${WRKDIR}/bootstrap exec 
${WRKDIR}/bootstrap/bin/$f "$$@"' >>${WRKDIR}/bin/$f

Reply via email to