newly found compilation error while using g++ -13 in vscode editor in macOS ventura

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi , this morning I installed an update ini macOs command line tools and
after that I am unable to compile my codes in vs code editor using gcc g++
-13 . The following error is visible :
name@names-MacBook-Air cp % cd "/Users/name/Desktop/cp/" && g++
united_westand.cpp -o united_westand &&
"/Users/name/Desktop/cp/"united_westand -macosx_version_min has been
renamed to -macos_version_min ld: warning: ignoring duplicate libraries:
'-lgcc' 0 0x10241f648 __assert_rtn + 72 1 0x102353fac
ld::AtomPlacement::findAtom(unsigned char, unsigned long long,
ld::AtomPlacement::AtomLoc const*&, long long&) const + 1204 2 0x102369924
ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const +
15164 3 0x102376e30 ld::InputFiles::parseAllFiles(void (ld::AtomFile
const*) block_pointer)::$_7::operator()(unsigned long, ld::FileInfo const&)
const + 420 4 0x186594440 _dispatch_client_callout2 + 20 5 0x1865a9544
_dispatch_apply_invoke_and_wait + 224 6 0x1865a884c
_dispatch_apply_with_attr_f + 1180 7 0x1865a8a38 dispatch_apply + 96 8
0x1023f13b8 ld::AtomFileConsolidator::parseFiles(bool) + 292 9 0x102392170
main + 9048 ld: Assertion failed: (resultIndex < sectData.atoms.size()),
function findAtom, file Relocations.cpp, line 1336. collect2: error: ld
returned 1 exit status
I tried to uninstall gcc and then reinstall it , but still the error while
compilation persisted . Using Clang the code gets compiled but using g++
-13 it does not .
Kindly look into the matter

regards
Hrishikesh
India



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux