dciabrin / homebrew-ngdevkit

Homebrew formulas for ngdevkit packages
GNU General Public License v3.0
1 stars 0 forks source link

Error on macOS on brew install: #6

Open LakeIshikawa opened 9 months ago

LakeIshikawa commented 9 months ago

Just following the instructions step by step gives me this on a Mac Studio (M2) after issuing brew install ngdevkit ngdevkit-gngeo:

==> Installing dependencies for dciabrin/ngdevkit/ngdevkit: dciabrin/ngdevkit/ngdevkit-toolchain, mpdecimal, python@3.12, libyaml and pyyaml
==> Installing dciabrin/ngdevkit/ngdevkit dependency: dciabrin/ngdevkit/ngd
==> /opt/homebrew/opt/make/bin/gmake -- prefix=/opt/homebrew/Cellar/ngdevkit-too
Last 15 lines from /Users/lakeishikawa/Library/Logs/Homebrew/ngdevkit-toolchain/01.sources.redhat.com:
checking for endian.h... no
checking for sys/endian.h... no
checking for machine/endian.h... yes
checking for sys/isa_defs.h... no
checking for uchar.h... no
checking for treedec/combinations.hpp... no
configure: treedec library missing, falling back to Thorup.
checking for gala/graph.h... no
checking for boost/graph/adjacency_list.hpp... no
configure: error: boost library not found (boost/graph/adjacency_list.hpp).
gmake: *** [Makefile:304: build/ngsdcc] Error 1
gmake: *** Waiting for unfinished jobs....
   25 20.0M   25 5206k    0     0   239k      0  0:01:25  0:00:21  0:01:04  242k 18 31.3M   18 5926k    0     0   239k      0  0:02:14  0:00:24  0:01:50  243k24 :0474: 2440.  242k0M   47 9828k    0     0   241k      0  0:01:24  0:00:40  0:0 37 31.3M   37 11.7M    0     0   240k      0  0:02:13  0:00:49  0:01:24  243k0: 61  0     0   241k   20.0M   61   0 12.2M    0     0   241k      0:02:13  0:0   41 31.3M   41 12.9M    0     0   241k      0  0:02:13  0:00:54  0:01:19  246k40   65 20.0M   65 13.1M    0     0   241k      0  0:01:24  0:00:55  0:00:29  242k  042:0 31.3M   42 13.3M    0     0   241k      0  0:02:13  0:00:56  0:4:27  239 18 76.1M   18 14.2M    0       0   240k      0  0:05:23  0:01:00  0:04:23  242k 0:1901 7:26.4 1M 0  :0 11:9 0214  .70:M 00  :2 0     0   241k      0  0:05:23   0 76 20.0M   76 15.2M    0     0   241k      0  0:01:24  0:01:04  0:00:20  243k 77 20.0M   77 15.5M    0     0   241k      0  0:01:24  0:01:05  0:00:19  246k31 51 31.3M   51 16.2M    0     0   241k      8 0  0 0:02:12  0:01::0080:  0:01:04 57 31.3M   57 18.1M    0     0   241k      0  0:02:12  0:01:16  0:00:56  246k0 100 20.0M  100 20.0M    0     0   242k      0  0:01:24  0:01:24 --:--:--  244k
 26 76.0     0   241M   26 20.4M    0     0   241k      0 2k      0  0:02:12  0: 3 31 1.76.1M   31 24.0M    0     0   242k      0  0:05:22  0:01:41  0:03:41  242  0:01:49  0:00:23  243k 34 76.1M   34 25.9M    0     0   242k      0  0:05:21  37 76.1M   37 28.3M    0     0   242k      0  0:05:21  0:01:59  0:03:22  243M  100 31.3M  100 31.3M    0     0   242k      0  0:02:12  0:02:12 --:--:--  245k
100 76.1M  100 76.1M    0     0   243k      0  0:05:20  0:05:20 --:--:--  245k

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/dciabrin/homebrew-ngdevkit/issues
dciabrin commented 9 months ago

Just replicated locally, it seems that at least on Sonoma, sdcc 4.2 fails to build autoconf tests. sdcc 4.4 is known to work [1], so I'll bump this dependency in ngdevkit. [1] https://formulae.brew.sh/formula/sdcc

jeromeEzDATASolutions commented 8 months ago

ive the same problem on my new mac with proc M3

jeromeEzDATASolutions commented 8 months ago

how i fix it this problem please ?

dciabrin commented 8 months ago

Hmmm, there was a failed run in the azure CI, and https://github.com/dciabrin/ngdevkit-toolchain/commit/24799d9ef211f723f5a4de69d3831693d2208aca doesn't seem to have landed as expected in homebrew-ngdevkit. I'm looking into it and will let you know

jeromeEzDATASolutions commented 8 months ago

i work on the dev of ghost goblins with your framework : https://www.facebook.com/15kbesancon/videos/979982286879466/

dciabrin commented 8 months ago

OK I relaunched the previously failing CI run, and a new homebrew version for ngdevkit-toolchain has just been pushed.

Same limitation as before, there is no bottle for M1*, but when installing it locally on a Mac M1, the build done by brew is now passing:

==> Summary
🍺  /opt/homebrew/Cellar/ngdevkit-toolchain/0.1+202403032129-1: 987 files, 225.9MB, built in 17 minutes 2 seconds

@jeromeEzDATASolutions can you maybe check on your env and confirm that the latest version now builds correctly?

jeromeEzDATASolutions commented 8 months ago

I test

jeromeEzDATASolutions commented 8 months ago
capture
dciabrin commented 8 months ago

Thanks @jeromeEzDATASolutions OK that is a new error, at least the original error reported by @LakeIshikawa seems to be fixed. I realized that I was building with Xcode 15.0, which was probably why it was passing. I upgraded to the latest Xcode 15.2, and now I can see that the latest clang complains when building gdb.

/private/tmp/ngdevkit-toolchain-20240313-91525-mindov/ngdevkit-toolchain-nightly-202403032129/toolchain/gdb-9.2/gdb/gdbsupport/enum-flags.h:85:52: error: integer value -1 is outside the valid range of values [0, 15] for this enumeration type [-Wenum-constexpr-conversion]
    integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type

I'll do another round of fixes and update the issue shortly...

dciabrin commented 8 months ago

It turns out the compilation of gdb and gcc is also broken with Xcode 15.2. I have prepared a patch for both so it should be ready soon. While testing the patch I realized that upgrasding to SDC 4.4 might have impacted the example ROMs as well, so I'll look into it right after.