Gentoo Archives: gentoo-alt

From: Francois Bissey <francois.bissey@×××××××××××××.nz>
To: "gentoo-alt@l.g.o" <gentoo-alt@l.g.o>
Subject: Re: [gentoo-alt] Build error on macOS High Sierra 10.13.3
Date: Fri, 06 Apr 2018 08:14:02
Message-Id: 145E3086-C66B-449F-885B-29836E4D0396@canterbury.ac.nz
In Reply to: Re: [gentoo-alt] Build error on macOS High Sierra 10.13.3 by Brad Macpherson
1 The crucial bit
2 [ 80%] Linking CXX executable ../bin/ccmake
3 cd /Users/brad/Gentoo/var/tmp/portage/dev-util/cmake-3.11.0/work/cmake-3.11.0_build/Source && /Users/brad/Gentoo/usr/bin/cmake -E cmake_link_script CMakeFiles/ccmake.dir/link.txt --verbose=1
4 /Users/brad/Gentoo/usr/lib/llvm/6/bin/x86_64-apple-darwin17-clang++ -march=native -O2 -pipe -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs CMakeFiles/ccmake.dir/CursesDialog/cmCursesOptionsWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesBoolWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesCacheEntryComposite.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesDummyWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesFilePathWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesForm.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesLabelWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesLongMessageForm.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesMainForm.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesPathWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesStringWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/cmCursesWidget.cxx.o CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o -o ../bin/ccmake libCMakeLib.a /Users/brad/Gentoo/usr/lib/libform.dylib /Users/brad/Gentoo/usr/lib/libncurses.dylib kwsys/libcmsys.a /Users/brad/Gentoo/usr/lib/libexpat.dylib /Users/brad/Gentoo/usr/lib/libz.dylib /Users/brad/Gentoo/usr/lib/libarchive.dylib ../Utilities/cmcompress/libcmcompress.a /Users/brad/Gentoo/usr/lib/libcurl.dylib ../Utilities/cmjsoncpp/libcmjsoncpp.a /Users/brad/Gentoo/usr/lib/libuv.dylib /Users/brad/Gentoo/usr/lib/librhash.dylib -framework CoreFoundation
5 Undefined symbols for architecture x86_64:
6 "_LSOpenCFURLRef", referenced from:
7 cmGlobalXCodeGenerator::Open(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in libCMakeLib.a(cmGlobalXCodeGenerator.cxx.o)
8 ld: symbol(s) not found for architecture x86_64
9 clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
10
11
12 > On 6/04/2018, at 20:09, Brad Macpherson <brad@××××××××××××××××.com> wrote:
13 >
14 > Hi,
15 >
16 > I tried a clean bootstrap.sh on High Sierra (10.13.4), and eventually
17 > came up with the same:
18 >
19 > * Messages for package dev-util/cmake-3.11.0:
20 >
21 > * ERROR: dev-util/cmake-3.11.0::gentoo_prefix failed (compile phase):
22 > * emake failed
23 > *
24 > * If you need support, post the output of `emerge --info
25 > '=dev-util/cmake-3.11.0::gentoo_prefix'`,
26 > * the complete build log and the output of `emerge -pqv
27 > '=dev-util/cmake-3.11.0::gentoo_prefix'`.
28 > * The complete build log is located at
29 > '/Users/brad/Gentoo/var/tmp/portage/dev-util/cmake-3.11.0/temp/build.log'.
30 > * The ebuild environment file is located at
31 > '/Users/brad/Gentoo/var/tmp/portage/dev-util/cmake-3.11.0/temp/environment'.
32 > * Working directory:
33 > '/Users/brad/Gentoo/var/tmp/portage/dev-util/cmake-3.11.0/work/cmake-3.11.0_build'
34 > * S:
35 > '/Users/brad/Gentoo/var/tmp/portage/dev-util/cmake-3.11.0/work/cmake-3.11.0'
36 >
37 > Oh yeah, I thought I was almost there, and then this! I did
38 > emerge -e system
39 > and it failed at some point :( Details might be found in the build log:
40 > /Users/brad/Gentoo/var/tmp/portage/dev-util/cmake-3.11.0/temp/build.log
41 > I have no clue, really. Please find friendly folks in #gentoo-prefix on
42 > irc.gentoo.org, gentoo-alt@l.g.o mailing list, or file a bug
43 > at bugs.gentoo.org under Gentoo/Alt, Prefix Support.
44 > You know, I got the feeling you just started to like me, but I guess
45 > that's all gone now. I'll bother you no longer.
46 >
47 > Trying a rerun now, will let you know how it goes; build.log and
48 > environment attached if they're any use.
49 >
50 > Cheers
51 >
52 > Brad
53 >
54 >
55 > On 04/04/2018 18:38, Fabian Groffen wrote:
56 >> Unfortunately not, it's a Mach-O problem.
57 >>
58 >> On 04-04-2018 10:09:02 -0400, Anton Molyboha wrote:
59 >>> I have lost my access to a Mac (it used to be a work machine and I don't work
60 >>> there any more) - is it something that can be debugged in a Linux host? I'd like
61 >>> to give it a try.
62 >>>
63 >>> On Wed, Apr 4, 2018 at 9:54 AM, Fabian Groffen <[1]grobian@g.o> wrote:
64 >>>
65 >>>> I'm in the process to fix something related, but I haven't seen this
66 >>>> particular install_name reference problem myself yet.
67 >>>> On 04-04-2018 15:46:19 +0200, Johannes Schulte-Wülwer wrote:
68 >>>>> Thanks Anton,
69 >>>>>
70 >>>>> Unfortunately I have to wait for the weekend to try your solution (Don't
71 >>>> have
72 >>>>> access to the iMac before Saturday). I'll let you know if retrying a couple
73 >>>> of
74 >>>>> times helps.
75 >>>>>
76 >>>>> BR,
77 >>>>>
78 >>>>> Johannes
79 >>>>>
80 >>>>> 2018-03-30 16:43 GMT+02:00 Anton Molyboha
81 >>>> <[1][2]anton.stay.connected@×××××.com>:
82 >>>>>> Hi Johannes,
83 >>>>>> This looks similar to bug #637470 ([2][3]https://bugs.gentoo.org/637470)
84 >>>> -- if it
85 >>>>>> is, then retrying a couple of times generally solves it.
86 >>>>>> Anton
87 >>>>>> On Wed, Mar 28, 2018 at 9:45 AM, Johannes Schulte-Wülwer
88 >>>>>> <[3][4]j.schultewuelwer@××××××××××.com> wrote:
89 >>>>>>> Hi, this is the last message that I get:
90 >>>>>>> * If you need support, post the output of `emerge --info
91 >>>>>>> '=dev-lang/python-2.7.14::gentoo_prefix'`,
92 >>>>>>> * the complete build log and the output of `emerge -pqv
93 >>>>>>> '=dev-lang/python-2.7.14::gentoo_prefix'`.
94 >>>>>>> * The complete build log is located at
95 >>>>>>>
96 >>>> '/Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/temp/build.log'.
97 >>>>>>> * The ebuild environment file is located at
98 >>>>>>>
99 >>>> '/Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/temp/environment'.
100 >>>>>>> * Working directory:
101 >>>>>>> '/Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image'
102 >>>>>>> * S:
103 >>>>>>>
104 >>>> '/Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/work/Python-2.7.14'
105 >>>>>>> Hmmmm, I was already afraid of this to happen. Running
106 >>>>>>> /Users/jschultewu/Gentoo/usr/bin/bash ./bootstrap-prefix.sh
107 >>>>>>> "/Users/jschultewu/Gentoo" stage3
108 >>>>>>> somewhere failed :( Details might be found in the build log:
109 >>>>>>>
110 >>>>>>>
111 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/temp/build.log
112 >>>>>>> I have no clue, really. Please find friendly folks in #gentoo-prefix on
113 >>>>>>> [4][5]irc.gentoo.org, [5][6]gentoo-alt@l.g.o mailing list, or
114 >>>> file a bug
115 >>>>>>> at [6][7]bugs.gentoo.org under Gentoo/Alt, Prefix Support. This is most
116 >>>>>>> inconvenient, and it crushed my ego. Sorry, I give up.
117 >>>>>>> Should you want to give it a try, there is
118 >>>>>>> /Users/jschultewu/Gentoo/stage3.log
119 >>>>>>> BR,
120 >>>>>>> Johannes
121 >>>>>>> 2018-03-28 15:41 GMT+02:00 Fabian Groffen <[7][8]grobian@g.o>:
122 >>>>>>>> You mentioned you were bootstrapping, what is the exit message you got
123 >>>>>>>> from bootstrap-prefix.sh?
124 >>>>>>>> On 28-03-2018 15:34:49 +0200, Johannes Schulte-Wülwer wrote:
125 >>>>>>>>> Sorry, I don't know. How can I figure out?
126 >>>>>>>>>
127 >>>>>>>>> 2018-03-28 15:11 GMT+02:00 Fabian Groffen
128 >>>> <[1][8][9]grobian@g.o>:
129 >>>>>>>>>> Is this during the final emerge -e system stage? Do you happen to
130 >>>> know?
131 >>>>>>>>>> On 28-03-2018 14:57:05 +0200, Johannes Schulte-Wülwer wrote:
132 >>>>>>>>>>> Hi all,
133 >>>>>>>>>>>
134 >>>>>>>>>>> I am trying to build gentoo prefix on macOS High Sierra 10.13 and
135 >>>> I am
136 >>>>>>>>>> getting
137 >>>>>>>>>>> an error during python 2.7.14 build:
138 >>>>>>>>>>>
139 >>>>>>>>>>>>>> Completed installing python-2.7.14 into
140 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image/
141 >>>>>>>>>>> * Final size of build directory: 90480 KiB (88.3 MiB)
142 >>>>>>>>>>>
143 >>>>>>>>>>> * Final size of installed tree: 89472 KiB (87.3 MiB)
144 >>>>>>>>>>>
145 >>>>>>>>>>> grep:
146 >>>>>>>>>>>
147 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image/Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/include/python2.7:
148 >>>>>>>>>>> Is a directory
149 >>>>>>>>>>>
150 >>>>>>>>>>> grep:
151 >>>>>>>>>>>
152 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image/Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Headers:
153 >>>>>>>>>>> Is a directory
154 >>>>>>>>>>>
155 >>>>>>>>>>> grep:
156 >>>>>>>>>>>
157 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image/Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/lib/python2.7:
158 >>>>>>>>>>> Is a directory
159 >>>>>>>>>>>
160 >>>>>>>>>>> * prefixing shebang of
161 >>>> Users/jschultewu/Gentoo/etc/init.d/pydoc-2.7
162 >>>>>>>>>>> ecompressdir: bzip2 -9 /usr/share/man
163 >>>>>>>>>>>
164 >>>>>>>>>>> ecompressdir: bzip2 -9 /usr/share/doc
165 >>>>>>>>>>>
166 >>>>>>>>>>> * QA Notice: install_name references ${D}:
167 >>>>>>>>>>>
168 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Python
169 >>>>>>>>>>> in
170 >>>> /Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/bin/pythonw2.7
171 >>>>>>>>>>> * QA Notice: install_name references ${D}:
172 >>>>>>>>>>>
173 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Python
174 >>>>>>>>>>> in
175 >>>> /Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/bin/python2.7
176 >>>>>>>>>>> * QA Notice: invalid self-reference install_name
177 >>>>>>>>>>>
178 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Python
179 >>>>>>>>>>> in
180 >>>>>>>> /Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Python
181 >>>>>>>>>>> * QA Notice: install_name references ${D}:
182 >>>>>>>>>>>
183 >>>> /Users/jschultewu/Gentoo/var/tmp/portage/dev-lang/python-2.7.14/image//Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Python
184 >>>>>>>>>>> in
185 >>>>>>>>>>>
186 >>>> /Users/jschultewu/Gentoo/usr/lib/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
187 >>>>>>>>>>> * ERROR: dev-lang/python-2.7.14::gentoo_prefix failed:
188 >>>>>>>>>>>
189 >>>>>>>>>>> * invalid install_name found, your application or library will
190 >>>>>>>> crash at
191 >>>>>>>>>>> runtime
192 >>>>>>>>>>>
193 >>>>>>>>>>> *
194 >>>>>>>>>>>
195 >>>>>>>>>>> * Call stack:
196 >>>>>>>>>>>
197 >>>>>>>>>>> * misc-functions.sh, line 1299: Called install_qa_check
198 >>>>>>>>>>>
199 >>>>>>>>>>> * misc-functions.sh, line 241: Called install_qa_check_macho
200 >>>>>>>>>>>
201 >>>>>>>>>>> * misc-functions.sh, line 422: Called die
202 >>>>>>>>>>>
203 >>>>>>>>>>> * The specific snippet of code:
204 >>>>>>>>>>>
205 >>>>>>>>>>> * has allow_broken_install_names ${FEATURES} || \
206 >>>>>>>>>>>
207 >>>>>>>>>>> * die "invalid install_name found, your application or library
208 >>>>>>>> will
209 >>>>>>>>>> crash at
210 >>>>>>>>>>> runtime"
211 >>>>>>>>>>>
212 >>>>>>>>>>> Does anyone has a clue what is going wrong here?
213 >>>>>>>>>>>
214 >>>>>>>>>>> BR,
215 >>>>>>>>>>>
216 >>>>>>>>>>> Johannes
217 >>>>>>>>>>>
218 >>>>>>>>>>>
219 >>>>>>>>>>> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
220 >>>>>>>>>> --
221 >>>>>>>>>> Fabian Groffen
222 >>>>>>>>>> Gentoo on a different level
223 >>>>>>>>>
224 >>>>>>>>>
225 >>>>>>>>> References:
226 >>>>>>>>> 1. mailto:[9][10]grobian@g.o
227 >>>>>>>>> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
228 >>>>>>>> --
229 >>>>>>>> Fabian Groffen
230 >>>>>>>> Gentoo on a different level
231 >>>>>
232 >>>>>
233 >>>>> References:
234 >>>>> 1. mailto:[11]anton.stay.connected@×××××.com
235 >>>>> 2. [12]https://bugs.gentoo.org/637470
236 >>>>> 3. mailto:[13]j.schultewuelwer@××××××××××.com
237 >>>>> 4. [14]http://irc.gentoo.org
238 >>>>> 5. mailto:[15]gentoo-alt@l.g.o
239 >>>>> 6. [16]http://bugs.gentoo.org
240 >>>>> 7. mailto:[17]grobian@g.o
241 >>>>> 8. mailto:[18]grobian@g.o
242 >>>>> 9. mailto:[19]grobian@g.o
243 >>>>> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
244 >>>> --
245 >>>> Fabian Groffen
246 >>>> Gentoo on a different level
247 >>>
248 >>>
249 >>> References:
250 >>> 1. mailto:grobian@g.o
251 >>> 2. mailto:anton.stay.connected@×××××.com
252 >>> 3. https://bugs.gentoo.org/637470
253 >>> 4. mailto:j.schultewuelwer@××××××××××.com
254 >>> 5. http://irc.gentoo.org
255 >>> 6. mailto:gentoo-alt@l.g.o
256 >>> 7. http://bugs.gentoo.org
257 >>> 8. mailto:grobian@g.o
258 >>> 9. mailto:grobian@g.o
259 >>> 10. mailto:grobian@g.o
260 >>> 11. mailto:anton.stay.connected@×××××.com
261 >>> 12. https://bugs.gentoo.org/637470
262 >>> 13. mailto:j.schultewuelwer@××××××××××.com
263 >>> 14. http://irc.gentoo.org
264 >>> 15. mailto:gentoo-alt@l.g.o
265 >>> 16. http://bugs.gentoo.org
266 >>> 17. mailto:grobian@g.o
267 >>> 18. mailto:grobian@g.o
268 >>> 19. mailto:grobian@g.o
269 >>>
270 >>> read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
271 >
272 > <build.log><environment.txt>