From turutani@scphys.kyoto-u.ac.jp Sat Feb 20 14:16:35 2010 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A7AA1065670 for ; Sat, 20 Feb 2010 14:16:35 +0000 (UTC) (envelope-from turutani@scphys.kyoto-u.ac.jp) Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [133.3.248.237]) by mx1.freebsd.org (Postfix) with ESMTP id 4DF138FC21 for ; Sat, 20 Feb 2010 14:16:34 +0000 (UTC) Received: from smtp-auth.kuins.kyoto-u.ac.jp (smtp-auth.kuins.kyoto-u.ac.jp [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 5669F10104; Sat, 20 Feb 2010 23:16:34 +0900 (JST) Received: from h120.65.226.10.32118.vlan.kuins.net (wd187.BFL38.vectant.ne.jp [210.131.171.187]) by smtp-auth.kuins.kyoto-u.ac.jp (Postfix) with ESMTP id 13BFD10103; Sat, 20 Feb 2010 23:16:34 +0900 (JST) Received: from h120.65.226.10.32118.vlan.kuins.net (localhost [127.0.0.1]) by h120.65.226.10.32118.vlan.kuins.net (8.14.4/8.14.4/20071004-1) with ESMTP id o1KEGUHH067770; Sat, 20 Feb 2010 23:16:30 +0900 (JST) (envelope-from turutani@h120.65.226.10.32118.vlan.kuins.net) Received: (from turutani@localhost) by h120.65.226.10.32118.vlan.kuins.net (8.14.4/8.14.4/Submit) id o1KEGU2j067769; Sat, 20 Feb 2010 23:16:30 +0900 (JST) (envelope-from turutani) Message-Id: <201002201416.o1KEGU2j067769@h120.65.226.10.32118.vlan.kuins.net> Date: Sat, 20 Feb 2010 23:16:30 +0900 (JST) From: Tsurutani Naoki Reply-To: Tsurutani Naoki To: FreeBSD-gnats-submit@freebsd.org Cc: turutani@scphys.kyoto-u.ac.jp Subject: failure in building x11/xscreensaver-gnome X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 144139 >Category: bin >Synopsis: x11/xscreensaver-gnome can't build because of bug in GCC 4.2 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 20 14:20:02 UTC 2010 >Closed-Date: >Last-Modified: Wed Mar 17 20:12:53 UTC 2010 >Originator: Tsurutani Naoki >Release: FreeBSD 8.0-STABLE i386 >Organization: >Environment: System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 8.0-STABLE FreeBSD 8.0-STABLE #22: Sat Feb 13 14:53:25 JST 2010 turutani@h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386 >Description: failure in building x11/xscreensaver-gnome. >How-To-Repeat: % cd /usr/ports/x11/xscreensaver-gnome % make ... cc -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes -Wno-overlength-strings -Wdeclaration-after-statement -std=c89 -U__STRICT_ANSI__ -c -I. -I. -I./../../utils -I./.. -I../.. -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include/libxml2 -I/usr/local/include/libglade-2.0 -I/usr/local/include/gtk-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -DSTANDALONE -DUSE_GL -DHAVE_CONFIG_H -O -pipe -I/usr/local/include -I/usr/local/include surfaces.c In file included from ./../xlockmore.h:39, from surfaces.c:49: /usr/local/include/GL/glu.h:287: warning: function declaration isn't a prototype surfaces.c: In function 'draw_surface': surfaces.c:652: internal compiler error: in assign_386_stack_local, at config/i386/i386.c:13484 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. gmake[1]: *** [surfaces.o] Error 1 gmake[1]: Leaving Directory `/usr/local/work/usr/ports/x11/xscreensaver-gnome/work/xscreensaver-5.10/hacks/glx' gmake: *** [all] Error 5 *** Error code 1 Stop in /usr/ports/x11/xscreensaver-gnome. *** Error code 1 Stop in /usr/ports/x11/xscreensaver-gnome. >Fix: removing "CFLAGS=-O1 -pipe" from /etc/make.conf. however, using -O1 or -O2 is allowed. the another way to avoid this trouble is adding "USE_GCC=4.4+" to Makefile. I found this trouble only on i386. >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-ports-bugs->gnome Responsible-Changed-By: edwin Responsible-Changed-When: Sat Feb 20 14:21:02 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=144139 State-Changed-From-To: open->closed State-Changed-By: mezz State-Changed-When: Sun Feb 21 18:04:10 UTC 2010 State-Changed-Why: We don't support custom CFLAGS. The default is: -O2 -fno-strict-aliasing -pipe The '-fno-strict-aliasing' is a must. If you want to do the custom CFLAGS, you have to fix the bug by yourself. http://www.freebsd.org/cgi/query-pr.cgi?pr=144139 From: Tsurutani Naoki To: bug-followup@FreeBSD.org, mezz@FreeBSD.org Cc: gnome@FreeBSD.org Subject: Re: ports/144139: failure in building x11/xscreensaver-gnome Date: Tue, 23 Feb 2010 11:43:57 +0900 mezz@FreeBSD.org wrote: > We don't support custom CFLAGS. The default is: -O2 -fno-strict-aliasing -pipe > > The '-fno-strict-aliasing' is a must. If you want to do the custom CFLAGS, > you have to fix the bug by yourself. make.conf(5) says "Optimization levels other than -O and -O2 are not supported". If any CFLAGS are not supported, you should not allow setting them in make.conf, or at least refer to that fact. If this is the problem specific to this port, port should check CFLAGS in Makefile, or add any messages to users to change CFLAGS only while building this port. From: "Jeremy Messenger" To: "Tsurutani Naoki" , bug-followup@freebsd.org, mezz@freebsd.org Cc: gnome@freebsd.org Subject: Re: ports/144139: failure in building x11/xscreensaver-gnome Date: Mon, 22 Feb 2010 21:22:31 -0600 On Mon, 22 Feb 2010 20:43:57 -0600, Tsurutani Naoki wrote: > mezz@FreeBSD.org wrote: > >> We don't support custom CFLAGS. The default is: -O2 >> -fno-strict-aliasing -pipe >> >> The '-fno-strict-aliasing' is a must. If you want to do the custom >> CFLAGS, >> you have to fix the bug by yourself. > > make.conf(5) says "Optimization levels other than -O and -O2 are not > supported". > If any CFLAGS are not supported, you should not allow setting them in > make.conf, > or at least refer to that fact. > If this is the problem specific to this port, port should check CFLAGS > in Makefile, > or add any messages to users to change CFLAGS only while building this > port. In your comment, you said that you were using -O1. But after looked at the error log and looks like you are using -O. Anyway, looks like it's GCC bug? You can try the patch over at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34215 .. If it fixes for you then I can ask kan@ or/and someone to see if they can commit fix for GCC. Don't know if patch is GPLv3 or not. Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From: Tsurutani Naoki To: "Jeremy Messenger" Cc: bug-followup@freebsd.org, mezz@freebsd.org, gnome@freebsd.org Subject: Re: ports/144139: failure in building x11/xscreensaver-gnome Date: Tue, 09 Mar 2010 14:02:40 +0900 "Jeremy Messenger" wrote: > In your comment, you said that you were using -O1. But after looked at the > error log and looks like you are using -O. Anyway, looks like it's GCC > bug? You can try the patch over at > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34215 .. If it fixes for you > then I can ask kan@ or/and someone to see if they can commit fix for GCC. > Don't know if patch is GPLv3 or not. I do not know about this problem, but it could avoid the trouble. After application of the following change to RELENG_8 src, and rebuild gcc again, then x11/xscreensaver-gnome can be built, even with "CFLAGS= -O -pipe". http://gcc.gnu.org/viewcvs?view=revision&revision=130439 I confirmed using lang/gcc42 can also avoid this problem. Would you please tell someone apply above change ? Sincerely, State-Changed-From-To: closed->open State-Changed-By: mezz State-Changed-When: Wed Mar 17 20:08:13 UTC 2010 State-Changed-Why: Change category and title. The bug is in GCC 4.2 that avoid screensaver to build with -O. The patch to fix GCC can be found at its SVN. http://gcc.gnu.org/viewcvs?view=revision&revision=130440 The GNATS is: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34215 http://www.freebsd.org/cgi/query-pr.cgi?pr=144139 Responsible-Changed-From-To: gnome->freebsd-bugs Responsible-Changed-By: mezz Responsible-Changed-When: Wed Mar 17 20:11:58 UTC 2010 Responsible-Changed-Why: Not our bug anymore. http://www.freebsd.org/cgi/query-pr.cgi?pr=144139 >Unformatted: