From owner-freebsd-questions@FreeBSD.ORG Mon May 9 16:06:38 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5576416A4F6 for ; Mon, 9 May 2005 16:06:36 +0000 (GMT) Received: from cheyenne.wixb.com (cheyenne.wixb.com [65.43.82.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4C5843D6A for ; Mon, 9 May 2005 16:06:35 +0000 (GMT) (envelope-from jbronson@wixb.com) Message-Id: <6.2.3.0.2.20050509110438.00b4c468@cheyenne.wixb.com> Date: Mon, 09 May 2005 11:07:26 -0500 To: Kent Stewart , freebsd-questions@freebsd.org From: "J.D. Bronson" In-Reply-To: <200505090856.19931.kstewart@owt.com> References: <6.2.3.0.2.20050509075508.00ad3490@cheyenne.wixb.com> <200505090856.19931.kstewart@owt.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: build world failure help needed X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 16:06:38 -0000 At 10:56 AM 05/09/2005, Kent Stewart wrote: >On Monday 09 May 2005 05:56 am, J.D. Bronson wrote: > > I am trying to build world on 5.4-RC4 and need some assistance > > troubleshooting the build... > > > > it builds fine until: > > > > ===> bin/ls > > /usr/bin/gcc -O2 -pipe -DCOLORLS -Wsystem-headers -Werror -Wall > > -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes > > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual > > -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter > > -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c > > /usr/src/bin/ls/cmp.c > > /usr/bin/gcc -O2 -pipe -DCOLORLS -Wsystem-headers -Werror -Wall > > -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes > > -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual > > -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter > > -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c > > /usr/src/bin/ls/ls.c > > /usr/src/bin/ls/ls.c: In function `main': > > /usr/src/bin/ls/ls.c:330: warning: passing arg 1 of `tgetstr' > > discards qualifiers from pointer target type > > /usr/src/bin/ls/ls.c:331: warning: passing arg 1 of `tgetstr' > > discards qualifiers from pointer target type > > /usr/src/bin/ls/ls.c:332: warning: passing arg 1 of `tgetstr' > > discards qualifiers from pointer target type > > /usr/src/bin/ls/ls.c:333: warning: passing arg 1 of `tgetstr' > > discards qualifiers from pointer target type > > /usr/src/bin/ls/ls.c:338: warning: passing arg 1 of `tgetstr' > > discards qualifiers from pointer target type > > /usr/src/bin/ls/ls.c:340: warning: passing arg 1 of `tgetstr' > > discards qualifiers from pointer target type > > *** Error code 1 > > > >You aren't seeing the error. This usually means you are running -jx of >some size for x. You have run with no -j to see the error. If you time >the build, you will probably see a smaller build time on non-smp >systems when you don't provide a -j. > >Kent that was with NO '-j' flag if I go into /usr/src/bin/ls and try to make it manually it bombs as well: # make Warning: Object directory not changed from original /usr/src/bin/ls /usr/bin/gcc -O2 -pipe -DCOLORLS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c cmp.c /usr/bin/gcc -O2 -pipe -DCOLORLS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c ls.c ls.c: In function `main': ls.c:330: warning: passing arg 1 of `tgetstr' discards qualifiers from pointer target type ls.c:331: warning: passing arg 1 of `tgetstr' discards qualifiers from pointer target type ls.c:332: warning: passing arg 1 of `tgetstr' discards qualifiers from pointer target type ls.c:333: warning: passing arg 1 of `tgetstr' discards qualifiers from pointer target type ls.c:338: warning: passing arg 1 of `tgetstr' discards qualifiers from pointer target type ls.c:340: warning: passing arg 1 of `tgetstr' discards qualifiers from pointer target type *** Error code 1 Stop in /usr/src/bin/ls. so I looked at this closly. if I remove the " -DCOLORLS " from the make file...it will build. In addition, if we copy these files in /usr/src/bin/ls to /tmp, it will build fine...so then I looked at all the CFLAGS and tested with and without each one... -Wwrite-strings = causes the build to fail. I dont know what any of this means...so hopefully someone can tell me more based on this finding. -- J.D. Bronson Off The Hook Phone Repair, Inc. For Fast Repairs: CALL US - IF YOU CAN Office: 414.978.8282 // Pager: 414.314.8282