New installed Purebasic won´t work

Mac OSX specific forum
bytegetter
New User
New User
Posts: 7
Joined: Fri Dec 13, 2024 2:19 pm

New installed Purebasic won´t work

Post by bytegetter »

Hi,

I installed purebasic for testing purposes on my mac mini.

Version: PureBasic 6.12 LTS - C Backend (MacOS X - arm64)

Trying to compile a test-file results in following:

Code: Select all

Undefined symbols for architecture arm64:
"_objc_msgSend$AddGadgetItem:text:image:flags:", referenced from:
_PB_AddGadgetItem3 in Gadget.a(AddGadgetItem.o)
_PB_AddGadgetItem2 in Gadget.a(AddGadgetItem.o)
_PB_AddGadgetItem in Gadget.a(AddGadgetItem.o)
"_objc_msgSend$ClearGadgetItems", referenced from:
_PB_ClearGadgetItems in Gadget.a(ClearGadgetItems.o)
... 
MAC: Mac mini, Apple M1, 15.1.1 (24B91) (Update to 15.2 keeps the problem)
XCODE:Version 16.1 (16B40) (kam als Autoupdate)

The same install-file works on a MacBook with M2 max and 14.xx MacOs.

Whats wrong?

See also:
https://www.purebasic.fr/german/viewtopic.php?p=367032
infratec
Always Here
Always Here
Posts: 7599
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: New installed Purebasic won´t work

Post by infratec »

Have you also installed the xcode command line tools?

You can open a terminal and run:

Code: Select all

xcode-select -p
To install them:

Code: Select all

xcode-select --install
User avatar
mk-soft
Always Here
Always Here
Posts: 6236
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: New installed Purebasic won´t work

Post by mk-soft »

And ...

Command Line Tools Version
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
My version ...
package-id: com.apple.pkg.CLTools_Executables
version: 16.1.0.0.1.1729049160
volume: /
location: /
install-time: 1730374632
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
bytegetter
New User
New User
Posts: 7
Joined: Fri Dec 13, 2024 2:19 pm

Re: New installed Purebasic won´t work

Post by bytegetter »

Here you are:

Code: Select all

marc@Mac-mini-2021-von-Marc tickets % xcode-select -p
/Library/Developer/CommandLineTools
marc@Mac-mini-2021-von-Marc tickets % xcode-select --install
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates
marc@Mac-mini-2021-von-Marc tickets %     pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
marc@Mac-mini-2021-von-Marc tickets % ls -la /Library/Developer/CommandLineTools
total 0
drwxr-xr-x  5 root  wheel  160 25 Mai  2021 .
drwxr-xr-x  7 root  wheel  224 11 Dez 10:59 ..
drwxr-xr-x  5 root  wheel  160 20 Apr  2021 Library
drwxr-xr-x  6 root  wheel  192 25 Mai  2021 SDKs
drwxr-xr-x  7 root  wheel  224 20 Apr  2021 usr
marc@Mac-mini-2021-von-Marc tickets % brew config
HOMEBREW_VERSION: 4.4.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: ad356d365837a691a52dfec32b3fb5f282f3aefc
Last commit: 7 days ago
Branch: stable
Core tap JSON: 09 Dec 13:10 UTC
Core cask tap JSON: 09 Dec 13:10 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.ADQoyniXTT/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.2-arm64
CLT: 12.5.0.22.9
Xcode: 16.2
Rosetta 2: false
User avatar
Piero
Addict
Addict
Posts: 894
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: New installed Purebasic won´t work

Post by Piero »

Maybe PB needs some intel stuff?

Code: Select all

softwareupdate --install-rosetta --agree-to-license
Fred
Administrator
Administrator
Posts: 18171
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: New installed Purebasic won´t work

Post by Fred »

No, PB is a pure arm64 app
User avatar
Piero
Addict
Addict
Posts: 894
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: New installed Purebasic won´t work

Post by Piero »

Fred wrote: Thu Dec 19, 2024 4:50 pm No, PB is a pure arm64 app
I dunno Fred, forgive me; was thinking it may have been some "library" or stuff; I saw "Rosetta 2: false" in his "log"...

PS: anyway we invented Pizza
User avatar
Lord
Addict
Addict
Posts: 905
Joined: Tue May 26, 2009 2:11 pm

Re: New installed Purebasic won´t work

Post by Lord »

Piero wrote: Thu Dec 19, 2024 5:07 pm...
PS: anyway we invented Pizza
With Ananas?
Image
bytegetter
New User
New User
Posts: 7
Joined: Fri Dec 13, 2024 2:19 pm

Re: New installed Purebasic won´t work

Post by bytegetter »

Installed, no change.

I checked my Notebook:
Commandline-Tools are installed, but not xcode.
User avatar
mk-soft
Always Here
Always Here
Posts: 6236
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: New installed Purebasic won´t work

Post by mk-soft »

Only command line tools needed ...

Redownload the Purebasic.dmg install. Perhaps defect
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
bytegetter
New User
New User
Posts: 7
Joined: Fri Dec 13, 2024 2:19 pm

Re: New installed Purebasic won´t work

Post by bytegetter »

I installed the same purebasic.dmg on both machines.

The error-message is well known: https://www.google.com/search?client=fi ... jc_msgSend

I tried to install XCode 12.x, but its too old.
Fred
Administrator
Administrator
Posts: 18171
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: New installed Purebasic won´t work

Post by Fred »

Does every examples leads to the same error or you can compile some ?
bytegetter
New User
New User
Posts: 7
Joined: Fri Dec 13, 2024 2:19 pm

Re: New installed Purebasic won´t work

Post by bytegetter »

I tested of the 10 examples, everytime the same error.
User avatar
Piero
Addict
Addict
Posts: 894
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: New installed Purebasic won´t work

Post by Piero »

Best explanation I can find: seems your "Xcode" (compiler) settings make it try to also build for other architectures…
https://forums.unrealengine.com/t/xcode ... 64/1747571
 
 
PS:
Lord wrote: Fri Dec 20, 2024 10:50 am With Ananas?

Code: Select all

LINEA 1: ERRORE DI SINTASSI
bytegetter
New User
New User
Posts: 7
Joined: Fri Dec 13, 2024 2:19 pm

Re: New installed Purebasic won´t work

Post by bytegetter »

Is someone running Purebasic with MacOs 15.2?
Post Reply