Sublime Forum

Help with this Error after macos update

#1

I have been using sublime text for a long time now, mainly just for competitive programming. A few days ago, some Macos update and Xcode update was there, after which sublime asked to do something like sudo xcodebuild -license, after which everything worked fine with just two warnings which I ignored. But now it is giving this error, everytime I build and run the program.(cmd+shift+B)
Any help would be much appreciated.
I am attaching the whole error message:

-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate libraries: ‘-lgcc’
0 0x102d77648 __assert_rtn + 72
1 0x102cabfac ld::AtomPlacement::findAtom(unsigned char, unsigned long long, ld::AtomPlacement::AtomLoc const*&, long long&) const + 1204
2 0x102cc1924 ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 15164
3 0x102ccee30 ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&) const + 420
4 0x1a104c440 _dispatch_client_callout2 + 20
5 0x1a105ff1c _dispatch_apply_invoke + 224
6 0x1a104c400 _dispatch_client_callout + 20
7 0x1a105dfb8 _dispatch_root_queue_drain + 684
8 0x1a105e6c0 _dispatch_worker_thread2 + 164
9 0x1a11f8038 _pthread_wqthread + 228
ld: Assertion failed: (resultIndex < sectData.atoms.size()), function findAtom, file Relocations.cpp, line 1336.
collect2: error: ld returned 1 exit status
[Finished in 1.2s with exit code 1]
[cmd: [‘g+±12 some.cpp -o some && gtimeout 4s ./some<inputf.in>outputf.in’]]
[dir: /Users/abhiyansh/Desktop/code]
[path: /opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin]

0 Likes

#2

Looks like the linker (ld) is hitting an assertion. That seems like a bug in the linker, see: https://developer.apple.com/forums/thread/737707

0 Likes

#3

I was also facing same issue after downgrading commandline 15 to 14.3 is worked

use this to remove current version

sudo rm -rf /Library/Developer/CommandLineTools

then install 14.3 from developer.apple.com/downloads

then it should work :slight_smile:

0 Likes

#4

hii , actually i did this but then my xcode is to installed it is say that it is not compatible with macOS Sonoma 14
and recently i got update from macOS ventura 13.3 to sonoma 14
can you please guide me what can i do

0 Likes