× Discussions for CodeTyphon Studio Installation and Setup.

Question install CT 7.6 failed on Mac Monterey intel amd64

  • xiaomajia52
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago - 1 month 1 week ago #16366 by xiaomajia52
Replied by xiaomajia52 on topic install CT 7.6 failed on Mac Monterey intel amd64
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.
Last edit: 1 month 1 week ago by xiaomajia52.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 1 week ago - 1 month 1 week ago #16367 by Sternas Stefanos
Replied by Sternas Stefanos on topic install CT 7.6 failed on Mac Monterey intel amd64
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:
Last edit: 1 month 1 week ago by Sternas Stefanos.

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

  • xiaomajia52
  • Topic Author
  • Offline
  • New Member
  • New Member
More
1 month 1 week ago #16368 by xiaomajia52
Replied by xiaomajia52 on topic install CT 7.6 failed on Mac Monterey intel amd64
i just report a problem,thanks for comtribution.
best regards

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 1 week ago - 1 month 1 week ago #16369 by Sternas Stefanos
Replied by Sternas Stefanos on topic install CT 7.6 failed on Mac Monterey intel amd64
Please, test the fix.

and thanks for you help
 

PilotLogic Architect and Core Programmer
Last edit: 1 month 1 week ago by Sternas Stefanos.

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

More
1 month 1 week ago #16393 by Jos Wegman
Replied by Jos Wegman on topic install CT 7.6 failed on Mac Monterey intel amd64
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.