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++

make file error

venkatasateesh
Beginner
1,610 Views

Hi ,

 i am facing isuue with .eif file generation with makefile ,if any one knows solution let me know steps to resolve 

 

Info: Linking dsffghkbj.elf
nios2-elf-g++.exe -T'D:/DE2-115_documents/DE2-115BOARD_TEST180921/software/dsffghkbj_bsp/linker.x' -msys-crt0='' -msys-lib= -LD:/DE2-115_documents/DE2-115BOARD_TEST180921/software/dsffghkbj_bsp -Wl,-Map=dsffghkbj.map -O0 -g -Wall -mno-hw-div -mno-hw-mul -mno-hw-mulx -mgpopt=global -o dsffghkbj.elf obj/default/hello_world.o -lm -msys-lib=m
nios2-elf-g++.exe: error: missing argument to '-msys-crt0='
nios2-elf-g++.exe: error: missing argument to '-msys-lib='
make: *** [Makefile:1011: dsffghkbj.elf] Error 1

0 Kudos
13 Replies
EricMunYew_C_Intel
Moderator
1,569 Views

May I know which Quartus you are using ? are you running on Windows or Linux ?


0 Kudos
venkatasateesh
Beginner
1,564 Views

hi 

 

i am using quartus prime editon lite 20.1,it is running on windows 10 

 

0 Kudos
EricMunYew_C_Intel
Moderator
1,545 Views

Can you upgrade to 20.1.1.


0 Kudos
venkatasateesh
Beginner
1,497 Views

hi 

     i have upgraded to quartus prime lite to 20.1.1,i have checked but still the issue is coming while working with niosii design ,i am posting the issue  below

wslpath: /mnt/d/DE2-115_documents/DE2-115BOARD_TEST180921/software/hellotest/hellotest.elf.srec: No such file or directory
wslpath: /mnt/d/DE2-115_documents/DE2-115BOARD_TEST180921/software/hellotest/hellotest.elf.srec: No such file or directory
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Processor is already paused
Starting target processor
rm: cannot remove '/mnt/d/DE2-115_documents/DE2-115BOARD_TEST180921/software/hellotest/hellotest.elf.srec': No such file or directory

 

Build Error]
nios2-elf-g ++. Exe: error: missing argument to'-msys-crt0 ='
nios2-elf-g ++. Exe: error: missing argument to'-msys-lib ='
Makefile: 1015: recipe for target'soft.elf' failed
make: *** [soft.elf] Error 1

 

the above two errors are coming while working with nios2 design while building project in eclipse  ,i tried all solutions in the intel community .i am looking forward for support  .could any one help me to resolve the above issues.i looking for any instant  technical chart with intel  altera team ,if it is their let me know

 

thanking you in advance 

 

sateesh

0 Kudos
EricMunYew_C_Intel
Moderator
1,460 Views

Can you check if you have multiple workspaces in your directory, try to remove them and recreate again.


0 Kudos
venkatasateesh
Beginner
1,411 Views

Hi ,

I am using only single workspace only,let me known any solution for this issue

0 Kudos
EricMunYew_C_Intel
Moderator
1,351 Views

Can you try to add BUILD_PRE_PROCESS := touch $(ELF).srec in your Makefile.


0 Kudos
venkatasateesh
Beginner
1,316 Views

Hi Dear intel team,

1. BUILD_PRE_PROCESS := touch $(ELF).srec in your Makefile

2. APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB))

For me it's around line 326, but is probably a bit different for you.  Change it to:

APP_LDFLAGS += -msys-lib=hal_bsp

       i have tried with above two changes in make still i am getting  same issue ,here i am tagging the issue after using above 2 things

 

Build Error]
nios2-elf-g ++. Exe: error: missing argument to'-msys-crt0 ='
nios2-elf-g ++. Exe: error: missing argument to'-msys-lib ='
Makefile: 1015: recipe for target'soft.elf' failed
make: *** [soft.elf] Error 1


[Debug Error]
wslpath: /mnt/c/Project/software/soft/soft.elf.srec: No such file or directory
wslpath: /mnt/c/Project/software/soft/soft.elf.srec: No such file or directory
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Processor is already paused
Leaving target processor paused
rm: cannot remove'/mnt/c/Project/software/soft/soft.elf.srec' : No such file or directory

 

 

wslpath: /mnt/d/DE2-115_documents/DE2-115BOARD_TEST180921/software/hellotest/hellotest.elf.srec: No such file or directory
wslpath: /mnt/d/DE2-115_documents/DE2-115BOARD_TEST180921/software/hellotest/hellotest.elf.srec: No such file or directory
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Processor is already paused
Starting target processor
rm: cannot remove '/mnt/d/DE2-115_documents/DE2-115BOARD_TEST180921/software/hellotest/hellotest.elf.srec': No such file or directory

 

wslpath: ./Found: No such file or directory
wslpath: ./Found.srec: No such file or directory
Usage: nios2-elf-objcopy.exe [option(s)] in-file [out-file]
Copies a binary file, possibly transforming it in the process
The options are:
-I --input-target <bfdname> Assume input file is in format <bfdname>
-O --output-target <bfdname> Create an output file in format <bfdname>
-B --binary-architecture <arch> Set output arch, when input is arch-less
-F --target <bfdname> Set both input and output format to <bfdname>
--debugging Convert debugging information, if possible
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives
-U --disable-deterministic-archives
Disable -D behavior (default)
-j --only-section <name> Only copy section <name> into the output
--add-gnu-debuglink=<file> Add section .gnu_debuglink linking to <file>
-R --remove-section <name> Remove section <name> from the output
--remove-relocations <name> Remove relocations from section <name>
-S --strip-all Remove all symbol and relocation information
-g --strip-debug Remove all debugging symbols & sections
--strip-dwo Remove all DWO sections
--strip-unneeded Remove all symbols not needed by relocations
-N --strip-symbol <name> Do not copy symbol <name>
--strip-unneeded-symbol <name>
Do not copy symbol <name> unless needed by
relocations
--only-keep-debug Strip everything but the debug information
--extract-dwo Copy only DWO sections
--extract-symbol Remove section contents but keep symbols
-K --keep-symbol <name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
--localize-hidden Turn all ELF hidden symbols into locals
-L --localize-symbol <name> Force symbol <name> to be marked as a local
--globalize-symbol <name> Force symbol <name> to be marked as a global
-G --keep-global-symbol <name> Localize all symbols except <name>
-W --weaken-symbol <name> Force symbol <name> to be marked as a weak
--weaken Force all global symbols to be marked as weak
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-i --interleave[=<number>] Only copy N out of every <number> bytes
--interleave-width <number> Set N for --interleave
-b --byte <num> Select byte <num> in every interleaved block
--gap-fill <val> Fill gaps between sections with <val>
--pad-to <addr> Pad the last section up to address <addr>
--set-start <addr> Set the start address to <addr>
{--change-start|--adjust-start} <incr>
Add <incr> to the start address
{--change-addresses|--adjust-vma} <incr>
Add <incr> to LMA, VMA and start addresses
{--change-section-address|--adjust-section-vma} <name>{=|+|-}<val>
Change LMA and VMA of section <name> by <val>
--change-section-lma <name>{=|+|-}<val>
Change the LMA of section <name> by <val>
--change-section-vma <name>{=|+|-}<val>
Change the VMA of section <name> by <val>
{--[no-]change-warnings|--[no-]adjust-warnings}
Warn if a named section does not exist
--set-section-flags <name>=<flags>
Set section <name>'s properties to <flags>
--add-section <name>=<file> Add section <name> found in <file> to output
--update-section <name>=<file>
Update contents of section <name> with
contents found in <file>
--dump-section <name>=<file> Dump the contents of section <name> into <file>
--rename-section <old>=<new>[,<flags>] Rename section <old> to <new>
--long-section-names {enable|disable|keep}
Handle long section names in Coff objects.
--change-leading-char Force output format's leading character style
--remove-leading-char Remove leading character from global symbols
--reverse-bytes=<num> Reverse <num> bytes at a time, in output sections with content
--redefine-sym <old>=<new> Redefine symbol name <old> to <new>
--redefine-syms <file> --redefine-sym for all symbol pairs
listed in <file>
--srec-len <number> Restrict the length of generated Srecords
--srec-forceS3 Restrict the type of generated Srecords to S3
--strip-symbols <file> -N for all symbols listed in <file>
--strip-unneeded-symbols <file>
--strip-unneeded-symbol for all symbols listed
in <file>
--keep-symbols <file> -K for all symbols listed in <file>
--localize-symbols <file> -L for all symbols listed in <file>
--globalize-symbols <file> --globalize-symbol for all in <file>
--keep-global-symbols <file> -G for all symbols listed in <file>
--weaken-symbols <file> -W for all symbols listed in <file>
--add-symbol <name>=[<section>:]<value>[,<flags>] Add a symbol
--alt-machine-code <index> Use the target's <index>'th alternative machine
--writable-text Mark the output text as writable
--readonly-text Make the output text write protected
--pure Mark the output file as demand paged
--impure Mark the output file as impure
--prefix-symbols <prefix> Add <prefix> to start of every symbol name
--prefix-sections <prefix> Add <prefix> to start of every section name
--prefix-alloc-sections <prefix>
Add <prefix> to start of every allocatable
section name
--file-alignment <num> Set PE file alignment to <num>
--heap <reserve>[,<commit>] Set PE reserve/commit heap to <reserve>/
<commit>
--image-base <address> Set PE image base to <address>
--section-alignment <num> Set PE section alignment to <num>
--stack <reserve>[,<commit>] Set PE reserve/commit stack to <reserve>/
<commit>
--subsystem <name>[:<version>]
Set PE subsystem to <name> [& <version>]
--compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi}]
Compress DWARF debug sections using zlib
--decompress-debug-sections Decompress DWARF debug sections using zlib
--elf-stt-common=[yes|no] Generate ELF common symbols with STT_COMMON
type
-M --merge-notes Remove redundant entries in note sections
--no-merge-notes Do not attempt to remove redundant notes (default)
-v --verbose List all object files modified
@<file> Read options from <file>
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
nios2-elf-objcopy.exzae: supported targets: elf32-littlenios2 elf32-bignios2 elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
wslpath: ./Found.srec: No such file or directory

                                                  I  am looking forward for your response

Thanks&Regards

sateesh

 

 

 

 

 

0 Kudos
EricMunYew_C_Intel
Moderator
1,272 Views
0 Kudos
venkatasateesh
Beginner
1,268 Views

Hi Dear Intel team,

 

i have installed patch file also ,still ,same error is occurring ,you have  provided patch file to standard,pro version but will it support  for lite version

 

 

 

Thanks&Regards

sateesh

0 Kudos
EricMunYew_C_Intel
Moderator
1,266 Views

The patch is the same for Lite and Standard.


0 Kudos
EricMunYew_C_Intel
Moderator
1,263 Views

Did you install WSL1 or WSL2 ?


0 Kudos
EricMunYew_C_Intel
Moderator
1,262 Views

APP_LDFLAGS += -msys-lib=$(call adjust-path-mixed,$(SYS_LIB)) might be wrong.

Can you change it to APP_LDFLAGS += -msys-lib=hal_bsp


0 Kudos
Reply