Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fixed redefinition error on clang 7.0.1 with musl#3082

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
opencv-pushbot merged 1 commit intoopencv:masterfromsergiud:wordsize-undefined
Oct 19, 2021

Conversation

@sergiud
Copy link
Contributor

@sergiudsergiud commentedOct 19, 2021
edited by alalek
Loading

Currently, it is not possible compile OpenCV 4.5.4 using Clang 7.0.1 + musl due to__WORDSIZE not being defined. As a consequence, the following error is issued:

opencv_contrib/modules/wechat_qrcode/src/zxing/common/bitarray.cpp:18:5: warning: '__WORDSIZE' is not defined, evaluates to 0 [-Wundef]#if __WORDSIZE == 64    ^opencv_contrib/modules/wechat_qrcode/src/zxing/common/bitarray.cpp:21:23: error: typedef redefinition with different types ('long long' vs 'long')typedef long long int int64_t;                      ^<...>/sysroots/core2-64-<snip>-linux-musl/usr/include/bits/alltypes.h:152:25: note: previous definition is heretypedef signed _Int64   int64_t;                        ^1 warning and 1 error generated.

Since theint64_t typedef is unused in the translation unit anyway, we can simply remove the definition.

Pull Request Readiness Checklist

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
build_image:Custom=ubuntu32:16.04buildworker:Custom=linux-4,linux-6

Copy link
Member

@alalekalalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you 👍

@opencv-pushbotopencv-pushbot merged commit71f9dbd intoopencv:masterOct 19, 2021
@alalekalalek mentioned this pull requestDec 30, 2021
@alalekalalek mentioned this pull requestFeb 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@alalekalalekalalek approved these changes

Assignees

@alalekalalek

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@sergiud@alalek@opencv-pushbot

[8]ページ先頭

©2009-2025 Movatter.jp