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

Fix #3440, macos build issues #3532

Merged
merged 4 commits into from
Oct 28, 2021
Merged

Fix #3440, macos build issues #3532

merged 4 commits into from
Oct 28, 2021

Conversation

myungjoo
Copy link
Member

Tested in macOS 11.2.1, with $ meson build && ninja -C build.

This fixes #3440 (not tested with brew as nnstreamer is no longer available in homebrew: @wooksong could you please re-register it?)

@sebastient Does this fix the issue in your env?

@taos-ci
Copy link
Collaborator

taos-ci commented Oct 27, 2021

📝 TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #3532. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

GLib-Once (g_once_init_enter/leave) have already taken
care of concurrency.
Its users do not need to worry about cache coherency or
concurrency issues for the initialization.

Actually, as nnstreamer#3440 is showing, the volatile keyword
is neglected by g_once_init_enter function, making
the usage of volatile meaningless anyway.

Remove volatile keyword and mitigate the first
compiler warning-error of nnstreamer#3440

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
EREMOTEIO is Linux-specific error code.
For the compatibility with non-Linux systems,
define it if it's undefined.

This partially addresses nnstreamer#3440

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Disable lua subplugin build if lua is >= 5.3

Reenable Lua >= 5.3 build if nnstreamer#3531 is fixed.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
The parser code is not comaptible with macos.
Reenable after fixing them.
This is probably because of parser library versions.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
@myungjoo myungjoo force-pushed the fix/3440 branch 2 times, most recently from be3fa88 to 8eb0398 Compare October 28, 2021 02:04
Copy link
Collaborator

@taos-ci taos-ci left a comment

Choose a reason for hiding this comment

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

@myungjoo, 💯 All CI checkers are successfully verified. Thanks.

Copy link
Member

@gichan-jang gichan-jang left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -29,6 +29,10 @@
#define N_BACKLOG 10
#define CLIENT_ID_LEN 4

#ifndef EREMOTEIO
#define EREMOTEIO 121 /* This is Linux-specific. Define this for non-Linux systems */
Copy link
Member

Choose a reason for hiding this comment

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

I will fix it later.

@myungjoo myungjoo merged commit 401989a into nnstreamer:main Oct 28, 2021
@wooksong
Copy link
Member

@myungjoo Acked:)

@myungjoo myungjoo deleted the fix/3440 branch January 3, 2024 08:02
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

Successfully merging this pull request may close these issues.

Incorrect usage of volatile causes compilation issues on MacOS (possibly others)
5 participants