Re: buildworld failure

From: Robert Watson <rwatson_at_freebsd.org>
Date: Fri, 29 Aug 2003 11:48:27 -0400 (EDT)
On Fri, 29 Aug 2003, Mike Jakubik wrote:

> I have re cvsuped 2 days later (Fri Aug 29 10:19:29 EDT 2003) and I am
> still getting the same error, can anyone shed some light here? 

Here's the build output from my build of pam_echo a couple of days ago:

cc -O -pipe -mcpu=pentiumpro
-I/usr/src/lib/libpam/modules/pam_echo/../../../../contrib/openpam/include
-I/usr/src/lib/libpam/modules/pam_echo/../../libpam -Wsystem-headers
-Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
-Wshadow -Wcast-align -Wno-uninitialized -c
/usr/src/lib/libpam/modules/pam_echo/pam_echo.c

The differences here seem to be:

(1) I'm using -O, not -O2
(2) I'm optimizing -mcpu as pentiumpro, not pentium4

I'd try changing your optimization settings and see if things improve --
the cast in question takes the pointer to a local (const char *) and
passes it to pam_get_item as a (const void **), which probably confuses
alias analysis, but is legitimate and necessary, I think.

> 
> Thanks.
> 
> ===> lib/libpam/modules/pam_echo cc -O2 -pipe -march=pentium4
> -I/usr/src/lib/libpam/modules/pam_echo/../../.. 
> /../contrib/openpam/include
> -I/usr/src/lib/libpam/modules/pam_echo/../../lib pam -Wsystem-headers
> -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -
> Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
> -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized -c
> /usr/src/lib/libpam/modules/pam_echo/pam_echo.c
> /usr/src/lib/libpam/modules/pam_echo/pam_echo.c: In function
> `_pam_echo':  /usr/src/lib/libpam/modules/pam_echo/pam_echo.c:92:
> warning: dereferencing type-punned pointer will break strict-aliasing
> rules *** Error code 1
> 
> Stop in /usr/src/lib/libpam/modules/pam_echo.
> *** Error code 1
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Fri Aug 29 2003 - 06:48:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:20 UTC