- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
make menuconfig
make //custom fpga MODPOST vmlinux.o WARNING: modpost: Found 4 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 /mywork/nios2-linux/toolchain-mmu/x86-linux2/bin/nios2-wrs-linux-gnu-ld:arch/nios2/kernel/vmlinux.lds:226: ignoring invalid character `#' in expression /mywork/nios2-linux/toolchain-mmu/x86-linux2/bin/nios2-wrs-linux-gnu-ld:arch/nios2/kernel/vmlinux.lds:226: syntax error make[2]: *** [.tmp_vmlinux1] 错误 1 make[1]: *** [sub-make] 错误 2 make[1]: Leaving directory `/mywork/nios2-linux/linux-2.6' make: *** [linux] 错误 1 why??Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HAVE deal with it
the comment must use /* ... */ must not like //... thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have the same problem:
WARNING: modpost: Found 4 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' GEN .version CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o LD init/built-in.o LD .tmp_vmlinux1 /home/emil_kruki/nios2-linux/toolchain-mmu/x86-linux2/bin/nios2-linux-gnu-ld:arch/nios2/kernel/vmlinux.lds:192: syntax error make[2]: *** [.tmp_vmlinux1] Fehler 1 make[1]: *** [sub-make] Fehler 2 make[1]: Leaving directory `/home/emil_kruki/nios2-linux/linux-2.6' make: *** [linux] Fehler 1 emil_kruki@hws-162:~/nios2-linux/uClinux-dist> but there are only 130 lines in vmlinux.lds.S, and in file vmlinux.lds.h i can not recognize an syntax error....- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you are looking in the wrong directory..
look under /nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/kernel and find file vmlinux.lds change comments from //#define ... to /*#define ... */ I had about 7 lines to change around line 302 and it solved the problem.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page