Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurs when export to e2studio by using GR-PEACH board on Online Compiler #5612

Closed
TomoYamanaka opened this issue Nov 29, 2017 · 32 comments

Comments

@TomoYamanaka
Copy link
Contributor

Description

  • Type: Question
  • Priority: Major

Question

When exporting the mbed program to Renesas' IDE e2studio by using GR-PEACH, the following error is shown on Online Compiler.

An error occurred during export. Please contact support

The situation of this issue is the below.

  • If my memory serves correctly, there was no problem until beginning of Oct.
  • This error occurs even use Mbed OS 5.4.7(GR-PEACH is active as target device).

Could you confirm the above?
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 30, 2017

cc @theotherjimmy

@TomoYamanaka
Copy link
Contributor Author

How is going? Any update?

It seems that this problem blocks GR-PEACH users' activity.
Thus, if you could update me on this soon, it would be very helpful.

@theotherjimmy
Copy link
Contributor

@TomoYamanaka I just verified that the online compiler builds with versions of Mbed OS that support the GR Peach. I'll have to track down why the export is failing.

@theotherjimmy
Copy link
Contributor

this line is the problem. It's just an undefined variable.

@theotherjimmy
Copy link
Contributor

2cbca70 Was an inconsistent update.

@TomoYamanaka
Copy link
Contributor Author

Could you please let me know when the above was merged into Online system?
I will check whether it is available to export to e2studio.

@TomoYamanaka
Copy link
Contributor Author

How is going?
Although I verified this issue by using Mbed OS 5.7.2, it seems that #5657 (is merged in Mbed OS 5.7.1) don't still merge into Online Compiler.

@theotherjimmy
Copy link
Contributor

Hi Tomo!

I'll push up the most recent version of the tools to the online compiler. I was out for much of the mean time and had not gotten around to it yet. Sorry about that.

@TomoYamanaka
Copy link
Contributor Author

Hi @theotherjimmy
Please let me know when the above was pushed up the Online Compiler.

@toyowata
Copy link
Contributor

@theotherjimmy Can you please update the current status?

@theotherjimmy
Copy link
Contributor

Web team has still not merged the tools update.

@toyowata
Copy link
Contributor

toyowata commented Mar 19, 2018

@theotherjimmy
The fix for online tools deployed and I confirmed the e2studio exporter works now.

However, I can not export particular program to e2studio.

[Step to reproduce]

Then, I got Page Error.

But, I can exported programs below without errors:

https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-blinky/export
https://os.mbed.com/teams/Renesas/code/GR-PEACH_HVC-P2_sample/export
https://os.mbed.com/teams/Renesas/code/GR-PEACH_WebCamera/export

@theotherjimmy
Copy link
Contributor

@TomoYamanaka Have you checked that the project compiles and does not produce a config error?

@TomoYamanaka
Copy link
Contributor Author

In the below program, it seems that the above export error message occur on Online compiler yet. Other programs seem to have no problem regarding to export.
https://os.mbed.com/teams/Renesas/code/GR-PEACH_mbed-os-client-ZXingSample/

export error message:

An error occurred during export. Please contact
support@mbed.com.

And, although I checked whether the exported program(ex: mbed-os-example-blinky) compiles on e2studio, I faced many compile error. compile error message:
fatal error: flash-journal-strategy-sequential/flash_journal_crc.h: No such file or directory
fatal error: flash-journal-strategy-sequential/flash_journal_crc.h: No such file or directory
fatal error: storage-volume-manager/storage_volume_manager.h: No such file or directory
fatal error: storage-volume-manager/storage_volume_manager.h: No such file or directory

@theotherjimmy
Copy link
Contributor

@TomoYamanaka I think you'd be hard pressed to find a different online compiler error message. I'll have a look at that reproducing example tomorrow.

@theotherjimmy
Copy link
Contributor

Oh. That project is too big to export. The online compiler is timing out. I think. @immunda @thegecko Is there something I could do to improve the performance of export so that this does not happen?

@thegecko
Copy link
Member

We could increase the timeout, but perhaps cutting down the export size would be a better way to go? E.g. removing targets and history?

@theotherjimmy
Copy link
Contributor

@thegecko We already don't include other targets or any history.

@thegecko
Copy link
Member

@theotherjimmy Please raise an IOTTOO ticket for us to investigate the timeout. A specific re-creatable use case would be really helpful.

@theotherjimmy
Copy link
Contributor

Let me verify that this example does trigger the timeout. Then I'll raise an issue for it.

@theotherjimmy
Copy link
Contributor

It's not triggering a timeout. It's a config error that is a bug.

@theotherjimmy
Copy link
Contributor

theotherjimmy commented Mar 22, 2018

I resolved that bug on partnerbeta, but now the requests just die, with no exception or anything. Alright. No timeout occurs on partnerbeta.

@theotherjimmy
Copy link
Contributor

see #6428

@toyowata
Copy link
Contributor

@theotherjimmy I still got timeout error for the particular project here:
https://os.mbed.com/teams/Renesas/code/GR-PEACH_mbed-os-client-ZXingSample/export

Can you please check?

@yennster
Copy link
Contributor

yennster commented Apr 17, 2018

@theotherjimmy The same error also still occurs with this Renesas project in the online compiler with the GR-PEACH target and e2 Studio IDE: https://os.mbed.com/teams/Renesas/code/GR-PEACH_WebCamera/

@MarceloSalazar
Copy link

Internal reference: IOTMORF-2325

@theotherjimmy
Copy link
Contributor

@thegecko I get a "timeout has occured" dialog, then 20sec later, the zip file. Something seems to be going wrong with the front end here.

@theotherjimmy
Copy link
Contributor

@TomoYamanaka I can no longer reproduce this bug.

@ciarmcom
Copy link
Member

ciarmcom commented Jun 1, 2018

ARM Internal Ref: MBOTRIAGE-120

@TomoYamanaka
Copy link
Contributor Author

I confirmed the below.

  • Export to e2studio
    The phenomenon that I mentioned at first description was fixed, and I could export without error message on Online Compiler.

  • Build on e2studio
    Unfortunately, I faced the several build error when compiled the exported programs on e2studio.
    The build errors are a bit different by programs, but I frequently face messages such as "No such file or directory".
    Also I can build those programs on online compiler without problem.
    Thus I think that Exporter may have lost some files when exporting.


program Export to e2studio Build on e2studio
mbed-os-example-blinky OK NG
GR-PEACH_mbed-os-client-ZXingSample OK NG
GR-PEACH_HVC-P2_sample OK NG
GR-PEACH_WebCamera OK NG

For example, when building exported mbed-os-example-blinky(mbed os 5.8.5) on e2studio, the following error message is shown.

../mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume.cpp:25:59: fatal error: storage-volume-manager/storage_volume_manager.h: No such file or directory
 #include "storage-volume-manager/storage_volume_manager.h"
                                                           ^
../mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume_manager.cpp:25:59: fatal error: storage-volume-manager/storage_volume_manager.h: No such file or directory
 #include "storage-volume-manager/storage_volume_manager.h"
                                                           ^
../mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/flash_journal_crc.c:18:65: fatal error: flash-journal-strategy-sequential/flash_journal_crc.h: No such file or directory
 #include "flash-journal-strategy-sequential/flash_journal_crc.h"
                                                                 ^
make: *** [mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume_manager.o] Error 1
mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/subdir.mk:21: recipe for target 'mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume_manager.o' failed
make: *** Waiting for unfinished jobs....
make: *** [mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume.o] Error 1
mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/subdir.mk:21: recipe for target 'mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume.o' failed
make: *** [mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/flash_journal_crc.o] Error 1
mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/subdir.mk:24: recipe for target 'mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/flash_journal_crc.o' failed
../mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/strategy.c:18:65: fatal error: flash-journal-strategy-sequential/flash_journal_crc.h: No such file or directory
 #include "flash-journal-strategy-sequential/flash_journal_crc.h"
                                                                 ^
make: *** [mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/strategy.o] Error 1
mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/subdir.mk:24: recipe for target 'mbed-os/features/storage/FEATURE_STORAGE/flash-journal/flash-journal-strategy-sequential/strategy.o' failed

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 6, 2018

@TomoYamanaka Would it make sense to create a new issue. As this one was fixed - building in the online IDE and also exporting. Now the exporter has an issue.

../mbed-os/features/storage/FEATURE_STORAGE/storage-volume-manager/source/storage_volume.cpp:25:59: fatal error: storage-volume-manager/storage_volume_manager.h: No such file or directory
#include "storage-volume-manager/storage_volume_manager.h"

Looks like exporter also included file from feature storage (but not included headers in the include paths) ?

@TomoYamanaka
Copy link
Contributor Author

@0xc0170
I closed this and created a new issue(#7155 ) since the problem that could not export was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants