Re: Confusion in usr/include/asm-generic/fcntl.h

From: H. Peter Anvin
Date: Wed Jan 21 2009 - 21:57:32 EST


John David Anglin wrote:
>
> Unfortunately, this decision was made years ago...
>
> dave@mx3210:~$ uname -m
> parisc64
> dave@hiauly6:~/gnu/gcc-4.4/gcc$ uname -m
> parisc
>
> The only significant difference between the above two machines is that
> mx3210 is running a 64-bit kernel and hiauly6 is running a 32-bit kernel.
> Both are PA 2.0 machines. Some PA 2.0 machines can only run 64-bit
> kernels. The workstations can typically run both.
>
> The issue for user space is that 64-bit kernels can support both 32 and
> 64-bit applications. This affects build scripts and make files. The
> default machine selected by config.guess for parisc64 is hppa64.
> Separate applications provide 32-bit and 64-bit support in binutils,
> cc and gdb. hppa64 selects 64-bit support when build these applications.
> So, if you want a 32-bit compiler, you need to explicitly override
> the default chosen by config.guess.
>

That's fine... the whole point is that it should not depend on kernel
CONFIG_* macros. Depending on uname is a user-space decision, no issue
there.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/