tmpfs: strange behaviour (was: broken buildkernel (scsi_low and -Os) and duplicate manpages)

David Naylor blackdragon at highveldmail.co.za
Sun Feb 17 07:35:29 UTC 2008


On 14/02/2008, Oliver Fromme <olli at lurza.secnetix.de> wrote:
> David Naylor wrote:
>  > It is a strange problem, normal installworld works fine, but somehow
>  > the duplicate manpages result in a failure when installing with
>  > DESTDIR=, here are some possible reasons:
>  >
>  > 1) I use tmpfs when using DESTDIR (could be tmpfs does something strange)
>  > 2) Base system (compiled and installed) is compiled using -O2???
>
> What is the exact CFLAGS setting that you use?
> Do you use -O2 (or -Os) without -fno-strict-aliasing?
I have managed to isolate the problem and it is definitely tmpfs
related.  If the directory that I'm installing into is tmpfs then it
will fail, if it is ufs then it works.

I recompiled tmpfs module (and reloaded) with CFLAGS='' with the same result.

As an aside I have found that the default CFLAGS for src are: -O2
-fno-strict-aliasing -pipe.  Would -fstrict-aliasing break anything in
base/sys?

David


More information about the freebsd-stable mailing list