1 |
Thanks Fabian, |
2 |
|
3 |
I followed your first suggestion, checked which ones are C++ related and recompiled them, without narrowing down… after all on M1 machine it does not take much. |
4 |
|
5 |
By chance, did you use xorg-server on your M1? I am still trying to compile R on my laptop and did not give up yet…. I think recompiling xorg-server should make the trick. |
6 |
|
7 |
Cheerios, |
8 |
-- |
9 |
Askar Bektassov (Аскар Бектасов) |
10 |
Sent from desktop |
11 |
|
12 |
> On 27 Feb 2023, at 10:23, Fabian Groffen <grobian@g.o> wrote: |
13 |
> |
14 |
> Hi Askar, |
15 |
> |
16 |
> On 24-02-2023 21:23:24 +0000, Askar Bektassov wrote: |
17 |
>> Hey Fabian, |
18 |
>> |
19 |
>> All correct. Tinkering with my M1 Pro MacBook Pro. Indeed, I assumed you did |
20 |
>> some hacks with keywords, but definitely your solution is the most elegant one. |
21 |
>> |
22 |
>> Now everything is back, like charm… although I suspect I have to recompile some |
23 |
>> packages because they broke after gcc recompile. Any idea how I could identify |
24 |
>> quickly which packages should be recompiled to fix dylib references? |
25 |
> |
26 |
> I noticed those myself too, it was just a few though, so I manually |
27 |
> recompiled as soon as I ran into them. But it's all C++-related, so |
28 |
> |
29 |
> grep libstdc++ $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3 |
30 |
> |
31 |
> should give you a list, I guess you can narrow down into, by using |
32 |
> scanmacho -r on the binaries from those matches, if they reference |
33 |
> gcc/arm64-apple-darwin21/12.2.0, you'll need to rebuild. |
34 |
> |
35 |
> Something like |
36 |
> |
37 |
> % grep -l libstdc++ $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3 | sed "s:${EPREFIX}/var/db/pkg/::" | cut -d/ -f1,2 | xargs qlist -o | grep '/bin/' | xargs scanmacho -BF '%F|%r' | grep "gcc/arm64-apple-darwin21/12.2.0" | cut -d'|' -f1 | xargs qfile | cut -d: -f1 | sort -u |
38 |
> |
39 |
> (you could use that in emerge -1av `...` I guess :)) |
40 |
> |
41 |
> Fabian |
42 |
>> |
43 |
>> Thanks for the usual flash support, |
44 |
>> -- |
45 |
>> Askar Bektassov (Аскар Бектасов) |
46 |
>> Sent from desktop |
47 |
>> |
48 |
>> On 24 Feb 2023, at 08:23, Fabian Groffen <grobian@g.o> wrote: |
49 |
>> |
50 |
>> Hi Askar, |
51 |
>> |
52 |
>> Given that you reference dylib and MBP, I assume you are running on a |
53 |
>> Mac, and possibly an Apple M1. For the latter, for QA reasons, I had |
54 |
>> to |
55 |
>> remove a hack I did to provide keywords for arm64-macos. |
56 |
>> |
57 |
>> It is easiest to "revert" this change by adding a file |
58 |
>> EPREFIX/etc/portage/make.conf/0900_local.conf with contents: |
59 |
>> |
60 |
>> ACCEPT_KEYWORDS="~x64-macos" |
61 |
>> |
62 |
>> Then all keywords you previously had, should be back. |
63 |
>> |
64 |
>> Thanks, |
65 |
>> Fabian |
66 |
>> |
67 |
>> On 23-02-2023 21:47:03 +0000, Askar Bektassov wrote: |
68 |
>> Folks, |
69 |
>> |
70 |
>> After the last eix-sync, and emerge world -uDNpv (I think |
71 |
>> gcc has been rebuilt) |
72 |
>> my whole prefix broke, or at least seems so. |
73 |
>> |
74 |
>> All packages installed now are either masked or unknown. |
75 |
>> |
76 |
>> askarbektassov@Askars-MBP ~ $ eix -cI |
77 |
>> [?] acct-group/man (0-r1@10/27/22 -> ??): System group: man |
78 |
>> [?] acct-user/man (1-r1@10/27/22 -> ??): System user: man |
79 |
>> [?] app-admin/eselect (1.4.20@10/27/22 -> ??): Gentoo's |
80 |
>> multi-purpose |
81 |
>> configuration and management tool |
82 |
>> [?] app-admin/perl-cleaner (2.30-r1@01/03/23 -> ??): User |
83 |
>> land tool for cleaning |
84 |
>> up old perl installs |
85 |
>> [?] app-alternatives/awk (4@01/03/23 -> ??): /bin/awk and / |
86 |
>> usr/bin/awk symlinks |
87 |
>> [?] app-alternatives/bzip2 (1@01/03/23 -> ??): bzip2 symlink |
88 |
>> [?] app-alternatives/cpio (0@12/11/22 -> ??): CPIO symlink |
89 |
>> [?] app-alternatives/gzip (0@12/06/22 -> ??): gzip symlinks |
90 |
>> [?] app-alternatives/lex (0-r1@12/11/22 -> ??): lex symlinks |
91 |
>> [?] app-alternatives/sh (0@01/03/23 -> ??): /bin/sh (POSIX |
92 |
>> shell) symlink |
93 |
>> [?] app-alternatives/tar (0@12/06/22 -> ??): Tar symlink |
94 |
>> [?] app-alternatives/yacc (1-r2@12/06/22 -> ??): yacc |
95 |
>> symlinks |
96 |
>> [I] app-arch/bzip2 (1.0.8-r4(0/1)@01/03/23): A high-quality |
97 |
>> data compressor used |
98 |
>> extensively by Gentoo Linux |
99 |
>> [?] app-arch/cpio (2.13-r5@01/03/23 -> ??): A file archival |
100 |
>> tool which can also |
101 |
>> read and write tar files |
102 |
>> [?] app-arch/gzip (1.12-r4@01/20/23 -> ??): Standard GNU |
103 |
>> compressor |
104 |
>> [?] app-arch/libarchive (3.6.1-r1(0/13)@12/06/22 -> ??): |
105 |
>> Multi-format archive |
106 |
>> and compression library |
107 |
>> [?] app-arch/rpm2targz (2021.03.16@10/05/22 -> ??): Convert |
108 |
>> a .rpm file to a |
109 |
>> .tar.gz archive |
110 |
>> |
111 |
>> And the list goes on… the first thing I noticed, is that git |
112 |
>> was not connecting |
113 |
>> and man stopped working… |
114 |
>> |
115 |
>> askarbektassov@Askars-MBP ~/Documents/Books/SDS/github/ |
116 |
>> A5kar.github.io (main) $ |
117 |
>> man git |
118 |
>> man: command exited with status 134: (cd /Users/ |
119 |
>> askarbektassov/Gentoo/usr/share/ |
120 |
>> man && /Users/askarbektassov/Gentoo/usr/libexec/man-db/ |
121 |
>> zsoelim) | (cd /Users/ |
122 |
>> askarbektassov/Gentoo/usr/share/man && /Users/ |
123 |
>> askarbektassov/Gentoo/usr/libexec/ |
124 |
>> man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd / |
125 |
>> Users/ |
126 |
>> askarbektassov/Gentoo/usr/share/man && preconv -e UTF-8) | |
127 |
>> (cd /Users/ |
128 |
>> askarbektassov/Gentoo/usr/share/man && tbl) | (cd /Users/ |
129 |
>> askarbektassov/Gentoo/ |
130 |
>> usr/share/man && nroff -mandoc -c -rLL=157n -rLT=157n - |
131 |
>> Tutf8) |
132 |
>> |
133 |
>> But then, even eix did not work, until I’ve added it to |
134 |
>> accept_keywords list and |
135 |
>> recompiled it (I guess it lost some dylib links, with the |
136 |
>> gcc recompile). |
137 |
>> |
138 |
>> But for the rest… what happened? |
139 |
>> |
140 |
>> Thanks, |
141 |
>> -- |
142 |
>> Askar Bektassov (Аскар Бектасов) |
143 |
>> Sent from desktop |
144 |
>> |
145 |
>> |
146 |
>> -- |
147 |
>> Fabian Groffen |
148 |
>> Gentoo on a different level |
149 |
>> |
150 |
> |
151 |
> -- |
152 |
> Fabian Groffen |
153 |
> Gentoo on a different level |