I'm trying to build cross-compiler under Cygwin. I started with your LFS
book. I got as far as the headers-install and got a make error, trying to
compile relocs.c. I'm in section 5.6.1 right before build/install of
GLibc. As you know, I'm unable to use mntfs with cygwin without converting
part of the disk to NTFS. Even then, a lot of the sections in LFS book
prior to the actual build/install processes won't work. So I'm wondering
if that's the root cause of the problem. Has anyone tried doing this under
Cygwin?
$ make ARCH=x86_64 CROSS_COMPILE=/tools/bin/^Cr -R O=../linux-build -j4
patti@patti-HP ~/lfs/sources/linux-3.18.5
$ make INSTALL_HDR_PATH=dest headers_install
CHK include/generated/uapi/linux/version.h
HOSTCC arch/x86/tools/relocs_64.o
arch/x86/tools/relocs_64.c:10:0: warning: "ELF_CLASS" redefined
#define ELF_CLASS ELFCLASS64
^
In file included from /usr/include/machine/elf.h:45:0,
from /usr/include/elf.h:37,
from arch/x86/tools/relocs.h:12,
from arch/x86/tools/relocs_64.c:1:
/usr/include/sys/elf_generic.h:43:0: note: this is the location of the
previous definition
#define ELF_CLASS __CONCAT(ELFCLASS,__ELF_WORD_SIZE)
^
arch/x86/tools/relocs_64.c:11:0: warning: "ELF_R_SYM" redefined
#define ELF_R_SYM(val) ELF64_R_SYM(val)
^
In file included from /usr/include/machine/elf.h:45:0,
from /usr/include/elf.h:37,
from arch/x86/tools/relocs.h:12,
from arch/x86/tools/relocs_64.c:1:
/usr/include/sys/elf_generic.h:81:0: note: this is the location of the
previous definition
#define ELF_R_SYM __ELFN(R_SYM)
^
arch/x86/tools/relocs_64.c:12:0: warning: "ELF_R_TYPE" redefined
#define ELF_R_TYPE(val) ELF64_R_TYPE(val)
^
In file included from /usr/include/machine/elf.h:45:0,
from /usr/include/elf.h:37,
from arch/x86/tools/relocs.h:12,
from arch/x86/tools/relocs_64.c:1:
/usr/include/sys/elf_generic.h:82:0: note: this is the location of the
previous definition
#define ELF_R_TYPE __ELFN(R_TYPE)
^
arch/x86/tools/relocs_64.c:13:0: warning: "ELF_ST_TYPE" redefined
#define ELF_ST_TYPE(o) ELF64_ST_TYPE(o)
^
In file included from /usr/include/machine/elf.h:45:0,
from /usr/include/elf.h:37,
from arch/x86/tools/relocs.h:12,
from arch/x86/tools/relocs_64.c:1:
/usr/include/sys/elf_generic.h:85:0: note: this is the location of the
previous definition
#define ELF_ST_TYPE __ELFN(ST_TYPE)
^
arch/x86/tools/relocs_64.c:14:0: warning: "ELF_ST_BIND" redefined
#define ELF_ST_BIND(o) ELF64_ST_BIND(o)
^
In file included from /usr/include/machine/elf.h:45:0,
from /usr/include/elf.h:37,
from arch/x86/tools/relocs.h:12,
from arch/x86/tools/relocs_64.c:1:
/usr/include/sys/elf_generic.h:84:0: note: this is the location of the
previous definition
#define ELF_ST_BIND __ELFN(ST_BIND)
^
In file included from arch/x86/tools/relocs_64.c:17:0:
arch/x86/tools/relocs.c: In function 'rel_type':
arch/x86/tools/relocs.c:199:12: error: 'R_X86_64_JUMP_SLOT' undeclared
(first use in this function)
REL_TYPE(R_X86_64_JUMP_SLOT),
^
arch/x86/tools/relocs.c:190:22: note: in definition of macro 'REL_TYPE'
#define REL_TYPE(X) [X] = #X
^
arch/x86/tools/relocs.c:199:12: note: each undeclared identifier is
reported only once for each function it appears in
REL_TYPE(R_X86_64_JUMP_SLOT),
^
arch/x86/tools/relocs.c:190:22: note: in definition of macro 'REL_TYPE'
#define REL_TYPE(X) [X] = #X
^
arch/x86/tools/relocs.c:199:3: error: array index in initializer not of
integer type
REL_TYPE(R_X86_64_JUMP_SLOT),
^
arch/x86/tools/relocs.c:199:3: error: (near initialization for 'type_name')
scripts/Makefile.host:108: recipe for target 'arch/x86/tools/relocs_64.o'
failed
make[1]: *** [arch/x86/tools/relocs_64.o] Error 1
arch/x86/Makefile:174: recipe for target 'archscripts' failed
make: *** [archscripts] Error 2
patti@patti-HP ~/lfs/sources/linux-3.18.5
$ make INSTALL_HDR_PATH=dest headers_install
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style