Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

[IOS] build failure, libiconv!! #106

Closed
krislyy opened this issue Mar 28, 2019 · 5 comments
Closed

[IOS] build failure, libiconv!! #106

krislyy opened this issue Mar 28, 2019 · 5 comments

Comments

@krislyy
Copy link

krislyy commented Mar 28, 2019

Description
I use command "./ios.sh --enable-libass --disable-armv7 --disable-armv7s --disable-i386" to build libass.a.
but failed in building libiconv.a. like the log shows below. I think it's problem of system environment.

Logs
'''
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/usr/include/sys/_types/_uid_t.h:31:3131make[2]: *** [allocator.o] Error 1
: make[2]: : *** Waiting for unfinished jobs....error: error
cannot combine with previous 'type-name' declaration specifier
: typedef __darwin_uid_t uid_t;
^cannot combine with previous 'type-name' declaration specifier

../config.h:1162typedef __darwin_uid_t uid_t;
^
:15:../config.h:1162 note: expanded from macro 'uid_t'
:15#define uid_t int
: note: expanded from macro 'uid_t'
^#define uid_t int
^

3 errors generated.
make[2]: *** [areadlink.o] Error 1
3 errors generated.
3 errors generated.
make[2]: *** [careadlinkat.o] Error 1
make[2]: *** [binary-io.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2
'''
Environment

  • Platform: [IOS]
  • Architecture: [arm64, x86_64]
  • Source branch (if applicable) [master]
  • Xcode version (if applicable) [12.2, 10.2]

Other
Add any other context about the problem here.

@tanersener tanersener self-assigned this Mar 28, 2019
@tanersener tanersener added the enhancement New feature or request label Mar 28, 2019
@tanersener
Copy link
Owner

This is compatibility issue about Xcode 10.2. Until I publish a fix, you can install /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg package as a workaround.

@tanersener tanersener added incompatibility and removed enhancement New feature or request labels Mar 28, 2019
@krislyy
Copy link
Author

krislyy commented Mar 29, 2019

I fixed the issue by reinstalling ../macOS_SDK_headers_for_macOS_10.14.pkg. Thanks a lot.

@tanersener
Copy link
Owner

Fixed in development branch

@tanersener
Copy link
Owner

This issue is fixed in master too. Can we close it?

@krislyy
Copy link
Author

krislyy commented Apr 3, 2019

absolutely, yes!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants