All of lore.kernel.org
 help / color / mirror / Atom feed
* Troubles Compiling 2.6.1 on SuSE 9
@ 2004-01-24 20:37 Marco Rebsamen
  2004-01-25 10:31 ` Marco Rebsamen
  2004-01-25 12:45 ` Sam Ravnborg
  0 siblings, 2 replies; 10+ messages in thread
From: Marco Rebsamen @ 2004-01-24 20:37 UTC (permalink / raw)
  To: linux-kernel



Hi there...

I try to compile my own kernel with 2.6.1 on suse 9. But i always get the same 
error. i applied the patch 2.6.2-rc1 but wasn't helping.

The error:

ld -m elf_i386  -T arch/i386/kernel/vmlinux.lds.s arch/i386/kernel/head.o 
arch/i386/kernel/init_task.o   init/built-in.o --start-group  usr/built-in.o  
arch/i386/kernel/built-in.o  arch/i386/mm/built-in.o  arch/i386/mach-default/
built-in.o  kernel/built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  
security/built-in.o  crypto/built-in.o  lib/lib.a  arch/i386/lib/lib.a  lib/
built-in.o  arch/i386/lib/built-in.o  drivers/built-in.o  sound/built-in.o  
arch/i386/pci/built-in.o  arch/i386/power/built-in.o  net/built-in.o 
--end-group .tmp_kallsyms2.o -o vmlinux
make -f scripts/Makefile.build obj=arch/i386/boot arch/i386/boot/bzImage
  gcc -Wp,-MD,arch/i386/boot/.bootsect.o.d -nostdinc -iwithprefix include 
-D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -D__ASSEMBLY__ -Iinclude/
asm-i386/mach-default -traditional -DSVGA_MODE=NORMAL_VGA  -D__BIG_KERNEL__   
-c -o arch/i386/boot/bootsect.o arch/i386/boot/bootsect.S
  ld -m elf_i386  -Ttext 0x0 -s --oformat binary arch/i386/boot/bootsect.o -o 
arch/i386/boot/bootsect
  gcc -Wp,-MD,arch/i386/boot/.setup.o.d -nostdinc -iwithprefix include 
-D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -D__ASSEMBLY__ -Iinclude/
asm-i386/mach-default -traditional -DSVGA_MODE=NORMAL_VGA  -D__BIG_KERNEL__   
-c -o arch/i386/boot/setup.o arch/i386/boot/setup.S
arch/i386/boot/setup.S: Assembler messages:
arch/i386/boot/setup.S:165: Warning: value 0x37ffffff truncated to 0x37ffffff
  ld -m elf_i386  -Ttext 0x0 -s --oformat binary -e begtext arch/i386/boot/
setup.o -o arch/i386/boot/setup
make -f scripts/Makefile.build obj=arch/i386/boot/compressed 
IMAGE_OFFSET=0x100000 arch/i386/boot/compressed/vmlinux
  gcc -Wp,-MD,arch/i386/boot/compressed/.head.o.d -nostdinc -iwithprefix 
include -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -D__ASSEMBLY__ 
-Iinclude/asm-i386/mach-default -traditional   -c -o arch/i386/boot/
compressed/head.o arch/i386/boot/compressed/head.S
  gcc -Wp,-MD,arch/i386/boot/compressed/.misc.o.d -nostdinc -iwithprefix 
include -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -Wall 
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe 
-mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default 
-O2 -fomit-frame-pointer     -DKBUILD_BASENAME=misc -DKBUILD_MODNAME=misc -c 
-o arch/i386/boot/compressed/misc.o arch/i386/boot/compressed/misc.c
  objcopy -O binary -R .note -R .comment -S  vmlinux arch/i386/boot/
compressed/vmlinux.bin
make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Fehler 132
make[1]: *** [arch/i386/boot/compressed/vmlinux] Fehler 2
make: *** [bzImage] Fehler 2


thanks and i hope i'm not completle wrong here :-D
Marco


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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-24 20:37 Troubles Compiling 2.6.1 on SuSE 9 Marco Rebsamen
@ 2004-01-25 10:31 ` Marco Rebsamen
  2004-01-25 12:45 ` Sam Ravnborg
  1 sibling, 0 replies; 10+ messages in thread
From: Marco Rebsamen @ 2004-01-25 10:31 UTC (permalink / raw)
  To: linux-kernel


no one knows the answer ? :(

Am Samstag, 24. Januar 2004 21:37 schrieb Marco Rebsamen:
> Hi there...
>
> I try to compile my own kernel with 2.6.1 on suse 9. But i always get the
> same error. i applied the patch 2.6.2-rc1 but wasn't helping.
>
> The error:
>
> ld -m elf_i386  -T arch/i386/kernel/vmlinux.lds.s arch/i386/kernel/head.o
> arch/i386/kernel/init_task.o   init/built-in.o --start-group 
> usr/built-in.o arch/i386/kernel/built-in.o  arch/i386/mm/built-in.o 
> arch/i386/mach-default/ built-in.o  kernel/built-in.o  mm/built-in.o 
> fs/built-in.o  ipc/built-in.o security/built-in.o  crypto/built-in.o 
> lib/lib.a  arch/i386/lib/lib.a  lib/ built-in.o  arch/i386/lib/built-in.o 
> drivers/built-in.o  sound/built-in.o arch/i386/pci/built-in.o 
> arch/i386/power/built-in.o  net/built-in.o --end-group .tmp_kallsyms2.o -o
> vmlinux
> make -f scripts/Makefile.build obj=arch/i386/boot arch/i386/boot/bzImage
>   gcc -Wp,-MD,arch/i386/boot/.bootsect.o.d -nostdinc -iwithprefix include
> -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -D__ASSEMBLY__ -Iinclude/
> asm-i386/mach-default -traditional -DSVGA_MODE=NORMAL_VGA  -D__BIG_KERNEL__
> -c -o arch/i386/boot/bootsect.o arch/i386/boot/bootsect.S
>   ld -m elf_i386  -Ttext 0x0 -s --oformat binary arch/i386/boot/bootsect.o
> -o arch/i386/boot/bootsect
>   gcc -Wp,-MD,arch/i386/boot/.setup.o.d -nostdinc -iwithprefix include
> -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -D__ASSEMBLY__ -Iinclude/
> asm-i386/mach-default -traditional -DSVGA_MODE=NORMAL_VGA  -D__BIG_KERNEL__
> -c -o arch/i386/boot/setup.o arch/i386/boot/setup.S
> arch/i386/boot/setup.S: Assembler messages:
> arch/i386/boot/setup.S:165: Warning: value 0x37ffffff truncated to
> 0x37ffffff ld -m elf_i386  -Ttext 0x0 -s --oformat binary -e begtext
> arch/i386/boot/ setup.o -o arch/i386/boot/setup
> make -f scripts/Makefile.build obj=arch/i386/boot/compressed
> IMAGE_OFFSET=0x100000 arch/i386/boot/compressed/vmlinux
>   gcc -Wp,-MD,arch/i386/boot/compressed/.head.o.d -nostdinc -iwithprefix
> include -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -D__ASSEMBLY__
> -Iinclude/asm-i386/mach-default -traditional   -c -o arch/i386/boot/
> compressed/head.o arch/i386/boot/compressed/head.S
>   gcc -Wp,-MD,arch/i386/boot/compressed/.misc.o.d -nostdinc -iwithprefix
> include -D__KERNEL__ -Iinclude  -D__KERNEL__ -Iinclude  -Wall
> -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe
> -mpreferred-stack-boundary=2 -march=athlon -Iinclude/asm-i386/mach-default
> -O2 -fomit-frame-pointer     -DKBUILD_BASENAME=misc -DKBUILD_MODNAME=misc
> -c -o arch/i386/boot/compressed/misc.o arch/i386/boot/compressed/misc.c
> objcopy -O binary -R .note -R .comment -S  vmlinux arch/i386/boot/
> compressed/vmlinux.bin
> make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Fehler 132
> make[1]: *** [arch/i386/boot/compressed/vmlinux] Fehler 2
> make: *** [bzImage] Fehler 2
>
>
> thanks and i hope i'm not completle wrong here :-D
> Marco
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-24 20:37 Troubles Compiling 2.6.1 on SuSE 9 Marco Rebsamen
  2004-01-25 10:31 ` Marco Rebsamen
@ 2004-01-25 12:45 ` Sam Ravnborg
  2004-01-25 13:27   ` Marco Rebsamen
  1 sibling, 1 reply; 10+ messages in thread
From: Sam Ravnborg @ 2004-01-25 12:45 UTC (permalink / raw)
  To: Marco Rebsamen; +Cc: linux-kernel

On Sat, Jan 24, 2004 at 09:37:34PM +0100, Marco Rebsamen wrote:
> 
> I try to compile my own kernel with 2.6.1 on suse 9. But i always get the same 
> error. i applied the patch 2.6.2-rc1 but wasn't helping.
>   objcopy -O binary -R .note -R .comment -S  vmlinux arch/i386/boot/
> compressed/vmlinux.bin
> make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Fehler 132

Looks like objcopy is failing.
Could you try to run the above command by hand in the top-level
directory of your kernel tree.
If it still fails try with
LANG=C LC_ALL=C objcopy ....

Just to check that language does not have any effect here.
I doubt so, but worth the try.

I browsed the objcopy src (a random version found by google)
without seeing where it could return 132

	Sam

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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 12:45 ` Sam Ravnborg
@ 2004-01-25 13:27   ` Marco Rebsamen
  2004-01-25 15:36     ` Sam Ravnborg
  2004-01-25 22:35     ` Christian
  0 siblings, 2 replies; 10+ messages in thread
From: Marco Rebsamen @ 2004-01-25 13:27 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

Am Sonntag, 25. Januar 2004 13:45 schrieben Sie:
> On Sat, Jan 24, 2004 at 09:37:34PM +0100, Marco Rebsamen wrote:
> > I try to compile my own kernel with 2.6.1 on suse 9. But i always get the
> > same error. i applied the patch 2.6.2-rc1 but wasn't helping.
> >   objcopy -O binary -R .note -R .comment -S  vmlinux arch/i386/boot/
> > compressed/vmlinux.bin
> > make[2]: *** [arch/i386/boot/compressed/vmlinux.bin] Fehler 132
>
> Looks like objcopy is failing.
> Could you try to run the above command by hand in the top-level
> directory of your kernel tree.
> If it still fails try with
> LANG=C LC_ALL=C objcopy ....
>
> Just to check that language does not have any effect here.
> I doubt so, but worth the try.
>
> I browsed the objcopy src (a random version found by google)
> without seeing where it could return 132
>
> 	Sam

thanks for the help....

here my output...

bineo:/usr/src/linux-2.6.1 # objcopy -O binary -R .note -R .comment -S vmlinux 
arch/i386/boot/compressed/vmlinux.bin
Ungültiger Maschinenbefehl (in english, invalid machinecommand i guess)

bineo:/usr/src/linux-2.6.1 # LANG=C LC_ALL=C objcopy -O binary -R .note 
-R .comment -S vmlinux arch/i386/boot/compressed/vmlinux.bin
Ungültiger Maschinenbefehl


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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 13:27   ` Marco Rebsamen
@ 2004-01-25 15:36     ` Sam Ravnborg
  2004-01-25 17:27       ` Marco Rebsamen
  2004-01-25 22:35     ` Christian
  1 sibling, 1 reply; 10+ messages in thread
From: Sam Ravnborg @ 2004-01-25 15:36 UTC (permalink / raw)
  To: Marco Rebsamen; +Cc: Sam Ravnborg, linux-kernel

> arch/i386/boot/compressed/vmlinux.bin
> Ungültiger Maschinenbefehl (in english, invalid machinecommand i guess)

Either objcopy is missing or the executable is damaged.
try 'which objcopy'

>From my suse 9.0 box:

sam@mars:~> which objcopy
/usr/bin/objcopy
sam@mars:~> ll /usr/bin/objcopy
-rwxr-xr-x    1 root     root       248064 2003-09-23 17:34 /usr/bin/objcopy
sam@mars:~> md5sum /usr/bin/objcopy
4aa1f3b8bc18dfdfdd7ae733804b0f1c  /usr/bin/objcopy

IIRC objcopy is part of binutils - which I may have installed by hand
after normal installation.

	Sam

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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 15:36     ` Sam Ravnborg
@ 2004-01-25 17:27       ` Marco Rebsamen
  2004-01-25 19:55         ` Sam Ravnborg
  0 siblings, 1 reply; 10+ messages in thread
From: Marco Rebsamen @ 2004-01-25 17:27 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

Am Sonntag, 25. Januar 2004 16:36 schrieben Sie:
> > arch/i386/boot/compressed/vmlinux.bin
> > Ungültiger Maschinenbefehl (in english, invalid machinecommand i guess)
>
> Either objcopy is missing or the executable is damaged.
> try 'which objcopy'
>
> From my suse 9.0 box:
>
> sam@mars:~> which objcopy
> /usr/bin/objcopy
> sam@mars:~> ll /usr/bin/objcopy
> -rwxr-xr-x    1 root     root       248064 2003-09-23 17:34
> /usr/bin/objcopy sam@mars:~> md5sum /usr/bin/objcopy
> 4aa1f3b8bc18dfdfdd7ae733804b0f1c  /usr/bin/objcopy
>
> IIRC objcopy is part of binutils - which I may have installed by hand
> after normal installation.
>
> 	Sam


that was it.... the MD5 sum was something like 2.... so i reinstalled binutils 
and it worked.... but now i got problems (like everytime) with the modules.
I get many messages:
modprobe: modprobe: Can't open dependencies file /lib/
modules/2.4.21-99-default/modules.dep (no such file or dir.)

i did make modules_install. Where's my fault ?

thanks very much for the help....


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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 17:27       ` Marco Rebsamen
@ 2004-01-25 19:55         ` Sam Ravnborg
  2004-01-25 20:43           ` Marco Rebsamen
  0 siblings, 1 reply; 10+ messages in thread
From: Sam Ravnborg @ 2004-01-25 19:55 UTC (permalink / raw)
  To: Marco Rebsamen; +Cc: Sam Ravnborg, linux-kernel

> I get many messages:
> modprobe: modprobe: Can't open dependencies file /lib/
> modules/2.4.21-99-default/modules.dep (no such file or dir.)

Strange, you are building a 2.6 kernel.
Did you execute this as root?

	Sam

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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 19:55         ` Sam Ravnborg
@ 2004-01-25 20:43           ` Marco Rebsamen
  0 siblings, 0 replies; 10+ messages in thread
From: Marco Rebsamen @ 2004-01-25 20:43 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: linux-kernel

Am Sonntag, 25. Januar 2004 20:55 schrieben Sie:
> > I get many messages:
> > modprobe: modprobe: Can't open dependencies file /lib/
> > modules/2.4.21-99-default/modules.dep (no such file or dir.)
>
> Strange, you are building a 2.6 kernel.
> Did you execute this as root?
>
> 	Sam

originaly i read this on the Kernelmessages console (alt+F10)
but i also tried it as root.... the same...

i've never installed the default kernel. The athlond kernel was installed from 
the beginning. If i make a symlink in this folder that points to the 
modules.dep in the 2.6.1 dir. then it works. But i guess that isn't a clean 
solution.....

fu*** suse or stupid user ?? :-P


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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 13:27   ` Marco Rebsamen
  2004-01-25 15:36     ` Sam Ravnborg
@ 2004-01-25 22:35     ` Christian
  2004-01-26  7:14       ` Marco Rebsamen
  1 sibling, 1 reply; 10+ messages in thread
From: Christian @ 2004-01-25 22:35 UTC (permalink / raw)
  To: Marco Rebsamen; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco Rebsamen wrote:
| bineo:/usr/src/linux-2.6.1 # LANG=C LC_ALL=C objcopy -O binary -R .note
| -R .comment -S vmlinux arch/i386/boot/compressed/vmlinux.bin
| Ungültiger Maschinenbefehl

try with "export LANG=C && objcopy ...." to get english messages.

also: what binutils (objcopy -V), gcc, make, etc.. do you use? have you
bugged SuSE yet?

Christian.

- --
BOFH excuse #154:

You can tune a file system, but you can't tune a fish (from most tunefs
man pages)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAFETE+A7rjkF8z0wRAnbOAJ9oxQi0xuZNzE2S0t3R67NkWxzwjQCgxfDP
j36b+cPwz0vgJ8WiINsu+Wk=
=8Ba0
-----END PGP SIGNATURE-----


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

* Re: Troubles Compiling 2.6.1 on SuSE 9
  2004-01-25 22:35     ` Christian
@ 2004-01-26  7:14       ` Marco Rebsamen
  0 siblings, 0 replies; 10+ messages in thread
From: Marco Rebsamen @ 2004-01-26  7:14 UTC (permalink / raw)
  To: Christian; +Cc: linux-kernel

Am Sonntag, 25. Januar 2004 23:35 schrieben Sie:
> Marco Rebsamen wrote:
> | bineo:/usr/src/linux-2.6.1 # LANG=C LC_ALL=C objcopy -O binary -R .note
> | -R .comment -S vmlinux arch/i386/boot/compressed/vmlinux.bin
> | Ungültiger Maschinenbefehl
>
> try with "export LANG=C && objcopy ...." to get english messages.
>
> also: what binutils (objcopy -V), gcc, make, etc.. do you use? have you
> bugged SuSE yet?
>
> Christian.

bineo:/home/mr # rpm -q binutils
binutils-2.14.90.0.5-43

bieno:/home/mr # objcopy -V
GNU objcopy 2.14.90.0.5 20030722 (SuSE Linux)
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

bineo:/home/mr # gcc -v
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.1/specs
Konfiguriert mit: ../configure --enable-threads=posix --prefix=/usr 
--with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/
man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada 
--disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ 
--with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit 
i586-suse-linux
Thread model: posix
gcc-Version 3.3.1 (SuSE Linux)
wave-master:/home/mr # make -v
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

but the rpoblem with objcopy are solved. It was damaged. I reinstalled the 
binutils package and it worked. Now i got problems with the modules.
PARTICULAR PURPOSE.


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

end of thread, other threads:[~2004-01-26  7:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-24 20:37 Troubles Compiling 2.6.1 on SuSE 9 Marco Rebsamen
2004-01-25 10:31 ` Marco Rebsamen
2004-01-25 12:45 ` Sam Ravnborg
2004-01-25 13:27   ` Marco Rebsamen
2004-01-25 15:36     ` Sam Ravnborg
2004-01-25 17:27       ` Marco Rebsamen
2004-01-25 19:55         ` Sam Ravnborg
2004-01-25 20:43           ` Marco Rebsamen
2004-01-25 22:35     ` Christian
2004-01-26  7:14       ` Marco Rebsamen

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.