[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Cannot compile in testing



In the newest packages, the compiler has some different defaults
depending on a couple of criteria. If you are on an UltraSPARC (IOW,
`uname -m' prints sparc64), and you have /usr/lib64/libc.so (IOW, you
have libc6-dev-sparc64 installed), then the compiler will default to
64-bit mode. The way to get 32-bit compiles in this instance is easy,
just prepend the sparc32 command to your build command. For example:

# sparc32 ./configure ...
# sparc32 make

Or,

# sparc32 /bin/bash
# ./configure ...
# make

Or,

# sparc32 gcc hello.c -o hello

Another way is to just add -m32 to CFLAGS, or gcc's command line
directly:

# gcc -m32 hello.c -o hello


-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/



Reply to: