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

0.47.1 fails to build on osx when gflags is installed via brew #15540

Closed
debris opened this issue Aug 17, 2017 · 3 comments
Closed

0.47.1 fails to build on osx when gflags is installed via brew #15540

debris opened this issue Aug 17, 2017 · 3 comments
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@debris
Copy link

debris commented Aug 17, 2017

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

10.12.6

  1. react-native -v:
    react-native-cli: 2.0.1
    react-native: 0.47.1
  2. node -v:
    v7.4.0
  3. npm -v:
    5.2.0
  4. yarn --version
    0.27.5

Then, specify:

building on iOS

Steps to Reproduce

react-native run-ios

(android works fine)

Expected Behavior

successful build

Actual Behavior

Undefined symbols for architecture x86_64:
  "google::FlagRegisterer::FlagRegisterer<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(char const*, char const*, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*)", referenced from:
      ___cxx_global_var_init.30 in libReact.a(logging.o)
      ___cxx_global_var_init.73 in libReact.a(logging.o)
      ___cxx_global_var_init.80 in libReact.a(logging.o)
      ___cxx_global_var_init.87 in libReact.a(logging.o)
      ___cxx_global_var_init.108 in libReact.a(logging.o)
      ___cxx_global_var_init.10 in libReact.a(vlog_is_on.o)
  "google::FlagRegisterer::FlagRegisterer<bool>(char const*, char const*, char const*, bool*, bool*)", referenced from:
      ___cxx_global_var_init.5 in libReact.a(logging.o)
      ___cxx_global_var_init.14 in libReact.a(logging.o)
      ___cxx_global_var_init.21 in libReact.a(logging.o)
      ___cxx_global_var_init.39 in libReact.a(logging.o)
      ___cxx_global_var_init.103 in libReact.a(logging.o)
      ___cxx_global_var_init.4 in libReact.a(utilities.o)
  "google::FlagRegisterer::FlagRegisterer<int>(char const*, char const*, char const*, int*, int*)", referenced from:
      ___cxx_global_var_init.24 in libReact.a(logging.o)
      ___cxx_global_var_init.46 in libReact.a(logging.o)
      ___cxx_global_var_init.53 in libReact.a(logging.o)
      ___cxx_global_var_init.60 in libReact.a(logging.o)
      ___cxx_global_var_init.67 in libReact.a(logging.o)
      ___cxx_global_var_init.96 in libReact.a(logging.o)
      ___cxx_global_var_init.3 in libReact.a(vlog_is_on.o)
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@debris
Copy link
Author

debris commented Aug 18, 2017

Ok, so I investigated the issue further and it looks like the bug occurs only when you have gflags library installed on your operating system. I did:

brew uninstall gflags then cleaned the build directory and everything worked as expected

@debris debris changed the title 0.47.1 fails to build new iOS project 0.47.1 fails to build on osx when gflags is installed via brew Aug 18, 2017
@stale
Copy link

stale bot commented Oct 17, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 17, 2017
@stale stale bot closed this as completed Oct 24, 2017
@debris
Copy link
Author

debris commented Oct 24, 2017

it's not fixed. it's still broken. sweeping the issues won't solve them

@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

1 participant