Anonymous | Login | 2021-03-01 18:56 MSK | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] [ Related Changesets ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0031606 | Open CASCADE | [OCCT] OCCT:Configuration | public | 2020-06-10 19:50 | 2020-12-02 17:13 | ||||
Reporter | kgv | ||||||||
Assigned To | bugmaster | ||||||||
Priority | normal | Severity | minor | ||||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | [OCCT] 7.0.0 | ||||||||
Target Version | [OCCT] 7.5.0 | Fixed in Version | [OCCT] 7.5.0 | ||||||
Summary | 0031606: Configuration, CMake - build fails with Android NDK + CLang compiler + MinGW Makefiles | ||||||||
Description | Building with Android NDK 21c on Windows leads to the following error:clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument] c:\android-ndk-r21c\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: unrecognized option '--export-all-symbols' c:\android-ndk-r21c\toolchains\llvm\prebuilt\windows-x86_64\bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: use the --help option for usage information clang++: error: linker command failed with exit code 1 (use -v to see invocation) Apparently, this happens due to "if(MINGW)" checks in CMake scripts intended only for GCC compiler and Windows target platform introduces by 0027197. | ||||||||
Steps To Reproduce | cmake -G "MinGW Makefiles" ^ -D CMAKE_SYSTEM_NAME:STRING="Android" ^ -D CMAKE_ANDROID_NDK="c:/android-ndk-r21c" ^ -D CMAKE_BUILD_TYPE:STRING="Release" ^ -D CMAKE_ANDROID_ARCH_ABI:STRING="arm64-v8a" ^ -D CMAKE_SYSTEM_VERSION:STRING="21" ^ -D CMAKE_ANDROID_STL_TYPE="c++_shared" ^ -D BUILD_LIBRARY_TYPE:STRING="Shared" ... | ||||||||
Tags | No tags attached. | ||||||||
Test case number | Not required | ||||||||
Attached Files | |||||||||
![]() |
||||||||||||||||||||||||||
|
![]() |
|
(0092537) git (administrator) 2020-06-10 20:05 |
Branch CR31606 has been created by kgv. SHA-1: bf1fbc76b4c8be2e4fd72ec94d7fc082a45bcec5 Detailed log of new commits: Author: kgv Date: Wed Jun 10 20:07:12 2020 +0300 0031606: Configuration, CMake - build fails with Android NDK + CLang compiler + MinGW Makefiles CLang is now checked before MINGW within occt_defs_flags.cmake. Added "-Wl,-s" linker flag when using CLang for stripping symbols consistently to GCC builds. |
(0092538) git (administrator) 2020-06-10 22:00 |
Branch CR31606 has been updated forcibly by kgv. SHA-1: 0fd2e6440efa01e1e0228cdd77ebb170c9062726 |
(0092541) kgv (developer) 2020-06-11 08:24 |
Please raise the patch. http://jenkins-test-12.nnov.opencascade.com/view/CR31606-CR31606-KGV/ [^] |
(0092609) git (administrator) 2020-06-20 13:42 |
Branch CR31606 has been deleted by inv. SHA-1: 0fd2e6440efa01e1e0228cdd77ebb170c9062726 |
![]() |
|||
occt: master 32b723d5
Timestamp: 2020-06-10 17:07:12 Author: kgv Committer: bugmaster [ Details ] [ Diff ] |
0031606: Configuration, CMake - build fails with Android NDK + CLang compiler + MinGW Makefiles CLang is now checked before MINGW within occt_defs_flags.cmake. Added "-Wl,-s" linker flag when using CLang for stripping symbols consistently to GCC builds. |
||
mod - adm/cmake/occt_defs_flags.cmake | [ Diff ] [ File ] | ||
![]() |
|||
Date Modified | Username | Field | Change |
2020-06-10 19:50 | kgv | New Issue | |
2020-06-10 19:50 | kgv | Assigned To | => kgv |
2020-06-10 20:05 | git | Note Added: 0092537 | |
2020-06-10 22:00 | git | Note Added: 0092538 | |
2020-06-11 08:24 | kgv | Note Added: 0092541 | |
2020-06-11 08:24 | kgv | Assigned To | kgv => bugmaster |
2020-06-11 08:24 | kgv | Status | new => resolved |
2020-06-11 08:24 | kgv | Status | resolved => reviewed |
2020-06-11 08:30 | kgv | Relationship added | child of 0028135 |
2020-06-11 08:35 | kgv | Product Version | 7.4.0 => 7.2.0 |
2020-06-11 08:35 | kgv | Relationship added | child of 0027197 |
2020-06-11 08:36 | kgv | Relationship added | child of 0026911 |
2020-06-11 08:38 | kgv | Product Version | 7.2.0 => 7.0.0 |
2020-06-11 08:38 | kgv | Description Updated | View Revisions |
2020-06-14 10:52 | bugmaster | Changeset attached | => occt master 32b723d5 |
2020-06-14 10:52 | bugmaster | Status | reviewed => verified |
2020-06-14 10:52 | bugmaster | Resolution | open => fixed |
2020-06-14 10:53 | bugmaster | Test case number | => Not required |
2020-06-17 13:45 | kgv | Relationship added | parent of 0031614 |
2020-06-20 13:42 | git | Note Added: 0092609 | |
2020-12-02 16:43 | emo | Fixed in Version | => 7.5.0 |
2020-12-02 17:13 | emo | Status | verified => closed |
Copyright © 2000 - 2021 MantisBT Team |