cparser 0.9.8 / libfirm 1.16.0

bf bf2006a at yahoo.com
Wed Jan 28 22:36:52 PST 2009


I was experimenting with cparser and libfirm, and I decided, as a first
step, to build and install both from their FreeBSD Ports on 8-CURRENT i386
using the system C compiler (CFLAGS=-O2 -fno-strict-aliasing -fstack
protector-all -march=athlon-tbird) , and then use the two to rebuild
libfirm. But with the current versions of both ports, and the new versions
that I built with the attached patches, the libfirm build fails:

...

[assorted warnings issued]

...

/bin/sh ../libtool --tag=CC   --mode=compile cparser -DHAVE_CONFIG_H -I. -I..  -I../include/libfirm -I../include/libfirm/adt -I.. -I../ir/adt -I../ir/ana -I../ir/arch -I../ir/be -I../ir/common -I../ir/debug -I../ir/ident -I../ir/ir -I../ir/libcore -I../ir/lower -I../ir/net -I../ir/opt -I../ir/stat -I../ir/tr -I../ir/tv    -O4 -std=gnu99 -Wall -Wextra -march=athlon-tbird -MT ircfscc.lo -MD -MP -MF .deps/ircfscc.Tpo -c -o ircfscc.lo `test -f 'ana/ircfscc.c' || echo './'`ana/ircfscc.c
libtool: compile:  cparser -DHAVE_CONFIG_H -I. -I.. -I../include/libfirm -I../include/libfirm/adt -I.. -I../ir/adt -I../ir/ana -I../ir/arch -I../ir/be -I../ir/common -I../ir/debug -I../ir/ident -I../ir/ir -I../ir/libcore -I../ir/lower -I../ir/net -I../ir/opt -I../ir/stat -I../ir/tr -I../ir/tv -O4 -std=gnu99 -Wall -Wextra -march=athlon-tbird -MT ircfscc.lo -MD -MP -MF .deps/ircfscc.Tpo -c ana/ircfscc.c  -o .libs/ircfscc.o
../ir/ir/irflag_t.h:110: warning: redundant declaration for 'firm_init_flags' (declared at line 65 of "../ir/ir/irflag_t.h")
ana/ircfscc.c:410: warning: variable 'index' shadows function (declared at line 52 of "/usr/include/strings.h")
ana/ircfscc.c:434: warning: variable 'index' shadows function (declared at line 52 of "/usr/include/strings.h")
3 warning(s)
Panic: couldn't fold constant
Abort trap (core dumped)
gmake[3]: *** [ircfscc.lo] Error 1
gmake[3]: Leaving directory `/tmp/usr/ports/devel/libfirm/work/libfirm-1.16.0/ir'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/tmp/usr/ports/devel/libfirm/work/libfirm-1.16.0/ir'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/usr/ports/devel/libfirm/work/libfirm-1.16.0'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/devel/libfirm.
*** Error code 1

Stop in /usr/ports/devel/libfirm.



It fails with less aggressive CFLAGS as well.  Not an auspicious beginning.
:(  Have I blundered, or is it not quite ready for this task yet? Comments?


Regards,
          b.


      
-------------- next part --------------
diff -ruN libfirm.orig/Makefile libfirm/Makefile
--- libfirm.orig/Makefile	2009-01-29 00:18:09.293305572 -0500
+++ libfirm/Makefile	2009-01-29 00:40:26.822647430 -0500
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	libfirm
-PORTVERSION=	1.15.0
+PORTVERSION=	1.16.0
 CATEGORIES=	devel lang
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ruN libfirm.orig/distinfo libfirm/distinfo
--- libfirm.orig/distinfo	2009-01-29 00:18:09.297295465 -0500
+++ libfirm/distinfo	2009-01-29 00:40:26.823646439 -0500
@@ -1,3 +1,3 @@
-MD5 (libfirm-1.15.0.tar.bz2) = 3c78a2e750f86af7e9b1cb82fd69bec4
-SHA256 (libfirm-1.15.0.tar.bz2) = 4dda0810cd7d2534932a413c6af31890269ecad2a2b1a55f17e51c6709891a88
-SIZE (libfirm-1.15.0.tar.bz2) = 1527744
+MD5 (libfirm-1.16.0.tar.bz2) = a65f67e4f771e5f446d0131ef4be4d5e
+SHA256 (libfirm-1.16.0.tar.bz2) = 7404237ec32f46a66e3096e7b10d18c7dce5e3ac00940fc5a8b3715ce92b40cf
+SIZE (libfirm-1.16.0.tar.bz2) = 1544923
-------------- next part --------------
diff -ruN cparser.orig/Makefile cparser/Makefile
--- cparser.orig/Makefile	2009-01-29 00:17:14.240678772 -0500
+++ cparser/Makefile	2009-01-29 01:08:49.117446070 -0500
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	cparser
-PORTVERSION=	0.9.7
+PORTVERSION=	0.9.8
 CATEGORIES=	lang devel
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ruN cparser.orig/distinfo cparser/distinfo
--- cparser.orig/distinfo	2009-01-29 00:17:14.241680296 -0500
+++ cparser/distinfo	2009-01-29 01:08:49.118447594 -0500
@@ -1,3 +1,3 @@
-MD5 (cparser-0.9.7.tar.bz2) = 19af4d2d0fe76d444f043b257dc28970
-SHA256 (cparser-0.9.7.tar.bz2) = 623bf32ccfce4a5676c6172a63e3cbada59919cc862c671b35e881a0c424ee00
-SIZE (cparser-0.9.7.tar.bz2) = 187966
+MD5 (cparser-0.9.8.tar.bz2) = c2deef8b85e9ed8c502f434a47b067ca
+SHA256 (cparser-0.9.8.tar.bz2) = 20f7c73273bffa859110dc191f9e1c0fafc9444ea123b77dddf0ea82886e4669
+SIZE (cparser-0.9.8.tar.bz2) = 203531


More information about the freebsd-ports mailing list