[5.31] El Capitan Linker Error

Mac OSX specific forum
erion
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Jan 24, 2010 11:12 pm

[5.31] El Capitan Linker Error

Post by erion »

Hi all,
PureBasic apps will not compile on either the public beta or the developer previews of Os X 10.11 el Capitan, displaying a linker error:
ld: library not found for -lgcc_s.10.5clang: error: linker command failed with exit code 1 (use -v to see invocation)
Erion
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.

- W. B.

Visit my site, also for PureBasic goodies http://erion.tdrealms.com
User avatar
fsw
Addict
Addict
Posts: 1572
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: [5.31] El Capitan Linker Error

Post by fsw »

Did you install XCode?
You also need the command line tools.
(It's a separate install through XCode)

I am to provide the public with beneficial shocks.
Alfred Hitshock
erion
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Jan 24, 2010 11:12 pm

Re: [5.31] El Capitan Linker Error

Post by erion »

I'm using Xcode 6.4 with the command line tools installed.
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.

- W. B.

Visit my site, also for PureBasic goodies http://erion.tdrealms.com
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: [5.31] El Capitan Linker Error

Post by wilbert »

Try XCode 7 beta.
Windows (x64)
Raspberry Pi OS (Arm64)
erion
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Jan 24, 2010 11:12 pm

Re: [5.31] El Capitan Linker Error

Post by erion »

Thanks, this seems to have solved my problem.
For some reason other native apps compile with Xcode 6.4, but not PB apps, as they need Xcode 7.
I'm leaving this topic here as it might be useful, at least until Xcode 7 gets released.

Erion
To see a world in a grain of sand,
And a heaven in a wild flower,
Hold infinity in the palm of your hand,
And eternity in an hour.

- W. B.

Visit my site, also for PureBasic goodies http://erion.tdrealms.com
WilliamL
Addict
Addict
Posts: 1224
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: [5.31] El Capitan Linker Error

Post by WilliamL »

I just installed El Capitan with XCode 7.0.1 and PB seems to be running fine with 5.40b9x64. I did the standard install from the App Store.
MacBook Pro-M1 (2021), Sonoma 14.4.1, PB 6.10LTS M1
Fred
Administrator
Administrator
Posts: 16688
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.31] El Capitan Linker Error

Post by Fred »

Thanks for the report !
AndyMK
Enthusiast
Enthusiast
Posts: 540
Joined: Wed Jul 12, 2006 4:38 pm
Location: UK

Re: [5.31] El Capitan Linker Error

Post by AndyMK »

PB 5.42 LTS on EL Capitan with Xcode 7.3.

Linker error "id: file not found: string.a clang error: linker command failed with exit code 1"
This is with a simple debug "hello world" command.
thanos
Enthusiast
Enthusiast
Posts: 422
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Re: [5.31] El Capitan Linker Error

Post by thanos »

Hello.
Same problem with AndyMK.

Configuration:
OS X El Capitan Version 10.11.4
Purebasic 5.42 LTS (both 32 and 64 bits)
Xcode 7.3

The Xcode and command line tools are installed:
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Error message:
PureBasic - Linker error

d: file not found: String.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Regards.

Thanos
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: [5.31] El Capitan Linker Error

Post by wilbert »

See this topic
http://www.purebasic.fr/english/viewtop ... 24&t=65269
The solution is to download PB 5.42 again.
Windows (x64)
Raspberry Pi OS (Arm64)
thanos
Enthusiast
Enthusiast
Posts: 422
Joined: Sat Jan 12, 2008 3:25 pm
Location: Greece
Contact:

Re: [5.31] El Capitan Linker Error

Post by thanos »

wilbert wrote:See this topic
http://www.purebasic.fr/english/viewtop ... 24&t=65269
The solution is to download PB 5.42 again.
Thanks a lot!
It works!
Regards.

Thanos
» myPersonal Banker :: Because you do not need to have a master degree in economics in order to organize your finances!
Post Reply