lang/spidermonkey185 build breaks
Kubilay Kocak
koobs.freebsd at gmail.com
Tue May 7 07:58:17 UTC 2013
On 7/05/2013 3:02 AM, Beeblebrox wrote:
> Err Msg is:
>
> In file included from jsapi.cpp:1:
> jsapi.cpp:1641:14: warning: cast from 'char *' to 'JSAtom **' increases
> required alignment from 1 to 8 [-Wcast-align]
> atom = (*(JSAtom **)((char*)&(cx->runtime)->atomState + (offset)));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> jsapi.cpp:1646:15: warning: cast from 'char *' to 'JSAtom **' increases
> required alignment from 1 to 8 [-Wcast-align]
> (*(JSAtom **)((char*)&(cx->runtime)->atomState + (offset))) =
> atom;
> .......<OTHER ERR MSGS>
> jsapi.cpp:3988:16: warning: initialization of pointer of type 'JSIdArray *'
> to null from a constant boolean expression [-Wbool-conversion]
> return false;
> ^~~~~
> In file included from jsapi.cpp:1:
> In file included from jsapi.cpp:57:
> In file included from ./jsarray.h:47:
> In file included from ./jsatom.h:52:
> ./jsstr.h:525:14: warning: private field 'mDummy' is not used
> [-Wunused-private-field]
> JSString mDummy;
> ^
> 87 warnings and 4 errors generated.
> gmake[1]: *** [jsatom.o] Error 1
> gmake[1]: *** [jsapi.o] Error 1
> gmake[1]: Leaving directory
> `/wrkdirs/usr/ports/lang/spidermonkey185/work/js-1.8.5/js/src'
> gmake: *** [all] Error 2
> *** [do-build] Error code 1
>
> Stop in /usr/ports/lang/spidermonkey185.
>
>
>
Hi,
Can you test the attached patch for me and let me know how it goes?
-koobs
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile (revision 309185)
+++ Makefile (working copy)
@@ -3,7 +3,7 @@
PORTNAME= spidermonkey185
PORTVERSION= 1.8.5
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= js
@@ -17,6 +17,7 @@
CONFLICTS= njs-[0-9]*
+USE_AUTOTOOLS= autoconf213:env
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_GNOME= gnomehack
@@ -151,6 +152,9 @@
PLIST_SUB+= SPARC="@comment "
.endif
+pre-configure:
+ (cd ${WRKSRC} && ${AUTOCONF})
+
regression-test: build
@${ECHO_MSG} -n "===> Running jstests.py: "
@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \
Index: files/patch-js-src-configure.in
===================================================================
--- files/patch-js-src-configure.in (revision 0)
+++ files/patch-js-src-configure.in (working copy)
@@ -0,0 +1,12 @@
+--- configure.in.orig 2011-03-31 21:08:36.000000000 +0200
++++ configure.in 2012-12-17 23:12:14.000000000 +0100
+@@ -3378,7 +3378,8 @@
+ rm -f conftest.{c,S}
+ ])
+ if test "$ac_cv_have_visibility_builtin_bug" = "no" -a \
+- "$ac_cv_have_visibility_class_bug" = "no"; then
++ "$ac_cv_have_visibility_class_bug" = "no" -a \
++ "$OS_ARCH" != "FreeBSD" ; then
+ VISIBILITY_FLAGS='-I$(DIST)/system_wrappers_js -include $(topsrcdir)/config/gcc_hidden.h'
+ WRAP_SYSTEM_INCLUDES=1
+ STL_FLAGS='-I$(DIST)/stl_wrappers'
Property changes on: files/patch-js-src-configure.in
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the freebsd-ports
mailing list