View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0025522 | Community | OCCT:Release | public | 2014-11-26 23:23 | 2016-04-20 15:49 |
| Reporter | solomin_s | Assigned To | bugmaster | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | no change required | ||
| Platform | Android | OS | Ubuntu | ||
| Product Version | 6.8.0 | ||||
| Target Version | 7.0.0 | Fixed in Version | 7.0.0 | ||
| Summary | 0025522: gcc for Android cannot compile lex.step.c in Release mode | ||||
| Description | arm-linux-androideabi-gcc crash while compile drv/StepFile/lex.step.c file. lex.step.c:628:3: internal compiler error: in get_variable_section, at varasm.c:1016 Please submit a full bug report, with preprocessed source if appropriate. See <http://source.android.com/source/report-bugs.html> for instructions. Deleting 628 line in lex.step.c solve problem. Deleting 36 line in step.lex and regenerating files by WOK solve problem too. | ||||
| Steps To Reproduce | 1. Download sources and 3d party tools 2. Configure cmake according to the developer guide 3. Choose BUILD_CONFIGURATION to "Release" 4. Click Configure+Generate 5. build using "make" | ||||
| Additional information and documentation updates | Variable "steplineno" in lex.step.c is declared twice, so compiler get error. gcc for Linux compile this code without error. Visual Studio compiler has no similar problem, because lex.step.c file is different for windows and linux. (likely flex version is different) | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
Please provide complete information about used building toolchain. |
|
|
Used Android NDKr10, arm-linux-androideabi-4.8 toolchain. |
|
|
Have you reported the issue to proper project (gcc / Android) as well? |
|
|
Not yet, but it's not only compiler problem. It's code problem. If I use g++ for compiling, I get: lex.step.c:628:8: error: redefinition of 'int steplineno' |
|
|
There is no such issue with flex on my system (reported as 2.5.4). If you have installed "flex" from Ubuntu repository, maybe "flex-old" would work better? > Not yet, but it's not only compiler problem. It's code problem. Apparently "internal compiler error" is a compiler problem, and broken generated code looks like a problem of code generator flex - so better reporting issue to both projects. |
|
|
I don't use flex. I use sources from site contained generated lex.step.c Ok, how build occ for android in release mode? |
|
|
Dear bugmaster, could you please check flex version used for generation of OCCT 6.8.0 source package and result problematic file? |
|
|
Dear Sergey, could you please confirm / reject that the problem has been reproduced on 6.9.0 / 6.9.1 releases, if you have tried them? |
|
|
The problem is confirmed with OCC 6.9.1. "arm-linux-androideabi-4.9" toolchain from ndk-r10e is using. |
|
|
Dear bugmaster, please check flex version used for generation source archives for OCCT releases. |
|
|
Kirill, We make all generations on Linux station with native flex 2.5.35 |
|
|
Branch CR25522 has been created by ibs. SHA-1: 5376f9e4e81fb79bd051ab00b429eea633f9b54f Detailed log of new commits: Author: ibs Date: Thu Nov 12 15:28:34 2015 +0300 0025522: gcc for Android cannot compile lex.step.c in Release mode asdf |
|
|
Branch CR25522 has been updated forcibly by ibs. SHA-1: caa512874f8d93bf1830f60f8bde302304f71c15 |
|
|
dear solomin_s, current master branch of OCCT git contains fresh corrected lex.step.c. Can the last version of OCCT (master branch) be used for your objectives? If there is that possibility, updated "Building with CMake and ADT for Android" article will describe the way to build OCCT on Android: http://dev.opencascade.org/doc/overview/html/occt_dev_guides__building_android.html Please note, CR26823_1 branch is required to be cherry picked. |
|
|
Hello ibs, I get your branch from git. lex.step.c is compiled correctly (w/o errors), but my build failed. error: cannot find -lGL error: cannot find -lX11 error: cannot find -lXext error: cannot find -lXmu error: cannot find -lXi collect2: error: ld returned 1 exit status src/TKService/CMakeFiles/TKService.dir/build.make:728: recipe for target 'lin32/gcc/lib/libTKService.so' failed It seems CMakeLists.txt not ported for Android. But it's another problem. (I've made some custom changes and building have finished successfully). |
|
|
Branch CR25522 has been updated forcibly by ibs. SHA-1: 65dce995bd922a3f465219a8211f8a9cb347a917 |
|
|
Branch CR25522 has been deleted by ibs. SHA-1: 65dce995bd922a3f465219a8211f8a9cb347a917 |
|
|
Should be fixed (indirectly) in current master by 0024002: version of lex.step.c added in OCCT sources does not suffer the reported problem. Please switch to Verified |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2014-11-26 23:23 | solomin_s | New Issue | |
| 2014-11-26 23:23 | solomin_s | Assigned To | => bugmaster |
| 2014-11-27 14:28 | kgv | Note Added: 0034745 | |
| 2014-11-27 14:28 | kgv | Assigned To | bugmaster => solomin_s |
| 2014-11-27 14:28 | kgv | Status | new => feedback |
| 2014-11-27 14:35 | solomin_s | Note Added: 0034746 | |
| 2014-11-27 14:35 | solomin_s | Assigned To | solomin_s => |
| 2014-11-27 14:49 | kgv | Note Added: 0034747 | |
| 2014-11-27 15:01 | solomin_s | Note Added: 0034748 | |
| 2014-11-27 15:05 | kgv | Note Added: 0034749 | |
| 2014-11-27 15:05 | kgv | Assigned To | => solomin_s |
| 2014-11-27 15:23 | solomin_s | Note Added: 0034750 | |
| 2014-11-27 15:38 | kgv | Note Added: 0034752 | |
| 2014-11-27 15:38 | kgv | Assigned To | solomin_s => bugmaster |
| 2014-11-27 15:38 | kgv | Status | feedback => assigned |
| 2015-10-21 10:53 | kgv | Note Added: 0047253 | |
| 2015-10-21 10:53 | kgv | Assigned To | bugmaster => solomin_s |
| 2015-10-21 10:53 | kgv | Status | assigned => feedback |
| 2015-10-21 12:18 | solomin_s | Note Added: 0047262 | |
| 2015-10-21 12:18 | solomin_s | Assigned To | solomin_s => kgv |
| 2015-10-21 15:05 | kgv | Note Added: 0047281 | |
| 2015-10-21 15:05 | kgv | Assigned To | kgv => bugmaster |
| 2015-10-22 09:50 | bugmaster | Note Added: 0047311 | |
| 2015-11-10 11:14 | kgv | Assigned To | bugmaster => ibs |
| 2015-11-10 11:14 | kgv | Status | feedback => assigned |
| 2015-11-12 17:10 | git | Note Added: 0048114 | |
| 2015-11-12 17:57 | git | Note Added: 0048118 | |
| 2015-11-12 19:01 |
|
Note Added: 0048121 | |
| 2015-11-12 19:01 |
|
Assigned To | ibs => solomin_s |
| 2015-11-12 19:01 |
|
Status | assigned => feedback |
| 2015-11-12 19:05 |
|
Note Edited: 0048121 | |
| 2015-11-13 11:34 | solomin_s | Assigned To | solomin_s => ibs |
| 2015-11-13 11:34 | solomin_s | Note Added: 0048129 | |
| 2015-11-13 11:34 | solomin_s | Status | feedback => assigned |
| 2015-11-13 12:42 | git | Note Added: 0048141 | |
| 2015-11-15 10:16 | kgv | Resolution | open => no change required |
| 2015-11-15 10:16 | kgv | Target Version | => 7.0.0 |
| 2015-11-16 17:42 | git | Note Added: 0048245 | |
| 2015-12-18 11:44 |
|
Note Added: 0049268 | |
| 2015-12-18 11:44 |
|
Assigned To | ibs => bugmaster |
| 2015-12-18 11:44 |
|
Status | assigned => feedback |
| 2015-12-21 11:48 | bugmaster | Status | feedback => tested |
| 2015-12-21 11:49 | bugmaster | Status | tested => verified |
| 2016-04-20 15:43 |
|
Fixed in Version | => 7.0.0 |
| 2016-04-20 15:49 |
|
Status | verified => closed |