Date: Mon, 09 May 2005 11:07:26 -0500 From: "J.D. Bronson" <jbronson@wixb.com> To: Kent Stewart <kstewart@owt.com>, freebsd-questions@freebsd.org Subject: Re: build world failure help needed Message-ID: <6.2.3.0.2.20050509110438.00b4c468@cheyenne.wixb.com> In-Reply-To: <200505090856.19931.kstewart@owt.com> References: <6.2.3.0.2.20050509075508.00ad3490@cheyenne.wixb.com> <200505090856.19931.kstewart@owt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.2.3.0.2.20050509110438.00b4c468>