[Nix-dev] CPU type misdetection

Eelco Dolstra e.dolstra at tudelft.nl
Tue Jan 27 15:03:14 CET 2009


Ludovic Courtès wrote:

> Recently, I was told that the `lm' flag (for "long mode") in
> /proc/cpuinfo roughly means "x86-64".  My laptop has an Intel Core 2
> Duo, which has this flags, and really is "x86-64".  However, to Nix, my
> system is `i686-linux' although it could/should be `x86_64-linux'.

What does uname -a say?

If you're running a 32-bit kernel, then it's an i686-linux system, even if the
CPU is 64-bit capable.  This is a correct determination since you won't be able
to run 64-bit programs.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list