Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

make error!!!

Altera_Forum
Honored Contributor II
1,556 Views

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??
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
771 Views

HAVE deal with it 

 

the comment must use /* ... */  

must not like //... 

 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
771 Views

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....
0 Kudos
Altera_Forum
Honored Contributor II
771 Views

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.
0 Kudos
Reply