Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Studio Installation and Setup.
  • Page:
  • 1
  • 2

TOPIC:

install CT 7.6 failed on Mac Monterey intel amd64 11 months 4 weeks ago #16366

  • xiaomajia52
  • xiaomajia52's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
I rebuilt a new and clean mentorey,new Xcode,new cmdline,update lab version,occours the same error.lol...

so ,what is this error?I only saw 'link error',may be the macport install mirror is not the latest version?


ld: warning: pointer not aligned at address 0x374B89 (_RTTI_$TERMIO_$$_TERMIOS + 97 from /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/termio.o)
ld: warning: pointer not aligned at address 0x374B79 (_RTTI_$TERMIO_$$_TERMIOS + 81 from /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/termio.o)
ld: warning: pointer not aligned at address 0x374B69 (_RTTI_$TERMIO_$$_TERMIOS + 65 from /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/termio.o)
ld: warning: pointer not aligned at address 0x374B59 (_RTTI_$TERMIO_$$_TERMIOS + 49 from /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/termio.o)
ld: warning: pointer not aligned at address 0x374B49 (_RTTI_$TERMIO_$$_TERMIOS + 33 from /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/termio.o)
ld: warning: pointer not aligned at address 0x374B39 (_RTTI_$TERMIO_$$_TERMIOS + 17 from /usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/termio.o)
ld: unaligned pointer(s) for architecture x86_64
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


I follow this error above ,I found

./fpmake compile --localunitdir=../.. --globalunitdir=../../packages --os=darwin --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -o -dx86_64 -o -dRELEASE --compiler=/usr/local/codetyphon/fpcsrc/compiler/p
       Compiling BuildUnit_utils_pas2js.pp
       Compiling dirwatch.pp
       Compiling httpcompiler.pp
       Compiling pas2js.pp
       Linking bin/x86_64-darwin/pas2js
       Compiling pas2jslib.pp
       Linking bin/x86_64-darwin/libpas2jslib.dylib
The installer encountered the following error:
External command "/usr/local/codetyphon/fpcsrc/compiler/ppcx64 -Tdarwin -FEbin/x86_64-darwin -FUunits/x86_64-darwin/ -Fu/usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/ -Fu/usr/local/codetyphon/fpcsrc/packages/fcl-json/units/x86_64-darwin/ -Fu/usr/l

external command ,my cpu is intel i7,arch is AMD64,why this script call external cmd is ppcx64?mkc@mkcdeMacBook-Pro compiler % cd /usr/local/codetyphon/pfcsrc/compilercd: no such file or directory: /usr/local/codetyphon/pfcsrc/compilerand the result shows that, i don't have this director?

then I switch the cmdline
mkc@mkcdeMacBook-Pro compiler % sudo xcode-select -s /Library/Developer/CommandLineTools
mkc@mkcdeMacBook-Pro compiler % xcode-select -p
/Library/Developer/CommandLineToolsmkc@mkcdeMacBook-Pro compiler % xcode-select --versionxcode-select version 2392.

and then,i remove all and build all,got this

./fpmake compile --localunitdir=../.. --globalunitdir=../../packages --os=darwin --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -o -dx86_64 -o -dRELEASE --compiler=/usr/local/codetyphon/fpcsrc/compiler/p
       Compiling BuildUnit_utils_pas2js.pp
       Compiling dirwatch.pp
       Compiling httpcompiler.pp
       Compiling pas2js.pp
       Linking bin/x86_64-darwin/pas2js
       Compiling pas2jslib.pp
       Linking bin/x86_64-darwin/libpas2jslib.dylib
The installer encountered the following error:
External command "/usr/local/codetyphon/fpcsrc/compiler/ppcx64 -Tdarwin -FEbin/x86_64-darwin -FUunits/x86_64-darwin/ -Fu/usr/local/codetyphon/fpcsrc/rtl/units/x86_64-darwin/ -Fu/usr/local/codetyphon/fpcsrc/packages/fcl-json/units/x86_64-darwin/ -Fu/usr/l

I don't know why..

this is my part of system info

gdb
GNU gdb (GDB) 11.1
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  
[WARNING] gdb (/usr/local/bin/ggdb) is NOT currently code signed.????
   
gcc
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
_______________________________________________________________

Sternas's system info is

gdb
GNU gdb (GDB) 11.1
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  
[WARNING] gdb (/usr/local/bin/ggdb) is NOT currently code signed.????
   
gcc
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin


why moderate's apple clang version is 12.0.5 ,I downloaded version is 13.0.0?
maybe the problem is the clang version isn't correct?I've tried,monterey can't install 12.0.5 clang version,it's shows, this version(12.0.5) cmdline is not compilatble for Monterey.

Please Log in or Create an account to join the conversation.

Last edit: by xiaomajia52.

install CT 7.6 failed on Mac Monterey intel amd64 11 months 4 weeks ago #16367

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4426
  • Thank you received: 1072
Finally we found the problem

1) We remove Command Line Tools with clang version 12.0.5
sudo rm -rf /Library/Developer/CommandLineTools

we reinstall Command Line Tools
xcode-select --install

This time we have Command Line Tools with clang version 13.0.0


gcc
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
__________________

With this clang version 13.0.0, CodeTyphon can't build
/usr/local/codetyphon/fpcsrc/utils/pas2js/pas2jslib

The fix is to replace
/usr/local/codetyphon/fpcsrc/utils/pas2js/fpmake.pp
with new from attach file

We update:
- The main CT 7.60 CodeTyphonIns.zip
- LAB CT 7.60 "Current" files.
- LAB CT 7.70 "Development" files.

So, you can download CT 7.60 CodeTyphonIns.zip with the fix
OR
ReUpdate your LAB CT 7.70 files





-What Apple changed in Command Line Tools from Ver clang version 12.0.5  to clang version 13.0.0 ?
-Why the MacOS on 2xApple PCs don't automatic update Command Line Tools from Ver clang version 12.0.5  to clang version 13.0.0 ?

Can anyone on this planet, answer to these two simple question;



 
PilotLogic Architect and Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

install CT 7.6 failed on Mac Monterey intel amd64 11 months 4 weeks ago #16368

  • xiaomajia52
  • xiaomajia52's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 0
i just report a problem,thanks for comtribution.
best regards

Please Log in or Create an account to join the conversation.

install CT 7.6 failed on Mac Monterey intel amd64 11 months 4 weeks ago #16369

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4426
  • Thank you received: 1072
Please, test the fix.

and thanks for you help
 
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

install CT 7.6 failed on Mac Monterey intel amd64 11 months 3 weeks ago #16393

  • Jos Wegman
  • Jos Wegman's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 8
  • Thank you received: 4
Hi,
I had the same problem.
Reinstalling Xcode and removing old
.lazarus .typhon32 and .typhon64 directories in my home directory did the trick.
After above steps CT 7.6 installed fine on Mac Monterey

Please Log in or Create an account to join the conversation.

install CT 7.6 failed on Mac Monterey intel amd64 10 months 1 week ago #16589

  • Aleksandar
  • Aleksandar's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 150
  • Thank you received: 31

-What Apple changed in Command Line Tools from Ver clang version 12.0.5  to clang version 13.0.0 ?
-Why the MacOS on 2xApple PCs don't automatic update Command Line Tools from Ver clang version 12.0.5  to clang version 13.0.0 ?

Can anyone on this planet, answer to these two simple question;


 
I am pretty sure that all problems related to macOS you experienced were related to macOS SDK version supported by XCode (or CLT) and not with clang itself.

All XCode 13 betas had support for 12.0 (Monterey), but RC1 (which was same as release version) removed that and only had support for 11.3. XCode 13.1 restored support for 12.0.

So, in order to compile anything on Monterey, you had to use XCode 13 Beta 1 to Beta 5 or 13.1 and up.

Apple tends to remove newest OS support from first official XCode release after that OS is released. So it's good idea to check xcodereleases.com/ and their twitter if you are not sure what's going on.

Or you can manually check what is available on your machine.

for CTL
❯ ls -la /Library/Developer/CommandLineTools/SDKs
total 0
drwxr-xr-x  7 root  wheel  224 Jan 13 19:39 .
drwxr-xr-x  5 root  wheel  160 Jan 13 19:38 ..
lrwxr-xr-x  1 root  wheel   14 Jan 13 19:39 MacOSX.sdk -> MacOSX12.1.sdk
drwxr-xr-x  7 root  wheel  224 Jul 12  2021 MacOSX11.3.sdk
lrwxr-xr-x  1 root  wheel   14 Jan 13 19:38 MacOSX11.sdk -> MacOSX11.3.sdk
drwxr-xr-x  7 root  wheel  224 Nov 19 23:25 MacOSX12.1.sdk
lrwxr-xr-x  1 root  wheel   14 Jan 13 19:38 MacOSX12.sdk -> MacOSX12.1.sdk

for XCode
❯ ls -la /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
total 0
drwxr-xr-x  4 root  wheel  128 Jan 13 23:53 .
drwxr-xr-x  6 root  wheel  192 Dec 14 23:33 ..
drwxr-xr-x  7 root  wheel  224 Nov 19 23:25 MacOSX.sdk
lrwxr-xr-x  1 root  wheel   10 Jan 13 23:49 MacOSX12.1.sdk -> MacOSX.sdk

I hope it's clear now. :)

Regarding the updates.... what you are getting if you run this script?
sudo defaults read /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled
sudo defaults read /Library/Preferences/com.apple.commerce AutoUpdate
sudo defaults read /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall
defaults read com.apple.SoftwareUpdate ScheduleFrequency

First 3 should return 1, and last one should return the frequency (default is 7).

In my case everything returns 1, since I set to check for updates daily.

Please Log in or Create an account to join the conversation.

Last edit: by Aleksandar.

install CT 7.6 failed on Mac Monterey intel amd64 10 months 1 week ago #16590

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4426
  • Thank you received: 1072
MacOS follow llvm project releases info

So, we now know and the next XCode release... 


 
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.
  • Page:
  • 1
  • 2