LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-03-2006, 07:24 AM   #1
sudhirbarker
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Rep: Reputation: 0
make[1]: *** [arch/i386/kernel/entry.o] Error 1-2.6.18.1


hi....

I m very new to the linux now i am posting my first message. If
i made any mistake please forgive...

i used following steps to compile my kernel-2.6.18.1
make mrproper
make menuconfig
make modules
make modules_install
make bzImage

While after excuting the make bzImage step i got following error

>arch/i386/kernel/entry.S:931: Error: unknown pseudo-op: `.cfi_offset'
> arch/i386/kernel/entry.S:933: Error: unknown pseudo-op: `.cfi_adjust_cfa_offset'
>arch/i386/kernel/entry.S:935: Error: unknown pseudo-op: `.cfi_adjust_cfa_offset'
>arch/i386/kernel/entry.S:937: Error: unknown pseudo-op: `.cfi_endproc'
>make[1]: *** [arch/i386/kernel/entry.o] Error 1
>make: *** [arch/i386/kernel] Error 2

Thanking you
regards
sudheendra
 
Old 11-04-2006, 02:29 PM   #2
rick.2g
Member
 
Registered: Sep 2005
Posts: 41

Rep: Reputation: 15
I don't know if you can configure this from the menuconfig or the xconfig, but the CONFIG_STACK_UNWIND option needs to be turned off. - check the .config file to see if it's in there... it might be deeper in the configuration tho.

That's been a problem with very recent kernel releases.
 
Old 11-06-2006, 03:48 AM   #3
sudhirbarker
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
hi,
I searched for this "CONFIG_STACK_UNWIND" option in config file but, that option itself is not there.... :-)

regards
sudheendra
 
Old 11-06-2006, 12:22 PM   #4
rick.2g
Member
 
Registered: Sep 2005
Posts: 41

Rep: Reputation: 15
Everything I'm reading says that it's a debug option - it needs to be enabled/disabled manually, so I don't know why you would be having problems with it unless you're already changing around some source.

Could you post the lines from ~850-950 from entry.S? I'm kinda wondering if I'm looking at the right version/option, because this shouldn't be a problem unless you're enabling some heavy debug stuff.
 
Old 11-06-2006, 11:37 PM   #5
sudhirbarker
LQ Newbie
 
Registered: Nov 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,
The below mentioned is the source code lines from 850-950 of the entry.S file


850 pushl $0
851 CFI_ADJUST_CFA_OFFSET 4
852 pushl $do_bounds
853 CFI_ADJUST_CFA_OFFSET 4
854 jmp error_code
855 CFI_ENDPROC
856
857 ENTRY(invalid_op)
858 RING0_INT_FRAME
859 pushl $0
860 CFI_ADJUST_CFA_OFFSET 4
861 pushl $do_invalid_op
862 CFI_ADJUST_CFA_OFFSET 4
863 jmp error_code
864 CFI_ENDPROC
865
866 ENTRY(coprocessor_segment_overrun)
867 RING0_INT_FRAME
868 pushl $0
869 CFI_ADJUST_CFA_OFFSET 4
870 pushl $do_coprocessor_segment_overrun
871 CFI_ADJUST_CFA_OFFSET 4
872 jmp error_code
873 CFI_ENDPROC
874
875 ENTRY(invalid_TSS)
876 RING0_EC_FRAME
877 pushl $do_invalid_TSS
878 CFI_ADJUST_CFA_OFFSET 4
879 jmp error_code
880 CFI_ENDPROC
881
882 ENTRY(segment_not_present)
883 RING0_EC_FRAME
884 pushl $do_segment_not_present
885 CFI_ADJUST_CFA_OFFSET 4
886 jmp error_code
887 CFI_ENDPROC
888
889 ENTRY(stack_segment)
890 RING0_EC_FRAME
891 pushl $do_stack_segment
892 CFI_ADJUST_CFA_OFFSET 4
893 jmp error_code
894 CFI_ENDPROC
895
896 KPROBE_ENTRY(general_protection)
897 RING0_EC_FRAME
898 pushl $do_general_protection
899 CFI_ADJUST_CFA_OFFSET 4
900 jmp error_code
901 CFI_ENDPROC
902 .previous .text
903
904 ENTRY(alignment_check)
905 RING0_EC_FRAME
906 pushl $do_alignment_check
907 CFI_ADJUST_CFA_OFFSET 4
908 jmp error_code
909 CFI_ENDPROC
910
911 KPROBE_ENTRY(page_fault)
912 RING0_EC_FRAME
913 pushl $do_page_fault
914 CFI_ADJUST_CFA_OFFSET 4
915 jmp error_code
916 CFI_ENDPROC
917 .previous .text
918
919 #ifdef CONFIG_X86_MCE
920 ENTRY(machine_check)
921 RING0_INT_FRAME
922 pushl $0
923 CFI_ADJUST_CFA_OFFSET 4
924 pushl machine_check_vector
925 CFI_ADJUST_CFA_OFFSET 4926 jmp error_code
927 CFI_ENDPROC
928 #endif
929
930 ENTRY(spurious_interrupt_bug)
931 RING0_INT_FRAME
932 pushl $0
933 CFI_ADJUST_CFA_OFFSET 4
934 pushl $do_spurious_interrupt_bug
935 CFI_ADJUST_CFA_OFFSET 4
936 jmp error_code
937 CFI_ENDPROC
938
939 #ifdef CONFIG_STACK_UNWIND
940 ENTRY(arch_unwind_init_running)
941 CFI_STARTPROC
942 movl 4(%esp), %edx
943 movl (%esp), %ecx
944 leal 4(%esp), %eax
945 movl %ebx, EBX(%edx)
946 xorl %ebx, %ebx
947 movl %ebx, ECX(%edx)
948 movl %ebx, EDX(%edx)
949 movl %esi, ESI(%edx)
950 movl %edi, EDI(%edx)

regards
sudheendra
 
Old 11-08-2006, 11:42 AM   #6
rick.2g
Member
 
Registered: Sep 2005
Posts: 41

Rep: Reputation: 15
ah.... it's not the CONFIG_STACK_UNWIND - it's right before it. I was referencing the wrong code version. That makes more sense - it's unlikely that a stack bug would have made it past a maintainer.


There are some includes or declarations missing. The "unknown pseudo-ops" error is the compiler failing to find the macro somewhere in the arch files. I think this is a broken config option somewhere in the kernel's kbuild - it's probable that it's not anything you did. I don't have time to look this up now, but I'll be able to get to it within a few hours.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling the Kernel - errors in make menuconfig ARCH=um donoh Ubuntu 2 04-11-2005 02:43 PM
installing i386 software on x86_64 arch--easy way? silex Linux - Software 0 09-09-2004 01:02 PM
has anyone successfully compiled a kernel for a diff arch. other than i386? veritas Slackware 4 06-16-2004 06:19 PM
Changing Arch from i386 to i686 slacknoob Slackware 4 10-10-2003 10:36 AM
Segmentation Fault Error when trying to install kernel-source-2.4.2-2.i386.rpm rdaves@earthlink.net Linux - Software 1 09-13-2001 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration