| 1 |
Sat 20 Jan 2024 21:28:35 IST |
| 2 |
============================ |
| 3 |
|
| 4 |
With respect to Power PC macintosh systems and having MPFR, things |
| 5 |
are now in a better place. If you have such a system, you need: |
| 6 |
|
| 7 |
1. GCC 4.2. You can bootstrap GCC 4.2.4 if you first apply |
| 8 |
https://www.skeeve.com/gcc-4.2.4-compile-fix.diff. You will need |
| 9 |
a reasonable makeinfo to build the Info files after applying |
| 10 |
this fix. I'm told that you can get a version of Xcode with |
| 11 |
this compiler also. |
| 12 |
|
| 13 |
2. GMP 6.3.0. This is current as of this writing. |
| 14 |
|
| 15 |
3. MPFR 4.2.1. This is current as of this writing. |
| 16 |
|
| 17 |
Using GCC 4.2.4, I built both libraries with configure, make |
| 18 |
and make install, and then built gawk. |
| 19 |
|
| 20 |
An enormous THANK YOU to Sevan Janiyan <[email protected]> |
| 21 |
for his help, guidance, and personal testing. |
| 22 |
|
| 23 |
It's satisfying to have things working again on this system which |
| 24 |
is over 20 years old! :-) |
| 25 |
|
| 26 |
Sun 18 Dec 2022 21:04:40 IST |
| 27 |
============================ |
| 28 |
|
| 29 |
Overall, for both Intel and ARM Mac systems, the best bet is to install |
| 30 |
gawk using homebrew or macports. Building from source runs into problems |
| 31 |
with the readline library. On ARM systems, you need to use |
| 32 |
`./configure --with-readline=/opt/homebrew/opt/readline'. Otherwise, |
| 33 |
using the gawk debugger causes gawk to crash as soon as you enter a line |
| 34 |
at the `gawk>' prompt. On Intel systems, we could not find a way to |
| 35 |
build gawk so that it wouldn't crash; therefore you would have to use |
| 36 |
`./configure --without-readline' to get a usable debugger. Sheesh. |
| 37 |
|
| 38 |
Sun 27 Nov 2022 14:54:06 EST |
| 39 |
============================ |
| 40 |
|
| 41 |
Building an x86_64 binary on M1 systems was a bad idea. Not all systems |
| 42 |
have Rosetta installed, and there are still ppc and ppc64 systems out |
| 43 |
in the world. See https://trac.macports.org/ticket/66329. |
| 44 |
|
| 45 |
So for now, PMA in enabled for macOS only on x86_64. |
| 46 |
|
| 47 |
Sun 23 Oct 2022 14:24:37 IDT |
| 48 |
============================ |
| 49 |
|
| 50 |
In order to use the new persistent memory feature, it's (currently) necessary |
| 51 |
to build gawk as a non-PIE (Position Independent Executable) binary. That |
| 52 |
is possible on Intel macOS systems, but not on Apple M1 systems. Such |
| 53 |
binaries are simply disallowed. |
| 54 |
|
| 55 |
*However*, M1 systems have x86_64 emulation capability, in order to be |
| 56 |
able to run old macOS binaries. Thus, an Intel non-PIE executable works |
| 57 |
just fine on M1 systems. For that reason, on M1, we actually build an |
| 58 |
Intel binary, and everything "just works"! Woo hoo! |
| 59 |
|
| 60 |
This is a true hack. At some point it will probably stop working, but |
| 61 |
I'll worry about that when it happens. |
| 62 |
|
| 63 |
Fri Feb 23 10:38:05 IST 2018 |
| 64 |
============================ |
| 65 |
|
| 66 |
On PowerPC Macintosh, things are just weird. |
| 67 |
|
| 68 |
* Using the stock compiler, you can't build gawk (c99 mode) against MPFR; |
| 69 |
there is an issue with duplicate inline functions from GMP. By default, |
| 70 |
I have disabled this compilation. |
| 71 |
|
| 72 |
* If you build GCC 4.2.4 and use that version of GCC, you can compile gawk |
| 73 |
with MPFR and the C99 settings. But then the two readfile tests fail. |
| 74 |
The call to read(2) simply returns zero. I have no idea why. |
| 75 |
|
| 76 |
Since nobody but me has one of these left, I'm not going to mess |
| 77 |
with it anymore right now. |
| 78 |
|
| 79 |
Thu Jan 25 20:07:56 IST 2018 |
| 80 |
============================ |
| 81 |
|
| 82 |
You may need to explicitly tell configure where to find the GNU gettext |
| 83 |
header file and library with --with-libintl-prefix=...'. Otherwise, |
| 84 |
the nlstringtest test will fail. |
| 85 |
|
| 86 |
Mon Apr 13 09:49:40 IDT 2015 |
| 87 |
============================ |
| 88 |
|
| 89 |
I have reports of success on this compiler: |
| 90 |
|
| 91 |
$ gcc --version |
| 92 |
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr |
| 93 |
--with-gxx-include-dir=/usr/include/c++/4.2.1 |
| 94 |
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn) |
| 95 |
Target: x86_64-apple-darwin14.1.0 |
| 96 |
Thread model: posix |
| 97 |
|
| 98 |
Thu Apr 9 10:39:26 IDT 2015 |
| 99 |
============================ |
| 100 |
|
| 101 |
There are reports of compilation issues on Mac OS X 10.10 (Yosemite). |
| 102 |
The only compiler reported to have produced a complete pass of |
| 103 |
"make check" is the MacPorts compiler, /opt/local/bin/clang-mp-3.5. |
| 104 |
|
| 105 |
Arnold Robbins |
| 106 |
[email protected] |