Re: [racket-users] Apple Silicon build errors

2022-01-17 Thread Sorawee Porncharoenwase
That sounds right to me.

On Mon, Jan 17, 2022 at 9:27 AM Nathaniel W Griswold  wrote:

> Ah, ok, my build finished and everything seems to be working well. The
> binary is signed, too. It seems to have used codesign.rkt along the way
> there, so i think i actually needed both Matthew's recommended commit and
> yours (codesign.rkt imports compiler/private/mach-o). Does that sound
> right, to use both patches? I was gonna try to get nixpkgs building 8.3.
>
> Thanks
>
> Nate
>
> > On Jan 17, 2022, at 10:56 AM, Sorawee Porncharoenwase <
> sorawee.pw...@gmail.com> wrote:
> >
> > That particular issue is fixed by
> https://github.com/racket/racket/commit/3a8a7102abff334ee4e054c3597bebba32bda307,
> if I remember correctly.
> >
> > On Mon, Jan 17, 2022 at 8:50 AM Nathaniel W Griswold  wrote:
> > Hm, Ok. The cherry-pick of 0a8b68b286 does in fact apply cleanly to the
> v8.3 tag.
> >
> > I am still having the same issue, though, even after a full clean. Right
> now, I only have command-line tools (latest). I am downloading the full
> Xcode again but it's gonna be a little bit before i can test that, the
> download is kinda big.
> >
> > Nate
> >
> > > On Jan 17, 2022, at 10:24 AM, Matthew Flatt 
> wrote:
> > >
> > > This is a problem with v8.3 and the latest Apple tools. It's fixed for
> > > the upcoming v8.4 release (so, in the main branch and in the current
> > > snapshot source distributions).
> > >
> > > In case you want a minimal patch, commit 0a8b68b286 is the repair and
> > > might apply cleanly to v8.3.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/7B3C6174-8094-4F23-8CB3-B70597D9F05B%40nan.sh
> .
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to racket-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CADcuegv24-MqiRUNe9yt_Bc%2BPR3BYkXE%3DS9ypSsVFm44%3DEdObg%40mail.gmail.com
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CADcuegt5i8sZGwST32NiuPrSnPRcXyqgkBrP55sNzb%3DLR-%2BXOA%40mail.gmail.com.


Re: [racket-users] Apple Silicon build errors

2022-01-17 Thread Nathaniel W Griswold
Ah, ok, my build finished and everything seems to be working well. The binary 
is signed, too. It seems to have used codesign.rkt along the way there, so i 
think i actually needed both Matthew's recommended commit and yours 
(codesign.rkt imports compiler/private/mach-o). Does that sound right, to use 
both patches? I was gonna try to get nixpkgs building 8.3.

Thanks

Nate

> On Jan 17, 2022, at 10:56 AM, Sorawee Porncharoenwase 
>  wrote:
> 
> That particular issue is fixed by 
> https://github.com/racket/racket/commit/3a8a7102abff334ee4e054c3597bebba32bda307,
>  if I remember correctly.
> 
> On Mon, Jan 17, 2022 at 8:50 AM Nathaniel W Griswold  wrote:
> Hm, Ok. The cherry-pick of 0a8b68b286 does in fact apply cleanly to the v8.3 
> tag.
> 
> I am still having the same issue, though, even after a full clean. Right now, 
> I only have command-line tools (latest). I am downloading the full Xcode 
> again but it's gonna be a little bit before i can test that, the download is 
> kinda big.
> 
> Nate
> 
> > On Jan 17, 2022, at 10:24 AM, Matthew Flatt  wrote:
> > 
> > This is a problem with v8.3 and the latest Apple tools. It's fixed for
> > the upcoming v8.4 release (so, in the main branch and in the current
> > snapshot source distributions).
> > 
> > In case you want a minimal patch, commit 0a8b68b286 is the repair and
> > might apply cleanly to v8.3.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/7B3C6174-8094-4F23-8CB3-B70597D9F05B%40nan.sh.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/CADcuegv24-MqiRUNe9yt_Bc%2BPR3BYkXE%3DS9ypSsVFm44%3DEdObg%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/109DFC26-9677-48F1-B13C-88FE4F7DE3DD%40nan.sh.


Re: [racket-users] Apple Silicon build errors

2022-01-17 Thread Sorawee Porncharoenwase
That particular issue is fixed by
https://github.com/racket/racket/commit/3a8a7102abff334ee4e054c3597bebba32bda307,
if I remember correctly.

On Mon, Jan 17, 2022 at 8:50 AM Nathaniel W Griswold  wrote:

> Hm, Ok. The cherry-pick of 0a8b68b286 does in fact apply cleanly to the
> v8.3 tag.
>
> I am still having the same issue, though, even after a full clean. Right
> now, I only have command-line tools (latest). I am downloading the full
> Xcode again but it's gonna be a little bit before i can test that, the
> download is kinda big.
>
> Nate
>
> > On Jan 17, 2022, at 10:24 AM, Matthew Flatt  wrote:
> >
> > This is a problem with v8.3 and the latest Apple tools. It's fixed for
> > the upcoming v8.4 release (so, in the main branch and in the current
> > snapshot source distributions).
> >
> > In case you want a minimal patch, commit 0a8b68b286 is the repair and
> > might apply cleanly to v8.3.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/7B3C6174-8094-4F23-8CB3-B70597D9F05B%40nan.sh
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CADcuegv24-MqiRUNe9yt_Bc%2BPR3BYkXE%3DS9ypSsVFm44%3DEdObg%40mail.gmail.com.


Re: [racket-users] Apple Silicon build errors

2022-01-17 Thread Nathaniel W Griswold
Hm, Ok. The cherry-pick of 0a8b68b286 does in fact apply cleanly to the v8.3 
tag.

I am still having the same issue, though, even after a full clean. Right now, I 
only have command-line tools (latest). I am downloading the full Xcode again 
but it's gonna be a little bit before i can test that, the download is kinda 
big.

Nate

> On Jan 17, 2022, at 10:24 AM, Matthew Flatt  wrote:
> 
> This is a problem with v8.3 and the latest Apple tools. It's fixed for
> the upcoming v8.4 release (so, in the main branch and in the current
> snapshot source distributions).
> 
> In case you want a minimal patch, commit 0a8b68b286 is the repair and
> might apply cleanly to v8.3.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/7B3C6174-8094-4F23-8CB3-B70597D9F05B%40nan.sh.


Re: [racket-users] Apple Silicon build errors

2022-01-17 Thread Matthew Flatt
This is a problem with v8.3 and the latest Apple tools. It's fixed for
the upcoming v8.4 release (so, in the main branch and in the current
snapshot source distributions).

In case you want a minimal patch, commit 0a8b68b286 is the repair and
might apply cleanly to v8.3.

At Mon, 17 Jan 2022 10:16:53 -0600, Nathaniel W Griswold wrote:
> Has anyone else run into this error (see below) when building natively on 
> Apple silicon? I am getting it both on a cleaned checkout with `make 
> unix-style` with prefix at root, as well as when doing a configure with 
> prefix 
> using the source distribution found at 
> https://mirror.racket-lang.org/installers/8.3/racket-8.3-src.tgz
> 
> Monterey 12.1
> 
> Nate
> 
> ---
> make mac-embed-boot-fw EMBED_SRC=raw_racketcs EMBED_DEST=racketcs
> make[5]: Entering directory 
> '/Users/griswold/project/racket/racket/src/build/cs/c'
> rm -f racketcs
> cp raw_racketcs racketcs
> codesign --remove-signature racketcs
> make[5]: Leaving directory 
> '/Users/griswold/project/racket/racket/src/build/cs/c'
> /usr/bin/install_name_tool -change "Racket.framework/Versions/8.3_CS/Racket" 
> "@executable_path/Racket.framework/Versions/8.3_CS/Racket" racketcs
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/
> usr/bin/install_name_tool: fatal error: file not in an order that can be 
> processed (link edit information does not fill the __LINKEDIT segment): 
> racketcs
> ---
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/160A7A66-18BF-4F18-934A-E85C4642
> 1445%40nan.sh.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20220117092438.386%40sirmail.smtps.cs.utah.edu.


Re: [racket-users] Apple Silicon build errors

2022-01-17 Thread J. Ryan Stinnett
What version of Xcode do you have? Assuming it's the latest, have you
opened it at least once to go through the first run setup of CLI tools?

- Ryan

On Mon, 17 Jan 2022 at 16:16, Nathaniel W Griswold  wrote:

> Has anyone else run into this error (see below) when building natively on
> Apple silicon? I am getting it both on a cleaned checkout with `make
> unix-style` with prefix at root, as well as when doing a configure with
> prefix using the source distribution found at
> https://mirror.racket-lang.org/installers/8.3/racket-8.3-src.tgz
>
> Monterey 12.1
>
> Nate
>
> ---
> make mac-embed-boot-fw EMBED_SRC=raw_racketcs EMBED_DEST=racketcs
> make[5]: Entering directory
> '/Users/griswold/project/racket/racket/src/build/cs/c'
> rm -f racketcs
> cp raw_racketcs racketcs
> codesign --remove-signature racketcs
> make[5]: Leaving directory
> '/Users/griswold/project/racket/racket/src/build/cs/c'
> /usr/bin/install_name_tool -change
> "Racket.framework/Versions/8.3_CS/Racket"
> "@executable_path/Racket.framework/Versions/8.3_CS/Racket" racketcs
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool:
> fatal error: file not in an order that can be processed (link edit
> information does not fill the __LINKEDIT segment): racketcs
> ---
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/160A7A66-18BF-4F18-934A-E85C46421445%40nan.sh
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CA%2B952Wr8oaYZa45eGsrfd1zQVzf6O-z2xOx7o0pDdqgCeJTXcg%40mail.gmail.com.


[racket-users] Apple Silicon build errors

2022-01-17 Thread Nathaniel W Griswold
Has anyone else run into this error (see below) when building natively on Apple 
silicon? I am getting it both on a cleaned checkout with `make unix-style` with 
prefix at root, as well as when doing a configure with prefix using the source 
distribution found at 
https://mirror.racket-lang.org/installers/8.3/racket-8.3-src.tgz

Monterey 12.1

Nate

---
make mac-embed-boot-fw EMBED_SRC=raw_racketcs EMBED_DEST=racketcs
make[5]: Entering directory 
'/Users/griswold/project/racket/racket/src/build/cs/c'
rm -f racketcs
cp raw_racketcs racketcs
codesign --remove-signature racketcs
make[5]: Leaving directory 
'/Users/griswold/project/racket/racket/src/build/cs/c'
/usr/bin/install_name_tool -change "Racket.framework/Versions/8.3_CS/Racket" 
"@executable_path/Racket.framework/Versions/8.3_CS/Racket" racketcs
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool:
 fatal error: file not in an order that can be processed (link edit information 
does not fill the __LINKEDIT segment): racketcs
---

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/160A7A66-18BF-4F18-934A-E85C46421445%40nan.sh.