E2Studio/gitlab/make questione2studio

Don't know which is the correct forum for this but I have recently imported a project from HEW to e2studio.  Manually rather than use the import function as we have lots of special processes involved.

The project builds fine but I would like to run the makefile it generates from the command line so that I can use a gitlab runner to compile the project.

So far I have checked into gitlab all the makefile, the makefile.init objects.mk, source.mk and any subdir.mk files.

 

If I run the makefile from the HardwareDebug directory using the following command

>c:\Renesas\e2_studio\Utilities\make -j4 all 

everything build fine.

In gitlab I have registered a runner to execute the following script to build

build:
 script:
  - cd HardwareDebug
  - c:\\renesas\\e2_studio\\utilities\\make -j4 all

this almost works but finishes with the following error

 

 

rx-elf-gcc -T "C:/WorkSpace/90460_SmartCell_CIE_Eclipse/generate/linker_script.ld" -L"C:\WorkSpace\90460_SmartCell_CIE_Eclipse\HardwareDebug" -Wl,-M=90460_SmartCell_CIE_Eclipse.map -Wl,--start-group -l90460_SmartCell_CIE_Eclipse -lgcc -Wl,--end-group -nostartfiles -Wl,-e_PowerON_Reset -o "90460_SmartCell_CIE_Eclipse.elf"

c:/program files (x86)/kpit/gnurxv16.01-elf/rx-elf/rx-elf/bin/../lib/gcc/rx-elf/4.8-GNURX_v16.01/../../../../rx-elf/bin/ld.exe: cannot find -90460_SmartCell_CIE_Eclipse

collect2.exe: error: ld returned 1 exit status
makefile:88: recipe for target '90460_SmartCell_CIE_Eclipse.elf' failed
make: *** [90460_SmartCell_CIE_Eclipse.elf] Error 1

 

 

Here is the correct ending when running from the command line

rx-elf-gcc -T "C:/WorkSpace/90460_SmartCell_CIE_Eclipse/generate/linker_script.ld" -L"C:\WorkSpace\90460_SmartCell_CIE_Eclipse\HardwareDebug" -Wl,-M=90460_SmartCell_CIE_Eclipse.map -Wl,--start-group -l90460_SmartCell_CIE_Eclipse -lgcc -Wl,--end-group -nostartfiles -Wl,-e_PowerON_Reset -o "90460_SmartCell_CIE_Eclipse.elf"
'Finished building target: 90460_SmartCell_CIE_Eclipse.elf'
' '
'Invoking Object Copy'
rx-elf-objcopy "90460_SmartCell_CIE_Eclipse.elf" -O srec -I elf32-rx-be-ns "90460_SmartCell_CIE_Eclipse.mot"
'Finished building: 90460_SmartCell_CIE_Eclipse.mot'
' '

 

 

Has anyone successfully run the make process from gitlab or come across the error above.

 

Paul

  • This just in, and others, if you rename copy/paste e2studio.ini and rename the copy to eclipsec.ini, you can use eclipsec.exe and the build output it printed to the same window! I guess it paid off to search through the 6.3.0 release notes: www2.renesas.eu/.../openissues.htm
  • Okay, the reason I am asking is, suppose you have your "configuration.xml" under version control.
    And someone makes changed to this, how to those changes propagate to the new automated build?
  • "configuration.xml" should be under version control. You have two options from there:

    1. If you have your synergy generated files checked-in to source control, you would click "Generate Project Content" and you will see what was changed and needs to be added, and you will check them in
    2. If you don't have your synergy generated files checked-in to source control, the headless build process will still automatically generate those when you perform the next headless build.

    The question I don't have an answer to is, will headless builds automatically "Generate Project Content" every time its called regardless of whether or not the generated files already exist, because if that is the case, there is no point is checking in generated project files and they should be ignored.
  • this helped to see the fault a bit easier, I've upgrade to 6.3.0 as well. So when it goes wrong it first shows .options not found
    then
    time to load bundles:8
    Starting application: 1543
    Opening 'WorskpaceName'.
    WARNING: No Project matched "90460_SmartCell_CIE_Eclipse\HardwareDebug". Skipping...
    Saving workspace.


    Then it exits the build.