2.6.13.2 + gcc 4.01 link error
Hi,
I'm trying to compile UML on FC4 using kernel source 2.6.13.2<http://2.6.13.2/> and gcc-4.0.1-4.fc4 and getting the following errors:
CC lib/string.o
CC lib/vsprintf.o
AR lib/lib.a
CC [M] lib/crc-ccitt.o
CC [M] lib/libcrc32c.o
GEN .version
CHK include/linux/compile.h
dnsdomainname: Unknown host
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1 arch/um/sys-i386/built-in.o(*ABS*+0xde77d105): In function `__crc_kunmap':
: multiple definition of __crc_kunmap' arch/um/sys-i386/built-in.o(*ABS*+0x26792e7): In function __crc_kmap_atomic':
: multiple definition of __crc_kmap_atomic' arch/um/sys-i386/built-in.o(*ABS*+0x7d922e4a): In function __crc_kmap_atomic_to_page':
: multiple definition of __crc_kmap_atomic_to_page' arch/um/sys-i386/built-in.o(*ABS*+0xf3c4062c): In function __crc_kmap':
: multiple definition of `__crc_kmap'
collect2: ld returned 1 exit status
KSYM .tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1
Any idea?
Thanks,
--
------------------------------------------------------
Etay Meiri
[email protected]
Quoted 5 lines · Etay Meiri
Hi,
I'm trying to compile UML on FC4 using kernel source 2.6.13.2<http://2.6.13.2/> and gcc-4.0.1-4.fc4 and getting the following errors:
Disable CONFIG_HIGHMEM as a workaround (you likely don't need it), I'll fix it later.
Quoted 44 lines
CC
lib/string.o
CClib/vsprintf.o
ARlib/lib.a
CC [M]lib/crc-ccitt.o
CC [M]lib/libcrc32c.o
GEN .version
CHKinclude/linux/compile.h
dnsdomainname: Unknown host
UPDinclude/linux/compile.h
CCinit/version.o
LDinit/built-in.o
LD .tmp_vmlinux1arch/um/sys-i386/built-in.o(*ABS*+0xde77d105): In function `__crc_kunmap':
: multiple definition of `__crc_kunmap'arch/um/sys-i386/built-in.o(*ABS*+0x26792e7): In function
`__crc_kmap_atomic':
: multiple definition of `__crc_kmap_atomic'arch/um/sys-i386/built-in.o(*ABS*+0x7d922e4a): In function
`__crc_kmap_atomic_to_page':
: multiple definition of `__crc_kmap_atomic_to_page'arch/um/sys-i386/built-in.o(*ABS*+0xf3c4062c): In function `__crc_kmap':
: multiple definition of `__crc_kmap'collect2: ld returned 1 exit status
KSYM.tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1Any idea?
Thanks,
--
------------------------------------------------------
Etay Meiri
[email protected]
Signature · 20 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Blaisorblade
Disable
CONFIG_HIGHMEMas a workaround (you likely don't need it), I'll fix it later.
Hmmm, maybe my previous answer is wrong, but I do have a recollection that I saw this after accidentally getting an i386 config.
Jeff
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 6 lines · Jeff Dike
Quoted 2 lines · Blaisorblade
Disable
CONFIG_HIGHMEMas a workaround (you likely don't need it), I'll fix it later.Hmmm, maybe my previous answer is wrong, but I do have a recollection that I saw this after accidentally getting an i386 config.
Ok, fine, but:
You said you have 1G on your laptop, back in Ottawa, so you likely enable HIGHMEM in your host .config, while you never do on UML, and neither do I. That explains what you say.
But no, an i386 .config can produce bogus settings (i.e. an UML without UBD driver), but it shouldn't produce a non-compiling setting - make randconfig is supposed to produce a compiling configuration.
I just tested and got the *same* errors, and applied the "remove duplicated symbols export" you sent to Linus' git tree, which fixed it.
Signature · 23 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Thanks, it worked.
-Etay
Quoted 64 lines · Blaisorblade
Quoted 4 lines · Etay Meiri
Hi,
I'm trying to compile UML on FC4 using kernel source 2.6.13.2 <http://2.6.13.2><http://2.6.13.2/> and gcc-4.0.1-4.fc4 and
getting the following
Quoted 1 line
errors:
Disable
CONFIG_HIGHMEMas a workaround (you likely don't need it), I'll fix it
later.Quoted 14 lines
CC
lib/string.o
CClib/vsprintf.o
ARlib/lib.a
CC [M]lib/crc-ccitt.o
CC [M]lib/libcrc32c.o
GEN .version
CHKinclude/linux/compile.h
dnsdomainname: Unknown host
UPDinclude/linux/compile.h
CCinit/version.o
LDinit/built-in.o
LD .tmp_vmlinux1Quoted 1 line
arch/um/sys-i386/built-in.o(*ABS*+0xde77d105): In function
`__crc_kunmap':
Quoted 21 lines
: multiple definition of `__crc_kunmap'
arch/um/sys-i386/built-in.o(*ABS*+0x26792e7): In function
`__crc_kmap_atomic':
: multiple definition of `__crc_kmap_atomic'arch/um/sys-i386/built-in.o(*ABS*+0x7d922e4a): In function
`__crc_kmap_atomic_to_page':
: multiple definition of `__crc_kmap_atomic_to_page'arch/um/sys-i386/built-in.o(*ABS*+0xf3c4062c): In function `__crc_kmap':
: multiple definition of `__crc_kmap'collect2: ld returned 1 exit status
KSYM.tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1Quoted 8 lines
Any idea?
Thanks,
--
------------------------------------------------------
Etay Meiri
[email protected]--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
Quoted 5 lines
___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
--
------------------------------------------------------
Etay Meiri
[email protected]
Quoted 7 lines · Etay Meiri
arch/um/sys-i386/built-in.o(*ABS*+0xde77d105): In function `__crc_kunmap':
: multiple definition of__crc_kunmap' arch/um/sys-i386/built-in.o(*ABS*+0x26792e7): In function__crc_kmap_atomic':
: multiple definition of__crc_kmap_atomic' arch/um/sys-i386/built-in.o(*ABS*+0x7d922e4a): In function__crc_kmap_atomic_to_page':
Quoted 8 lines
: multiple definition of
__crc_kmap_atomic_to_page' arch/um/sys-i386/built-in.o(*ABS*+0xf3c4062c): In function__crc_kmap':
: multiple definition of `__crc_kmap'
collect2: ld returned 1 exit status
KSYM.tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1
This is a bogus config. Fix by
make mrproper
make mrproper ARCH=um
make defconfig ARCH=um
make ARCH=um
Jeff
-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 14 lines · Etay Meiri
Hi,
I'm trying to compile UML on FC4 using kernel source 2.6.13.2<http://2.6.13.2/> and gcc-4.0.1-4.fc4 and getting the following errors:
CC
lib/string.o
CClib/vsprintf.o
ARlib/lib.a
CC [M]lib/crc-ccitt.o
CC [M]lib/libcrc32c.o
GEN .version
CHKinclude/linux/compile.h
Quoted 1 line
dnsdomainname: Unknown host
This error is not related to Uml at all and shouldn't give problems in itself, but why dnsdomainname doesn't work on your machine? You should probably fix that.
Quoted 5 lines
UPD
include/linux/compile.h
CCinit/version.o
LDinit/built-in.o
LD .tmp_vmlinux1
Quoted 7 lines
collect2: ld returned 1 exit status
KSYM.tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make: *** [.tmp_kallsyms1.S] Error 1Any idea?
Read my previous answer, however if you want the fix it's in 2.6.13-bs2 - and it was already in 2.6.14 current Linus tree.
Signature · 20 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 7 lines · Blaisorblade
Quoted 2 lines
dnsdomainname: Unknown host
This error is not related to Uml at all and shouldn't give problems in itself,
but why dnsdomainname doesn't work on your machine? You should probably fix
that.
Etay: looks like name resolving is not working ok on my machine. I'm getting 'host not
found' when running host on my machine name. The name is configured in /etc/hosts
and 'files' is set first in nsswitch.conf. Looks like the resolver is bypassing the hosts file
and goes directly to the DNS server of my ISP.
Read my previous answer, however if you want the fix it's in 2.6.13-bs2 -
Quoted 2 lines
and
it was already in 2.6.14 current Linus tree.
Etay: I updated my kernel tree using:
git pull rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
(is that the correct way to pull Linus tree?)
and got the following errors on compilation:
[cl@amber linux-2.6]$ ARCH=um make
make[1]: `arch/um/sys-i386/util/mk_sc' is up to date.
CHK arch/um/include/uml-config.h
UPD arch/um/include/uml-config.h
CHK include/linux/version.h
UPD include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -fprofile-arcs -ftest-coverage -D__arch_um__ -DSUBARCH=\"i386\" -Iarch/um/include -I/home/cl/kernel/linux-2.6/arch/um/kernel/tt/include -I/home/cl/kernel/linux-2.6/arch/um/kernel/skas/include -Dvmap=kernel_vmap -Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -fno-unit-at-a-time -U__i386__ -Ui386 -D_LARGEFILE64_SOURCE -Wdeclaration-after-statement -Wno-pointer-sign -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.1/include -D__KERNEL__ -Iinclude -S -o arch/um/kernel-offsets.s arch/um/sys-i386/kernel-offsets.c In file included from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:53,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from arch/um/sys-i386/kernel-offsets.c:3:include/asm/processor.h:69: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)include/asm/processor.h:69: error: requested alignment is not a constant In file included from include/linux/sched.h:12,
from arch/um/sys-i386/kernel-offsets.c:3:include/linux/jiffies.h:27:5: warning: "CONFIG_HZ" is not defined include/linux/jiffies.h:29:7: warning: "CONFIG_HZ" is not defined
Thanks a lot for your help,
-Etay
--
Quoted 11 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
--
------------------------------------------------------
Etay Meiri
[email protected]
Quoted 9 lines · Etay Meiri
Quoted 7 lines · Blaisorblade
Quoted 1 line
dnsdomainname: Unknown host
This error is not related to Uml at all and shouldn't give problems in itself,
but why dnsdomainname doesn't work on your machine? You should probably fix
that.
Quoted 7 lines
Etay: looks like name resolving is not working ok on my machine. I'm getting 'host not
found' when running host on my machine name. The name is configured in/etc/hosts
and 'files' is set first in nsswitch.conf. Looks like the resolver is bypassing the hosts file
and goes directly to the DNS server of my ISP.
No idea on this - I'm answering in a hurry.
Quoted 6 lines
Etay: I updated my kernel tree using:
git pull rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
(is that the correct way to pull Linus tree?)
I use cogito (see www.kernel.org/git - there's info atop of the page), but the above should work, yes.
However -bs2 has been released, while Linus tree is currently not so nice (all the fixes exist, waiting to be merged).
Quoted 3 lines
and got the following errors on compilation:
[cl@amber linux-2.6]$ ARCH=um make
Sorry, use make ARCH=um, it's different. And still, run the command on a clean tree - CONFIG_X86_L1_CACHE_SHIFT is a clear sign you've some left-overs (likely include/asm)
Quoted 51 lines
make[1]: `arch/um/sys-i386/util/mk_sc' is up to date.
CHKarch/um/include/uml-config.h
UPDarch/um/include/uml-config.h
CHKinclude/linux/version.h
UPDinclude/linux/version.h
SPLITinclude/linux/autoconf.h->include/config/*
gcc -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing(quoted diff) +0
-9-fno-common -ffreestanding -O2 -fomit-frame-pointer -g -fprofile-arcs -ftest-coverage -D__arch_um__ -DSUBARCH=\"i386\" -Iarch/um/include -I/home/cl/kernel/linux-2.6/arch/um/kernel/tt/include -I/home/cl/kernel/linux-2.6/arch/um/kernel/skas/include -Dvmap=kernel_vmap -Din6addr_loopback=kernel_in6addr_loopback -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask -fno-unit-at-a-time -U__i386__ -Ui386 -D_LARGEFILE64_SOURCE -Wdeclaration-after-statement -Wno-pointer-sign -nostdinc -isystem /usr/lib/gcc/i386-redhat-linux/4.0.1/include -D__KERNEL__ -Iinclude -S -o arch/um/kernel-offsets.s
arch/um/sys-i386/kernel-offsets.cIn file included frominclude/asm/thread_info.h:17,
frominclude/linux/thread_info.h:21,
frominclude/linux/spinlock.h:53,
frominclude/linux/capability.h:45,
frominclude/linux/sched.h:7,
fromarch/um/sys-i386/kernel-offsets.c:3:include/asm/processor.h:69: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)include/asm/processor.h:69: error: requested alignment is not a constant In file included frominclude/linux/sched.h:12,
fromarch/um/sys-i386/kernel-offsets.c:3:include/linux/jiffies.h:27:5: warning: "CONFIG_HZ" is not definedinclude/linux/jiffies.h:29:7: warning: "CONFIG_HZ" is not definedThanks a lot for your help,
-Etay
--
Quoted 9 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade___________________________________
Yahoo! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com--
------------------------------------------------------
Etay Meiri
[email protected]
Signature · 22 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel