Page 1 of 1

[5.72 LTS x86] Linker error (libstdc++ / libc++)

Posted: Sun Apr 26, 2020 10:33 am
by Danilo
I always get the following linker error with PB 5.72 LTS x86 on macOS Mojave 10.14.6 and latest Xcode installed:

Image

Is this a possible bug with the x86 version?

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Posted: Sun Apr 26, 2020 1:41 pm
by mk-soft
Unfortunately I only have a VM with High Sierra.

Here runs PB-v5.72 (x86) under High Sierra

Test this code

Code: Select all

Import "-stdlib=libc++ -mmacosx-version-min=10.9" : EndImport

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Posted: Sun Apr 26, 2020 4:27 pm
by Danilo
Thanks mk-soft, but it did not help. Error message is now:
PureBasic - Linker error

Code: Select all

ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libpthread.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libm.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Cocoa.framework/Cocoa.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Cocoa.framework/Cocoa.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Carbon.framework/Carbon.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks//Carbon.framework/Carbon.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libc.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libc.tbd
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like the time of 32-bit i386 is over now. It's not a big problem anyway... ;) :lol:

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Posted: Sun Apr 26, 2020 5:50 pm
by Shardik
Danilo wrote:I always get the following linker error with PB 5.72 LTS x86 on macOS Mojave 10.14.6 and latest Xcode installed:
Beginning with Xcode 10 Apple has removed the support to compile x86 apps:
[color=#0040FF][u]Xcode 10 Release Notes[/u][/color] wrote:The macOS 10.14 SDK no longer contains support for compiling 32-bit applications. If developers need to compile for i386, Xcode 9.4 or earlier is required. (39858111)

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Posted: Sun Apr 26, 2020 6:31 pm
by mk-soft
I work under macOS High Sierra (VM) with Xcode Version 10.1 (10B61)

Re: [5.72 LTS x86] Linker error (libstdc++ / libc++)

Posted: Sun Apr 26, 2020 7:33 pm
by Danilo
Thanks Shardik! :thumbsup: