Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
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.
21615 Discussions

unexpected EOF while looking for matching `"'

Altera_Forum
Honored Contributor II
4,272 Views

After upgrading my Quartus and NIOS II EDS tools to version 9.1 SP2 i get the following error when running the Makefile for the Application code.  

Prior to this I have run my create-this-app script.  

 

[NiosII EDS]$ make 

Info: Building ../../bsp/AccuRangeBsp 

make --no-print-directory -C ../../bsp/AccuRangeBsp 

[BSP build complete] 

Info: Compiling Application/app.c to obj/Application/app.o 

nios2-elf-gcc -xc -MP -MMD -c -I../../bsp/AccuRangeBsp/UCOSII/inc -I../../bsp/Ac 

cuRangeBsp/iniche/inc -I../../bsp/AccuRangeBsp/iniche/src/h -I../../bsp/AccuRang 

eBsp/iniche/src/h/nios2 -I../../bsp/AccuRangeBsp/iniche/src/nios2 -I../../bsp/Ac 

cuRangeBsp -I../../bsp/AccuRangeBsp/drivers/inc -I../../bsp/AccuRangeBsp/HAL/inc 

-IApplication -IBSP -IEthernet -Ifonts -IGUI -Ialt_eeprom -IFlash -I../bsp/Accu 

RangeBsp/iniche/src/h -I../bsp/AccuRangeBsp/iniche/inc -I" -DSYSTEM_BUS_WIDTH=3 

2 -D__hal__ -pipe -DALT_NO_INSTRUCTION_EMULATION -DALT_INICHE -D__ucosii__ -DTAR 

GET_NIOSII -O0 -g -Wall -mno-hw-div -mhw-mul -mno-hw-mulx -o obj/Applicati 

on/app.o Application/app.c 

/bin/sh: -c: line 0: unexpected EOF while looking for matching `"' 

/bin/sh: -c: line 1: syntax error: unexpected end of file 

make: *** [obj/Application/app.o] Error 2 

/cygdrive/f/SIMRAD_Projects/NIOS/TASK02_AccuRange/Code/AccuRange_ADB/SW/app/Accu 

Range 

[NiosII EDS]$ 

 

While trying to pin down the cause of this error I have removed all my application source files save one and thats an empty app.c file, and run create-this-app again to get a new makefile. But still I get this error.  

 

The BSP build was sucessful it seems though as the create-this-bsp script created all the expected files and directories.  

 

Another case is that the FPGA design is also new here. That is, it was redesigned by another developer and new PTF, SOPCINFO and SOF files was created. But since these files was created with version 9.1 SP2 I thought it best to upgrade my tools as well.  

 

My previous FPGA design ran well with version 9.0 tools and its the same application code. It all runs on an Altera Cyclone III Development Board.  

 

Any help on this ?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
2,403 Views

I get this a lot after changing certain parts of my SOPC config. I don't know why and the only way I know of to get rid of this is to delete the bsp project (not the app project) and re-create it. Using the Generate BSP option does not resolve this issue neither does a Clean All - Build. One of these days I will dig deeper and see why that is. For now, re-creating the bsp project is not a big deal since none of my code resides there. I hope this helps.

0 Kudos
Altera_Forum
Honored Contributor II
2,403 Views

Thanks for the suggestion :) . I have tried to rebuild the BSP though, but its still the same error.

0 Kudos
Altera_Forum
Honored Contributor II
2,403 Views

By comparing the old (working) makefile with the new one, I noticed that the new makefile had an " at the end of the line at the APP_INCLUDE_DIRS :=  

By removing this " the error message unexpected EOF while looking for matching`"'disappears. 

The excessive " can not be removed in the create-this-app file. If you do you get a unexpected EOF error for create-this-app instead.  

So the solution is : 

1) First run create-this-app form the Nios II EDS 9.1 command shell 

2) Then edit the Makefile which is created by removing the last “ on the APP_INCLUDE_DIRS := line  

 

I hope this may help others that have experienced a similar problem and it seems to be some mismatch here when upgrading from NIOS II EDS 9.0 to 9.1
0 Kudos
Reply