All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] What's different about building for x86-64?
@ 2005-11-04 14:07 Rob Landley
  2005-11-04 16:04 ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Rob Landley @ 2005-11-04 14:07 UTC (permalink / raw)
  To: user-mode-linux-devel

Daving Lang grabbed my firmware-linux build script and tried to build it on 
x86-64, and it barfed trying to compile User Mode Linux:

gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing 
-fno-common -ffreestanding -O2 -fomit-frame-pointer -D__arch_um__ 
-DSUBARCH=\"x86_64\" -Dvmap=kernel_vmap -Iarch/um/include 
-I/root/firmware-build-0.8.9/tmpdir/linux-2.6.13.2/arch/um/kernel/tt/include 
-I/root/firmware-build-0.8.9/tmpdir/linux-2.6.13.2/arch/um/kernel/skas/include 
-fno-builtin -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -S -o 
arch/um/user-offsets.s arch/um/sys-x86_64/user-offsets.c
arch/um/sys-x86_64/user-offsets.c: In function `foo':
arch/um/sys-x86_64/user-offsets.c:24: error: structure has no member named 
`rbx'
arch/um/sys-x86_64/user-offsets.c:25: error: structure has no member named 
`rcx'
...
and so on.

My build is basically extracting the 2.6.14 tarball, adding the squashfs 
patch, and then doing this:

make ARCH=um O=../linux-build allnoconfig &&
cd ../linux-build &&
cat >> .config << EOF &&
CONFIG_MODE_SKAS=y
CONFIG_BINFMT_ELF=y
CONFIG_HOSTFS=y
CONFIG_SYSCTL=y
CONFIG_STDERR_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_UBD=y
CONFIG_TMPFS=y
CONFIG_SWAP=y
CONFIG_LBD=y
CONFIG_EXT2_FS=y
CONFIG_PROC_FS=y
CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_ZLIB_INFLATE=y
EOF
yes "" | make ARCH=um oldconfig &&
make ARCH=um &&

It's not working, and I don't have an x86-64 machine to test this on.  I can 
only assume the config file is wrong, but it's in a way that oldconfig isn't 
fixing...

I don't know quite how ARCH=um figures out whether it's derived from ARCH=i386 
or ARCH=x86-64...

Rob


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-04 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-04 14:07 [uml-devel] What's different about building for x86-64? Rob Landley
2005-11-04 16:04 ` Jeff Dike
2005-11-04 15:38   ` Rob Landley
2005-11-04 17:01     ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.