SQLite Forum

Timeline
Login

1 forum post by user paulocoutinho

2021-08-12
22:40 Post: Some warnings when build for mac catalyst (artifact: 935b59839d user: paulocoutinho)

Hi,

Some warnings when build for mac catalyst:

-- Build files have been written to: /Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115
[ 50%] Building C object CMakeFiles/sqlite3.dir/source_subfolder/sqlite3.c.o
clang: warning: overriding '-mmacosx-version-min=10.15' option with '--target=x86_64-apple-ios-macabi' [-Woverriding-t-option]
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26694:9: warning: 'pthread_mutexattr_init' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
        pthread_mutexattr_init(&recursiveAttr);
        ^~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:416:5: note: 'pthread_mutexattr_init' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutexattr_init(pthread_mutexattr_t *);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26694:9: note: enclose 'pthread_mutexattr_init' in a __builtin_available check to silence this warning
        pthread_mutexattr_init(&recursiveAttr);
        ^~~~~~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26695:9: warning: 'pthread_mutexattr_settype' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
        pthread_mutexattr_settype(&recursiveAttr, PTHREAD_MUTEX_RECURSIVE);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:428:5: note: 'pthread_mutexattr_settype' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutexattr_settype(pthread_mutexattr_t *, int);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26695:9: note: enclose 'pthread_mutexattr_settype' in a __builtin_available check to silence this warning
        pthread_mutexattr_settype(&recursiveAttr, PTHREAD_MUTEX_RECURSIVE);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26696:9: warning: 'pthread_mutex_init' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
        pthread_mutex_init(&p->mutex, &recursiveAttr);
        ^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:376:5: note: 'pthread_mutex_init' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutex_init(pthread_mutex_t * __restrict,
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26696:9: note: enclose 'pthread_mutex_init' in a __builtin_available check to silence this warning
        pthread_mutex_init(&p->mutex, &recursiveAttr);
        ^~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26697:9: warning: 'pthread_mutexattr_destroy' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
        pthread_mutexattr_destroy(&recursiveAttr);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:393:5: note: 'pthread_mutexattr_destroy' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutexattr_destroy(pthread_mutexattr_t *) __DARWIN_ALIAS(pthread_mutexattr_destroy);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26697:9: note: enclose 'pthread_mutexattr_destroy' in a __builtin_available check to silence this warning
        pthread_mutexattr_destroy(&recursiveAttr);
        ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26708:9: warning: 'pthread_mutex_init' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
        pthread_mutex_init(&p->mutex, 0);
        ^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:376:5: note: 'pthread_mutex_init' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutex_init(pthread_mutex_t * __restrict,
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26708:9: note: enclose 'pthread_mutex_init' in a __builtin_available check to silence this warning
        pthread_mutex_init(&p->mutex, 0);
        ^~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26744:5: warning: 'pthread_mutex_destroy' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
    pthread_mutex_destroy(&p->mutex);
    ^~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:369:5: note: 'pthread_mutex_destroy' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutex_destroy(pthread_mutex_t *);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26744:5: note: enclose 'pthread_mutex_destroy' in a __builtin_available check to silence this warning
    pthread_mutex_destroy(&p->mutex);
    ^~~~~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26793:3: warning: 'pthread_mutex_lock' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
  pthread_mutex_lock(&p->mutex);
  ^~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:380:5: note: 'pthread_mutex_lock' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutex_lock(pthread_mutex_t *);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26793:3: note: enclose 'pthread_mutex_lock' in a __builtin_available check to silence this warning
  pthread_mutex_lock(&p->mutex);
  ^~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26839:7: warning: 'pthread_mutex_trylock' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
  if( pthread_mutex_trylock(&p->mutex)==0 ){
      ^~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:387:5: note: 'pthread_mutex_trylock' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutex_trylock(pthread_mutex_t *);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26839:7: note: enclose 'pthread_mutex_trylock' in a __builtin_available check to silence this warning
  if( pthread_mutex_trylock(&p->mutex)==0 ){
      ^~~~~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26877:3: warning: 'pthread_mutex_unlock' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
  pthread_mutex_unlock(&p->mutex);
  ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:390:5: note: 'pthread_mutex_unlock' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_mutex_unlock(pthread_mutex_t *);
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:26877:3: note: enclose 'pthread_mutex_unlock' in a __builtin_available check to silence this warning
  pthread_mutex_unlock(&p->mutex);
  ^~~~~~~~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:30747:10: warning: 'pthread_create' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
    rc = pthread_create(&p->tid, 0, xTask, pIn);
         ^~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:329:5: note: 'pthread_create' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_create(pthread_t _Nullable * _Nonnull __restrict,
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:30747:10: note: enclose 'pthread_create' in a __builtin_available check to silence this warning
    rc = pthread_create(&p->tid, 0, xTask, pIn);
         ^~~~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:30767:10: warning: 'pthread_join' is only available on macCatalyst 13.0 or newer [-Wunguarded-availability-new]
    rc = pthread_join(p->tid, ppOut) ? SQLITE_ERROR : SQLITE_OK;
         ^~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/pthread.h:359:5: note: 'pthread_join' has been marked as being introduced in macCatalyst 13.0 here, but the deployment target is macCatalyst 5.0.0
int pthread_join(pthread_t , void * _Nullable * _Nullable)
    ^
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:30767:10: note: enclose 'pthread_join' in a __builtin_available check to silence this warning
    rc = pthread_join(p->tid, ppOut) ? SQLITE_ERROR : SQLITE_OK;
         ^~~~~~~~~~~~
/Users/ubookmobile/.conan/data/sqlite3/3.35.5/_/_/build/74f8f4cf00c0060b5f054c583e7444fdae463115/source_subfolder/sqlite3.c:33793:8: warning: "gethostuuid() is disabled." [-W#warnings]
#      warning "gethostuuid() is disabled."
       ^
12 warnings generated.