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 --version
xcode-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.