Kodi Community Forum
make[2]: *** [arm-osx-native] Error 1 #21189 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: make[2]: *** [arm-osx-native] Error 1 #21189 (/showthread.php?tid=367598)

Pages: 1 2


make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-25

Describe the bug
I use MacBook pro M1 laptop, when I build iOS project , https://github.com/xbmc/xbmc/blob/master/docs/README.iOS.md
Here is my command
cd $HOME
git clone https://github.com/xbmc/xbmc kodi
cd $HOME/kodi/tools/depends
./bootstrap
./configure --host=aarch64-apple-darwin --with-platform=ios
Build tools and dependencies:
make -j$(getconf _NPROCESSORS_ONLN)
This command make -j$(getconf _NPROCESSORS_ONLN) I got the error.
Utilities/std/cm/map: Can't unlink already-existing object
Utilities/std/cm/memory: Can't unlink already-existing object
Utilities/std/cm/optional: Can't unlink already-existing object
Utilities/std/cm/set: Can't unlink already-existing object
Utilities/std/cm/shared_mutex: Can't unlink already-existing object
Utilities/std/cm/string: Can't unlink already-existing object
Utilities/std/cm/string_view: Can't unlink already-existing object
Utilities/std/cm/type_traits: Can't unlink already-existing object
Utilities/std/cm/unordered_map: Can't unlink already-existing object
Utilities/std/cm/unordered_set: Can't unlink already-existing object
Utilities/std/cm/utility: Can't unlink already-existing object
Utilities/std/cm/vector: Can't unlink already-existing object
Utilities/std/cmSTL.hxx.in: Can't unlink already-existing object
Utilities/std/cmext/: Can't restore time
Utilities/std/cmext/algorithm: Can't unlink already-existing object
Utilities/std/cmext/iterator: Can't unlink already-existing object
Utilities/std/cmext/memory: Can't unlink already-existing object
Utilities/std/cmext/string_view: Can't unlink already-existing object
Utilities/std/cmext/type_traits: Can't unlink already-existing object
tar: Error exit delayed from previous errors.
make[2]: *** [arm-osx-native] Error 1
make[1]: *** [cmake] Error 2
make: *** [native/.installed-arm-osx-native] Error 2
jerry.m@Jerry-mengbo depends %
Expected Behavior
Here is a clear and concise description of what was expected to happen:
I can Build tools and dependencies:
Actual Behavior
I got 2 errors
Possible Fix
To Reproduce
Steps to reproduce the behavior:
Debug Log
The Debug Log can be found here:
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Your Environment
Used Operating system:
I use OSX version 12.1


Android


iOS


tvOS


Linux


OSX


Windows


Windows UWP
Operating system version/name:
Kodi version:
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-25

@Fuzzard please help me


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - Fuzzard - 2022-03-25

Ok, lets get a few details first.

I see your using Monterey 12.1. What version of xcode are you using?
Can you run bootstrap and configure again, and then paste the output of the configure to a site like https://paste.kodi.tv/ and give me the link. Reading walls of text on the forums is difficult and it often interprets things incorrectly

I assume you are building master branch? Is this correct?

In the past, some users have had issues with things having been installed via Homebrew. Can you please run brew list and brew list --cask and provide the output on a paste site as well.

Im hoping either of those info will shed some light.

Whats failing is cmake native. The next bit of info i would want is for you to cd tools/depends/native/cmake and do a make distclean. then do make. copy that output to a paste site and link it as well. That may give some quick insight into where its failing exactly.

The build log from cmake should be located in tools/depends/native/cmake/arm-osx-native/CMakeFiles/CMakeOutput.log copy the contents of that file onto a paste site and we'll see whats happening in there as well.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-28

OK .

Xcode Version 13.3 (13E113)

I perform bootstrap command,then I got nothing.
https://paste.kodi.tv/gehowojipi

I am building master branch.

HomeBrew
https://paste.kodi.tv/iluyurilic

cmake native
https://paste.kodi.tv/lonoxefaya

./configure --host=aarch64-apple-darwin --with-platform=ios
https://paste.kodi.tv/safoyofohe.kodi

make -j$(getconf _NPROCESSORS_ONLN)
https://paste.kodi.tv/nohifixuse

I don't found CMakeOutput.log .
https://paste.kodi.tv/lixowacesi


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - Fuzzard - 2022-03-29

You've got permission issues first and foremost on /Users/Shared/xbmc-depends. Nothing can install/delete/change anything in /Users/Shared/xbmc-depends/arm-darwin21.2.0-native

Homebrew stuff is definitely at play as well. Sort the permissions out first, and we'll see from there.

Really the build setup is only tested using the native Apple tools supplied by Xcode (not homebrew or macports)

Theres also multiple curl download failures (curl: (23) Failure writing output to destination). your system is far from the normal.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-29

How to fix this issue. Am I need to uninstall Homebrew?


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - Fuzzard - 2022-03-29

Well i dont believe homebrew is causing your permission issues at this stage, so not yet.

One thing to get around the permission stuff may be to provide --prefix to your configure command

./configure --host=aarch64-apple-darwin --with-platform=ios --prefix=$HOME/xbmc-depends

That will create an xbmc-depends folder in your users home folder rather than /Users/Shared/, presumably the permission issues should go away then.

Also, purely for test purposes, for your make command, dont use -j$(getconf _NPROCESSORS_ONLN), just do make. It does it single threaded, and its far easier to see what fails first.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-29

I still got the same issue. It's not work.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - Fuzzard - 2022-03-29

Show logs. Is it really the same issue, or is something else causing a failure.

Either way, follow the info, post subsequent logs, or you'll need to work it out on your own.

The logs you posted, showed clear permissions failures to install into /Users/Shared/xbmc-depends. You can either work out WHY you cant save there, or as i mentioned, try and get around it by using the --prefix and place it into a folder you KNOW you have correct permissions.

I have no doubt there will be other faults after sorting out the permission issue, but i dont have a magic wand to fix your system


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-29

OK. thanks for you help . I like you. I will try to fix it.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-03-30

I fix the permissions failures, but I still install failure.

https://paste.kodi.tv/anexufiyes


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - Fuzzard - 2022-03-30

Can you do a make distclean, or a git clean -xfd from tools/depends directory and then do a single threaded make. ie just make, no j option.

Cant see what dependency has caused the failure, the ones listed all seem to have installed ok.


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-04-02

Am I get the error from the test code ? Can I stop compile test code? 
https://paste.kodi.tv/siluyezafi


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-04-02

I got this message from cmake_bootstrap.log.   path = /Users/jerry.m/kodi/tools/depends/native/cmake/arm-osx-native/Bootstrap.cmk/cmake_bootstrap.log
https://paste.kodi.tv/siluyezafi


RE: make[2]: *** [arm-osx-native] Error 1 #21189 - jerry_home - 2022-04-02

This message is from CmakeError.log
https://paste.kodi.tv/ikiriyezel