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

Time.h typedef redefinition with iOS 10 set as a deployment target #1470

Open
grabbou opened this issue Oct 7, 2020 · 18 comments
Open

Time.h typedef redefinition with iOS 10 set as a deployment target #1470

grabbou opened this issue Oct 7, 2020 · 18 comments

Comments

@grabbou
Copy link

grabbou commented Oct 7, 2020

Hey,

I am working on a Hermes support for React Native and while working on it, I have run into the following issue, when building the React Native project:

Screenshot_2020-10-01_at_11 07 41

React Native has deployment target set to 10.0 for all its parts, including third party pod specs such as RCT-Folly, that it defines to download and compile Folly with pieces that it needs. After changing the deployment target for RCT-Folly specifically from 10.0 to 9.0, the issue goes away.

This is a temporary workaround that we have implemented to unblock the PR.

I believe it is caused by the following code:

#if __MACH__ &&                                                       \
        ((!defined(TARGET_OS_OSX) || TARGET_OS_OSX) &&                \
         (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)) || \
    (TARGET_OS_IPHONE && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0))

#ifdef FOLLY_HAVE_CLOCK_GETTIME
#undef FOLLY_HAVE_CLOCK_GETTIME
#endif

#define FOLLY_HAVE_CLOCK_GETTIME 1
#define FOLLY_FORCE_CLOCK_GETTIME_DEFINITION 1

#endif

The way I read it is - when building for iPhone and targeting iOS versions lower than 10.0 (e.g. 9.0), don't define macros. When building for newer iOS release, such as 10.0, define it. Shouldn't it be the opposite, if the purpose was to provide backwards compatibility?

The issue is being brought up from time to time in various projects - that's where I have learnt about the "deployment target" workaround:

Here are my questions:

  • What was the original intent behind this particular if condition? Where is the "__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0" requirement coming from?
  • Is the workaround applied in our PR a valid fix?
@Orvid
Copy link
Contributor

Orvid commented Oct 10, 2020

In general the fixes for clock_gettime on apple platforms have been a bit complicated, but hopefully @chadaustin has some idea if this would be the right fix for iOS.

@hengkx
Copy link

hengkx commented Oct 14, 2020

same

@chadaustin
Copy link
Contributor

This stuff is always a pain. I'm trying to understand exactly what's going on in your failing case.

We only #define CLOCK_REALTIME if FOLLY_HAVE_CLOCK_GETTIME is 0 (and Apple/Windows).

Would it make sense if

#if !FOLLY_HAVE_CLOCK_GETTIME && (defined(__MACH__) || defined(_WIN32))
checked FOLLY_FORCE_CLOCK_GETTIME_DEFINITION instead?

Are you asking about the PR that pins back to iOS 9.0? I'd support tweaking these conditions to make them more accurate.

@grabbou
Copy link
Author

grabbou commented Oct 23, 2020

We only #define CLOCK_REALTIME if FOLLY_HAVE_CLOCK_GETTIME is 0 (and Apple/Windows).

Yeah, and this seems to be only valid when __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0 is false. In other words, you define CLOCK_REALTIME on all iOS that are 10.0 or newer.

Is that correct? If yes, why? My gut feeling would be that any backwards compatibility should be run on older releases of iOS, not newer.

Since React Native targets iOS 10.0 by default, I had to manually set Folly project to 9.0 as a deployment target.

@gaberogan
Copy link

This is still an issue for me in May 2021. Is there a plan to fix?

@jwaldrip
Copy link

jwaldrip commented May 7, 2021

This is an issue for me as well after the 12.5 upgrade. Do we have any idea on a fix timeline? I would PR but I don't want the fix to cause issues with older versions of xcode.

@fierysolid
Copy link

set __IPHONE_10_0 to __IPHONE_12_0 inside of Time.h for a temp workaround

@kyle-ssg
Copy link

Unfortunately setting __IPHONE_12_0 still throws this for me.

@spencerKitson
Copy link

Changing to __IPHONE_12_0 as per @fierysolid's suggestion worked for me.

@emretapci
Copy link

emretapci commented Sep 27, 2021

I forced the #if macro to evaluate to true by adding 1 || to the following line:

#if 1 || __MACH__ &&                                                       \
        ((!defined(TARGET_OS_OSX) || TARGET_OS_OSX) &&                \
         (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12)) || \
    (TARGET_OS_IPHONE && (__IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_10_0))

and it compiled successfully.

@supercranky
Copy link

I solved it by adding this to the Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "RCT-Folly"
      target.build_configurations.each do |config|
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'FOLLY_HAVE_CLOCK_GETTIME=1']
      end
    end
  end
end

By modifiing GCC_PREPROCESSOR_DEFINITIONS for RCT-Folly you don't have to touch the source (and works with a clean install)

@atsuya046
Copy link

@supercranky's suggestion worked for me.

@Saadnajmi
Copy link
Contributor

#1688 Might fix this ?

@dennisplucinik
Copy link

I solved it by adding this to the Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == "RCT-Folly"
      target.build_configurations.each do |config|
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'FOLLY_HAVE_CLOCK_GETTIME=1']
      end
    end
  end
end

By modifiing GCC_PREPROCESSOR_DEFINITIONS for RCT-Folly you don't have to touch the source (and works with a clean install)

This solved it for me. Running Xcode 13.1 on a Mac Mini M1 macOS v11.6 with React Native 0.66.2

rcari added a commit to rcari/folly that referenced this issue Feb 24, 2022
The way the detection is operated is error-prone and causes a wide variety of
build errors due to clockid_t redefinitions when building for iOS simulators,
see [1] & [2].
Using the __CLOCK_AVAILABILITY macro introduced when clock_gettime was
introduced to the SDKs is the safer approach, see [3].

See:
 - [1] facebook#1470
 - [2] facebook/flipper#834
 - [3] https://developer.apple.com/forums/thread/67102
rcari added a commit to rcari/folly that referenced this issue Feb 24, 2022
On Apple platforms, following the SDK development [1] guidelines, we can check
for the availability (as in definition) of symbols using macros. This is more
reliable notably when targeting iOS platforms or simulators where the previous
approach used to create redefinition problems [2] & [3].

[1] https://developer.apple.com/forums/thread/67102
[2] facebook#1470
[3] facebook/flipper#834
facebook-github-bot pushed a commit that referenced this issue Aug 23, 2022
Summary:
On Apple platforms, following the SDK development [1] guidelines, we can check
for the availability (as in definition) of symbols using macros. This is more
reliable notably when targeting iOS platforms or simulators where the previous
approach used to create redefinition problems [2] & [3].

[1] https://developer.apple.com/forums/thread/67102
[2] #1470
[3] facebook/flipper#834

Pull Request resolved: #1724

Reviewed By: Gownta

Differential Revision: D38406371

Pulled By: Orvid

fbshipit-source-id: c5e37d3cd7d8764049953ffba6c6a449217c8cb1
facebook-github-bot pushed a commit to facebook/hhvm that referenced this issue Aug 23, 2022
Summary:
On Apple platforms, following the SDK development [1] guidelines, we can check
for the availability (as in definition) of symbols using macros. This is more
reliable notably when targeting iOS platforms or simulators where the previous
approach used to create redefinition problems [2] & [3].

[1] https://developer.apple.com/forums/thread/67102
[2] facebook/folly#1470
[3] facebook/flipper#834

X-link: facebook/folly#1724

Reviewed By: Gownta

Differential Revision: D38406371

Pulled By: Orvid

fbshipit-source-id: c5e37d3cd7d8764049953ffba6c6a449217c8cb1
rcari added a commit to rcari/folly that referenced this issue Aug 25, 2022
Summary:
On Apple platforms, following the SDK development [1] guidelines, we can check
for the availability (as in definition) of symbols using macros. This is more
reliable notably when targeting iOS platforms or simulators where the previous
approach used to create redefinition problems [2] & [3].

[1] https://developer.apple.com/forums/thread/67102
[2] facebook#1470
[3] facebook/flipper#834

Pull Request resolved: facebook#1724

Reviewed By: Gownta

Differential Revision: D38406371

Pulled By: Orvid

fbshipit-source-id: c5e37d3cd7d8764049953ffba6c6a449217c8cb1
@Saadnajmi
Copy link
Contributor

We can close this?

@NickGerleman
Copy link
Contributor

NickGerleman commented Oct 4, 2023

I updated React Native to a version of Folly with the fix in 4a2410f and we just started seeing the redefinition error again 😅. Going to try to workaround with manually setting FOLLY_HAVE_CLOCK_GETTIME for now...

@Saadnajmi
Copy link
Contributor

I updated React Native to a version of Folly with the fix and we just started seeing the redefinition error for the first time 😅. Going to try to workaround with manually setting FOLLY_HAVE_CLOCK_GETTIME for now...

Oh :(, you might want to undo my earlier change removing the patch then.

@NickGerleman
Copy link
Contributor

NickGerleman commented Oct 4, 2023

Let me try manually setting the availability first. Would rather that then the sed style patching to headers happening before. Though, we should maybe try another spin at fixing feature detection.

Afaict, in a stock CocoaPods XCode 15 setup, __CLOCK_AVAILABILITY is not set, so after the change, we fail the new detection.

NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]


Differential Revision: D49897681

Pulled By: NickGerleman
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]


Differential Revision: D49897681

Pulled By: NickGerleman
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]


Differential Revision: D49897681

Pulled By: NickGerleman
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]


Differential Revision: D49897681

Pulled By: NickGerleman
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 65efed462426d42b297bee883c1a99252b494193
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 0312a292fc2b308cc2789a8f0baf1cc47106df59
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 431b6227170db98e90bda26f7feefe2696c544b7
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 955c646a7dd3497d4c3f653e1aba0a0537f91ecc
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: da81801cf6af119bac197eeb04b98e6c936cafbb
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 410520c273ea9b76bc9ecdd73e7397af06e6701c
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 3228277e2b91d171d697ff142126254c3ab9797e
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 5b3284b19cb7e0f1c1e45aad18b83f7868275eb4
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 90ee0a0c6a3624630dc5ba36853fb8c3480293be
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 413bf62eed55a7c90fd453dfee3e55e1803b5d87
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 1b2468fb20ef5d2c5e57d96d332091fb7f6155b6
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 59d498a848fa6d7653140cdb91b96b4e3145b8eb
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 403d5d18ea53d5b9045cfab0217cda0e6fd4a466
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 4, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: de0bd7c724628fdb42f13f60a978eb35ddbf01d7
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: d83c013d26a85597fb7c1f60e840d5eb48078bc5
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: ff36b855d8380fbc0f9401ee10302d7de8c28af7
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 78f31ac5273269adb7abac38795ca571bfb0504d
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 35bf7e7aec28592f3beacc906eb0b43ebb5aec47
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 98dfcf43a51d59ef401b4101849ac4acfa00dd78
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 507708adcd4e4776bf1acaacbd0a0cea912b1462
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: aa25f20afde35eaf916667e7ee588caaea434514
NickGerleman added a commit to NickGerleman/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook#39798

Differential Revision: D49897681

fbshipit-source-id: 21ddba73d0434bf82c15f3a18e6a15d14c18c503
facebook-github-bot pushed a commit to facebook/react-native that referenced this issue Oct 5, 2023
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: #39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3
blakef pushed a commit to blakef/template that referenced this issue Feb 28, 2024
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook/react-native#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3

Original: facebook/react-native@aefefdb
blakef pushed a commit to react-native-community/template that referenced this issue Feb 29, 2024
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook/react-native#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3

Original-Commit: facebook/react-native@aefefdb
blakef pushed a commit to react-native-community/template that referenced this issue Feb 29, 2024
Summary:
This bumps folly, to absorb facebook/folly@45fffa6 which fixes warnings in XCode 15, and NDK 26 (treated as error bc we have better hygiene there). We then bump a little bit further to get past a new warning added, then fixed later.

Need to manually set `FOLLY_HAVE_GETTIME` on Apple because of the silliness described in facebook/folly#1470 (comment)

There is not a combination of Folly, and Android libc++, that has fixes for warnings, but doesn't require the new libc++ in NDK 26. It is expected then that this commit will fail the build, but the next should succeed, and the two must be landed at the same time.

Changelog: [Internal]

Pull Request resolved: facebook/react-native#39798

Reviewed By: fkgozali

Differential Revision: D49897681

Pulled By: NickGerleman

fbshipit-source-id: 52b97ed5b302abf9e27f38dc655207827852dcc3

Original-Commit: facebook/react-native@aefefdb
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

No branches or pull requests