pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Problems bootstrapping on AIX
Louis Guillaume wrote:
Jens Rehsack wrote:
I talked to
Joerg Sonnenberger via private mail and IRC and created some more
patches for the bootstrap process. He is not available before
tomorrow. I hope he'll find the time to review the patches I'll send
him tomorrow morning - and after (if any) working in his feedback,
I'll send you the patches.
That would be most helpful.
Hi Louis,
could you please apply the patch from PR pkg/39633 and the attached one and
give me your feedback? The patches aren't really perfect, but for me all
things run fine with them.
Please note, that I run my bootstrap
prompt > env NOGCCERROR=yes PKGSRC_COMPILER=xlc OBJECT_MODE=64 CC=xlc
CFLAGS="-q64 -qarch=ppc64 -O3 -qstrict -qcpluscmt -qkeyword=inline"
./bootstrap --prefix /opt/pkgsrc
/Jens
--- /dev/null 2008-09-30 08:44:00.000000000 +0000
+++ pkgtools/bootstrap-mk-files/files/mods/AIX.bsd.sys.mk 2008-09-29
10:04:26.000000000 +0000
@@ -0,0 +1,128 @@
+# $NetBSD: bsd.sys.mk,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $
+#
+# Overrides used for NetBSD source tree builds.
+
+.if defined(WARNS)
+.if ${WARNS} > 1
+CFLAGS+= -qflag=i:i
+.elif ${WARNS} > 0
+CFLAGS+= -qflag=w:w
+.else
+CFLAGS+= -qflag=e:e
+.endif
+.else
+CFLAGS+= -qflag=e:e
+.endif
+
+.if defined(WFORMAT) && defined(FORMAT_AUDIT)
+.if ${WFORMAT} > 1
+CFLAGS+=-Wnetbsd-format-audit -Wno-format-extra-args
+.endif
+.endif
+
+.if !defined(NOWERROR)
+CFLAGS+= -qhalt=w
+.endif
+CFLAGS+= ${CWARNFLAGS}
+
+.if defined(DESTDIR)
+CPPFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
+LINTFLAGS+= -d ${DESTDIR}/usr/include
+.endif
+
+.if defined(AUDIT)
+CPPFLAGS+= -D__AUDIT__
+.endif
+
+# Helpers for cross-compiling
+HOST_CC?= cc
+HOST_CFLAGS?= -O
+HOST_COMPILE.c?=${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} -c
+HOST_LINK.c?= ${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} ${HOST_LDFLAGS}
+
+HOST_CPP?= cpp
+HOST_CPPFLAGS?=
+
+HOST_LD?= ld
+HOST_LDFLAGS?=
+
+OBJCOPY?= objcopy
+STRIP?= strip
+CONFIG?= config
+RPCGEN?= rpcgen
+MKLOCALE?= mklocale
+
+.SUFFIXES: .m .o .ln .lo
+
+# Objective C
+# (Defined here rather than in <sys.mk> because `.m' is not just
+# used for Objective C source)
+.m:
+ ${LINK.m} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}
+.m.o:
+ ${COMPILE.m} ${.IMPSRC}
+
+# Host-compiled C objects
+.c.lo:
+ ${HOST_COMPILE.c} -o ${.TARGET} ${.IMPSRC}
+
+
+.if defined(PARALLEL) || defined(LPREFIX)
+LPREFIX?=yy
+LFLAGS+=-P${LPREFIX}
+# Lex
+.l:
+ ${LEX.l} -o${.TARGET:R}.${LPREFIX}.c ${.IMPSRC}
+ ${LINK.c} -o ${.TARGET} ${.TARGET:R}.${LPREFIX}.c ${LDLIBS} -ll
+ rm -f ${.TARGET:R}.${LPREFIX}.c
+.l.c:
+ ${LEX.l} -o${.TARGET} ${.IMPSRC}
+.l.o:
+ ${LEX.l} -o${.TARGET:R}.${LPREFIX}.c ${.IMPSRC}
+ ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.${LPREFIX}.c
+ rm -f ${.TARGET:R}.${LPREFIX}.c
+.l.lo:
+ ${LEX.l} -o${.TARGET:R}.${LPREFIX}.c ${.IMPSRC}
+ ${HOST_COMPILE.c} -o ${.TARGET} ${.TARGET:R}.${LPREFIX}.c
+ rm -f ${.TARGET:R}.${LPREFIX}.c
+.endif
+
+# Yacc
+.if defined(YHEADER) || defined(YPREFIX)
+.if defined(YPREFIX)
+YFLAGS+=-p${YPREFIX}
+.endif
+.if defined(YHEADER)
+YFLAGS+=-d
+.endif
+.y:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
+ rm -f ${.TARGET:R}.tab.c ${.TARGET:R}.tab.h
+.y.h: ${.TARGET:R}.c
+.y.c:
+ ${YACC.y} -o ${.TARGET} ${.IMPSRC}
+.y.o:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
+ rm -f ${.TARGET:R}.tab.c ${TARGET:R}.tab.h
+.y.lo:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${HOST_COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
+ rm -f ${.TARGET:R}.tab.c ${TARGET:R}.tab.h
+.elif defined(PARALLEL)
+.y:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${LINK.c} -o ${.TARGET} ${.TARGET:R}.tab.c ${LDLIBS}
+ rm -f ${.TARGET:R}.tab.c
+.y.c:
+ ${YACC.y} -o ${.TARGET} ${.IMPSRC}
+.y.o:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
+ rm -f ${.TARGET:R}.tab.c
+.y.lo:
+ ${YACC.y} -b ${.TARGET:R} ${.IMPSRC}
+ ${HOST_COMPILE.c} -o ${.TARGET} ${.TARGET:R}.tab.c
+ rm -f ${.TARGET:R}.tab.c
+.endif
Index: mk/plist/plist.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/plist/plist.mk,v
retrieving revision 1.37
diff -u -u -r1.37 plist.mk
--- mk/plist/plist.mk 8 Apr 2008 20:52:15 -0000 1.37
+++ mk/plist/plist.mk 30 Sep 2008 08:56:04 -0000
@@ -190,7 +190,7 @@
_SHLIB_AWKFILE.ECOFF= ${.CURDIR}/../../mk/plist/shlib-elf.awk
_SHLIB_AWKFILE.ELF= ${.CURDIR}/../../mk/plist/shlib-elf.awk
_SHLIB_AWKFILE.SOM= ${.CURDIR}/../../mk/plist/shlib-som.awk
-_SHLIB_AWKFILE.aixlib= ${.CURDIR}/../../mk/plist/shlib-none.awk
+_SHLIB_AWKFILE.aixlib= ${.CURDIR}/../../mk/plist/shlib-elf.awk
_SHLIB_AWKFILE.a.out= ${.CURDIR}/../../mk/plist/shlib-aout.awk
_SHLIB_AWKFILE.dylib= ${.CURDIR}/../../mk/plist/shlib-dylib.awk
_SHLIB_AWKFILE.none= ${.CURDIR}/../../mk/plist/shlib-none.awk
Index: mk/compiler/xlc.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler/xlc.mk,v
retrieving revision 1.17
diff -u -u -r1.17 xlc.mk
--- mk/compiler/xlc.mk 7 Feb 2008 20:59:05 -0000 1.17
+++ mk/compiler/xlc.mk 30 Sep 2008 08:56:04 -0000
@@ -94,6 +94,8 @@
CC_VERSION?= IBM XL C
.endif
+EXPORT_SYMBOLS_LDFLAGS= # empty
+
# Most packages assume alloca is available without #pragma alloca, so
# make it the default.
CFLAGS+= -ma
Home |
Main Index |
Thread Index |
Old Index