pkgsrc-Users archive

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

Problems bootstrapping on AIX



Hi Joerg,

I hope it's ok to mail directly to you and cc pkgsrc-users@, because you're the one who always answers those questions ...

Acting on your advice we bougth an xlC for AIX, and I bootstrapped again.
I got some errors, where I need some more advice how to correct them in the way, pkgsrc would benefit.

First, I've seen, there're independently from used compiler a lot of gcc warning flags used:

Index: pkgtools/bootstrap-mk-files/files/bsd.sys.mk
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/bsd.sys.mk,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 bsd.sys.mk
--- pkgtools/bootstrap-mk-files/files/bsd.sys.mk 14 Jul 2006 23:13:01 -0000 1.1.1.1
+++ pkgtools/bootstrap-mk-files/files/bsd.sys.mk        26 Sep 2008 08:28:54 
-0000
@@ -4,20 +4,20 @@

 .if defined(WARNS)
 .if ${WARNS} > 0
-CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
+#CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
 # XXX Delete -Wuninitialized by default for now -- the compiler doesn't
 # XXX always get it right.
-CFLAGS+= -Wno-uninitialized
+#CFLAGS+= -Wno-uninitialized
 .endif
 .if ${WARNS} > 1
-CFLAGS+=-Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings
-CFLAGS+=-Wswitch -Wshadow
+#CFLAGS+=-Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings
+#CFLAGS+=-Wswitch -Wshadow
 .endif
 .endif

 .if defined(WFORMAT) && defined(FORMAT_AUDIT)
 .if ${WFORMAT} > 1
-CFLAGS+=-Wnetbsd-format-audit -Wno-format-extra-args
+#CFLAGS+=-Wnetbsd-format-audit -Wno-format-extra-args
 .endif
 .endif

Next I've seen, lang/perl5 adds -q64 to the LDFLAGS, which probably ld tool-wrapper should filter out. shells/bash or editors/vim or any of the dependencies wants to use gcc warnings even for xlc compiler and one of them tries to add a -Wl,-E to ld. The question is: what would be the best way for pkgsrc on AIX: Searching such incompatibilities and add them to the pkgsrc created wrappers? Or would it better to recommend using gxlc which tries to translate gcc arguments into corresponding xlc ones?

Best regards,
Jens


Home | Main Index | Thread Index | Old Index