build world failure help needed

Abu Khaled khaled.abu at gmail.com
Mon May 9 17:51:54 PDT 2005


On 5/9/05, J.D. Bronson <jbronson at wixb.com> wrote:
> 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
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 

Are you using GCC from ports. I am not sure about this but i tried to
buildworld once using GCC from the ports and got into trouble. Can you
post what you have in /etc/make.conf so others can look into this.

-- 
Kind regards
Abu Khaled


More information about the freebsd-questions mailing list