Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Weird compilation error (nasm)
Date: Tue, 13 Nov 2018 17:57:28
Message-Id: 20181113175828.lmzdsmdvfiquov5c@solfire
In Reply to: Re: [gentoo-user] Weird compilation error (nasm) by Alexander Kapshuk
1 On 11/13 07:52, Alexander Kapshuk wrote:
2 > On Tue, Nov 13, 2018 at 7:10 PM <tuxic@××××××.de> wrote:
3 > >
4 > > Hi,
5 > >
6 > > I got a weird looking error while upgrading/recompiling nasm:
7 > > cmake -C /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_DEFAULT_DOCDIR=/usr/share/doc/libjpeg-turbo-2.0.1 -DENABLE_STATIC=no -DWITH_JAVA=no -DWITH_MEM_SRCDST=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_toolchain.cmake /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1
8 > > loading initial cache file /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_common_config.cmake
9 > > -- The C compiler identification is GNU 8.2.0
10 > > -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
11 > > -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
12 > > -- Detecting C compiler ABI info
13 > > -- Detecting C compiler ABI info - done
14 > > -- Detecting C compile features
15 > > -- Detecting C compile features - done
16 > > -- CMAKE_BUILD_TYPE = Gentoo
17 > > -- VERSION = 2.0.1, BUILD = 20181113
18 > > -- 64-bit build (x86_64)
19 > > -- CMAKE_INSTALL_PREFIX = /usr
20 > > -- CMAKE_INSTALL_BINDIR = bin (/usr/bin)
21 > > -- CMAKE_INSTALL_DATAROOTDIR = share (/usr/share)
22 > > -- CMAKE_INSTALL_DOCDIR = /usr/share/doc/libjpeg-turbo-2.0.1
23 > > -- CMAKE_INSTALL_INCLUDEDIR = include (/usr/include)
24 > > -- CMAKE_INSTALL_LIBDIR = lib64 (/usr/lib64)
25 > > -- CMAKE_INSTALL_MANDIR = /usr/share/man
26 > > -- Shared libraries enabled (ENABLE_SHARED = 1)
27 > > -- Static libraries disabled (ENABLE_STATIC = 0)
28 > > -- 12-bit JPEG support disabled (WITH_12BIT = 0)
29 > > -- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
30 > > -- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
31 > > -- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
32 > > -- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
33 > > -- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
34 > > -- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
35 > > -- libjpeg API shared library version = 62.3.0
36 > > -- Compiler flags = -march=native -O -pipe
37 > > -- Linker flags = -Wl,-O1 -Wl,--as-needed
38 > > -- Looking for sys/types.h
39 > > -- Looking for sys/types.h - found
40 > > -- Looking for stdint.h
41 > > -- Looking for stdint.h - found
42 > > -- Looking for stddef.h
43 > > -- Looking for stddef.h - found
44 > > -- Check size of size_t
45 > > -- Check size of size_t - done
46 > > -- Check size of unsigned long
47 > > -- Check size of unsigned long - done
48 > > -- Performing Test HAVE_BUILTIN_CTZL
49 > > -- Performing Test HAVE_BUILTIN_CTZL - Success
50 > > -- Looking for include file locale.h
51 > > -- Looking for include file locale.h - found
52 > > -- Looking for include file stdlib.h
53 > > -- Looking for include file stdlib.h - found
54 > > -- Looking for include file sys/types.h
55 > > -- Looking for include file sys/types.h - found
56 > > -- Looking for memset
57 > > -- Looking for memset - found
58 > > -- Looking for memcpy
59 > > -- Looking for memcpy - found
60 > > -- Check size of unsigned char
61 > > -- Check size of unsigned char - done
62 > > -- Check size of unsigned short
63 > > -- Check size of unsigned short - done
64 > > -- Performing Test INCOMPLETE_TYPES
65 > > -- Performing Test INCOMPLETE_TYPES - Success
66 > > -- Compiler supports pointers to undefined structures.
67 > > -- Performing Test RIGHT_SHIFT_IS_UNSIGNED
68 > > -- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed
69 > > -- Performing Test __CHAR_UNSIGNED__
70 > > -- Performing Test __CHAR_UNSIGNED__ - Failed
71 > > -- Performing Test INLINE_WORKS
72 > > -- Performing Test INLINE_WORKS - Success
73 > > -- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
74 > > -- Performing Test HAVE_VERSION_SCRIPT
75 > > -- Performing Test HAVE_VERSION_SCRIPT - Success
76 > > -- Linker supports GNU-style version scripts
77 > > -- CMAKE_EXECUTABLE_SUFFIX =
78 > > * ACCESS DENIED: fopen_wr: /?
79 > > -- The ASM_NASM compiler identification is NASM
80 > > -- Found assembler: /usr/bin/nasm
81 > > -- CMAKE_ASM_NASM_COMPILER = /usr/bin/nasm
82 > > -- CMAKE_ASM_NASM_OBJECT_FORMAT = elf64
83 > > -- CMAKE_ASM_NASM_FLAGS = -DELF -D__x86_64__ -DPIC
84 > > -- SIMD extensions: x86_64 (WITH_SIMD = 1)
85 > > -- FLOATTEST = sse
86 > > -- RPM architecture = x86_64, DEB architecture = amd64
87 > > -- <<< Gentoo configuration >>>
88 > > Build type Gentoo
89 > > Install path /usr
90 > > Compiler flags:
91 > > C -march=native -O -pipe
92 > > C++
93 > > Linker flags:
94 > > Executable -Wl,-O1 -Wl,--as-needed
95 > > Module -Wl,-O1 -Wl,--as-needed
96 > > Shared -Wl,-O1 -Wl,--as-needed
97 > >
98 > > -- Configuring done
99 > > -- Generating done
100 > > -- Build files have been written to: /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64
101 > > >>> Source configured.
102 > > * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
103 > > * LOG FILE: "/var/log/sandbox/sandbox-16492.log"
104 > > *
105 > > VERSION 1.0
106 > > FORMAT: F - Function called
107 > > FORMAT: S - Access Status
108 > > FORMAT: P - Path as passed to function
109 > > FORMAT: A - Absolute Path (not canonical)
110 > > FORMAT: R - Canonical Path
111 > > FORMAT: C - Command Line
112 > >
113 > > F: fopen_wr
114 > > S: deny
115 > > P: /?
116 > > A: /?
117 > > R: /?
118 > > C: /usr/bin/nasm /?
119 > > * --------------------------------------------------------------------------------
120 > > !!! When you file a bug report, please include the following information:
121 > > GENTOO_VM= CLASSPATH="" JAVA_HOME=""
122 > > JAVACFLAGS="" COMPILER=""
123 > > and of course, the output of emerge --info =libjpeg-turbo-2.0.1
124 > > *
125 > > * The following package has failed to build, install, or execute postinst:
126 > > *
127 > > * (media-libs/libjpeg-turbo-2.0.1:0/0::gentoo, ebuild scheduled for merge), Log file:
128 > > * '/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log'
129 > >
130 > >
131 > > If wanted I will post the build.log etc...
132 > >
133 > > I never had an error looking like this one...
134 > >
135 > > Any fox for that or am I the onlu one...?
136 > >
137 > > Cheers!
138 > > Meino
139 > >
140 > >
141 > >
142 > >
143 >
144 > The failed build output enclosed is actually that of
145 > media-libs/libjpeg-turbo-2.0.1, not nasm.
146 > Nasm is listed as a dependency for this library. See
147 > libjpeg-turbo-2.0.1.ebuild for ASM_DEPEND.
148 >
149 > As an aside, libjpeg-turbo-2.0.1 has not been stabilised yet. Are you
150 > on an unstable system?
151 >
152 > As for the actual build error, the contents of
153 > /var/log/sandbox/sandbox-16492.log and
154 > /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log would
155 > be in order.
156 >
157
158 Hi,
159
160 yes, I am on an unstable system :)
161
162 Here are the logs:
163
164 ### /var/log/sandbox/sandbox-16492.log and
165 VERSION 1.0
166 FORMAT: F - Function called
167 FORMAT: S - Access Status
168 FORMAT: P - Path as passed to function
169 FORMAT: A - Absolute Path (not canonical)
170 FORMAT: R - Canonical Path
171 FORMAT: C - Command Line
172
173 F: fopen_wr
174 S: deny
175 P: /?
176 A: /?
177 R: /?
178 C: /usr/bin/nasm /?
179
180 ### /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log would
181 * Package: media-libs/libjpeg-turbo-2.0.1
182 * Repository: gentoo
183 * Maintainer: anarchy@g.o graphics@g.o
184 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
185 * FEATURES: preserve-libs sandbox userpriv usersandbox
186 >>> cfg-update-1.8.2-r1: Creating checksum index...
187 >>> Unpacking source...
188 >>> Unpacking libjpeg-turbo-2.0.1.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
189 >>> Unpacking libjpeg8_8d-2.debian.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
190 >>> Source unpacked in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
191 >>> Preparing source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
192 >>> Source prepared.
193 >>> Configuring source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
194 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
195 >>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64"
196 cmake -C /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_DEFAULT_DOCDIR=/usr/share/doc/libjpeg-turbo-2.0.1 -DENABLE_STATIC=no -DWITH_JAVA=no -DWITH_MEM_SRCDST=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_toolchain.cmake /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1
197 loading initial cache file /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_common_config.cmake
198 -- The C compiler identification is GNU 8.2.0
199 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
200 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
201 -- Detecting C compiler ABI info
202 -- Detecting C compiler ABI info - done
203 -- Detecting C compile features
204 -- Detecting C compile features - done
205 -- CMAKE_BUILD_TYPE = Gentoo
206 -- VERSION = 2.0.1, BUILD = 20181113
207 -- 64-bit build (x86_64)
208 -- CMAKE_INSTALL_PREFIX = /usr
209 -- CMAKE_INSTALL_BINDIR = bin (/usr/bin)
210 -- CMAKE_INSTALL_DATAROOTDIR = share (/usr/share)
211 -- CMAKE_INSTALL_DOCDIR = /usr/share/doc/libjpeg-turbo-2.0.1
212 -- CMAKE_INSTALL_INCLUDEDIR = include (/usr/include)
213 -- CMAKE_INSTALL_LIBDIR = lib64 (/usr/lib64)
214 -- CMAKE_INSTALL_MANDIR = /usr/share/man
215 -- Shared libraries enabled (ENABLE_SHARED = 1)
216 -- Static libraries disabled (ENABLE_STATIC = 0)
217 -- 12-bit JPEG support disabled (WITH_12BIT = 0)
218 -- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
219 -- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
220 -- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
221 -- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
222 -- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
223 -- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
224 -- libjpeg API shared library version = 62.3.0
225 -- Compiler flags = -march=native -O -pipe
226 -- Linker flags = -Wl,-O1 -Wl,--as-needed
227 -- Looking for sys/types.h
228 -- Looking for sys/types.h - found
229 -- Looking for stdint.h
230 -- Looking for stdint.h - found
231 -- Looking for stddef.h
232 -- Looking for stddef.h - found
233 -- Check size of size_t
234 -- Check size of size_t - done
235 -- Check size of unsigned long
236 -- Check size of unsigned long - done
237 -- Performing Test HAVE_BUILTIN_CTZL
238 -- Performing Test HAVE_BUILTIN_CTZL - Success
239 -- Looking for include file locale.h
240 -- Looking for include file locale.h - found
241 -- Looking for include file stdlib.h
242 -- Looking for include file stdlib.h - found
243 solfire:/home/mccramer>sudo cat /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log
244 * Package: media-libs/libjpeg-turbo-2.0.1
245 * Repository: gentoo
246 * Maintainer: anarchy@g.o graphics@g.o
247 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
248 * FEATURES: preserve-libs sandbox userpriv usersandbox
249 >>> cfg-update-1.8.2-r1: Creating checksum index...
250 >>> Unpacking source...
251 >>> Unpacking libjpeg-turbo-2.0.1.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
252 >>> Unpacking libjpeg8_8d-2.debian.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
253 >>> Source unpacked in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
254 >>> Preparing source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
255 >>> Source prepared.
256 >>> Configuring source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
257 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
258 >>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64"
259 cmake -C /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_DEFAULT_DOCDIR=/usr/share/doc/libjpeg-turbo-2.0.1 -DENABLE_STATIC=no -DWITH_JAVA=no -DWITH_MEM_SRCDST=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_toolchain.cmake /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1
260 loading initial cache file /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64/gentoo_common_config.cmake
261 -- The C compiler identification is GNU 8.2.0
262 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
263 -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
264 -- Detecting C compiler ABI info
265 -- Detecting C compiler ABI info - done
266 -- Detecting C compile features
267 -- Detecting C compile features - done
268 -- CMAKE_BUILD_TYPE = Gentoo
269 -- VERSION = 2.0.1, BUILD = 20181113
270 -- 64-bit build (x86_64)
271 -- CMAKE_INSTALL_PREFIX = /usr
272 -- CMAKE_INSTALL_BINDIR = bin (/usr/bin)
273 -- CMAKE_INSTALL_DATAROOTDIR = share (/usr/share)
274 -- CMAKE_INSTALL_DOCDIR = /usr/share/doc/libjpeg-turbo-2.0.1
275 -- CMAKE_INSTALL_INCLUDEDIR = include (/usr/include)
276 -- CMAKE_INSTALL_LIBDIR = lib64 (/usr/lib64)
277 -- CMAKE_INSTALL_MANDIR = /usr/share/man
278 -- Shared libraries enabled (ENABLE_SHARED = 1)
279 -- Static libraries disabled (ENABLE_STATIC = 0)
280 -- 12-bit JPEG support disabled (WITH_12BIT = 0)
281 -- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
282 -- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
283 -- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
284 -- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
285 -- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
286 -- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
287 -- libjpeg API shared library version = 62.3.0
288 -- Compiler flags = -march=native -O -pipe
289 -- Linker flags = -Wl,-O1 -Wl,--as-needed
290 -- Looking for sys/types.h
291 -- Looking for sys/types.h - found
292 -- Looking for stdint.h
293 -- Looking for stdint.h - found
294 -- Looking for stddef.h
295 -- Looking for stddef.h - found
296 -- Check size of size_t
297 -- Check size of size_t - done
298 -- Check size of unsigned long
299 -- Check size of unsigned long - done
300 -- Performing Test HAVE_BUILTIN_CTZL
301 -- Performing Test HAVE_BUILTIN_CTZL - Success
302 -- Looking for include file locale.h
303 -- Looking for include file locale.h - found
304 -- Looking for include file stdlib.h
305 -- Looking for include file stdlib.h - found
306 -- Looking for include file sys/types.h
307 -- Looking for include file sys/types.h - found
308 -- Looking for memset
309 -- Looking for memset - found
310 -- Looking for memcpy
311 -- Looking for memcpy - found
312 -- Check size of unsigned char
313 -- Check size of unsigned char - done
314 -- Check size of unsigned short
315 -- Check size of unsigned short - done
316 -- Performing Test INCOMPLETE_TYPES
317 -- Performing Test INCOMPLETE_TYPES - Success
318 -- Compiler supports pointers to undefined structures.
319 -- Performing Test RIGHT_SHIFT_IS_UNSIGNED
320 -- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed
321 -- Performing Test __CHAR_UNSIGNED__
322 -- Performing Test __CHAR_UNSIGNED__ - Failed
323 -- Performing Test INLINE_WORKS
324 -- Performing Test INLINE_WORKS - Success
325 -- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
326 -- Performing Test HAVE_VERSION_SCRIPT
327 -- Performing Test HAVE_VERSION_SCRIPT - Success
328 -- Linker supports GNU-style version scripts
329 -- CMAKE_EXECUTABLE_SUFFIX =
330 * ACCESS DENIED: fopen_wr: /?
331 -- The ASM_NASM compiler identification is NASM
332 -- Found assembler: /usr/bin/nasm
333 -- CMAKE_ASM_NASM_COMPILER = /usr/bin/nasm
334 -- CMAKE_ASM_NASM_OBJECT_FORMAT = elf64
335 -- CMAKE_ASM_NASM_FLAGS = -DELF -D__x86_64__ -DPIC
336 -- SIMD extensions: x86_64 (WITH_SIMD = 1)
337 -- FLOATTEST = sse
338 -- RPM architecture = x86_64, DEB architecture = amd64
339 -- <<< Gentoo configuration >>>
340 Build type Gentoo
341 Install path /usr
342 Compiler flags:
343 C -march=native -O -pipe
344 C++
345 Linker flags:
346 Executable -Wl,-O1 -Wl,--as-needed
347 Module -Wl,-O1 -Wl,--as-needed
348 Shared -Wl,-O1 -Wl,--as-needed
349
350 -- Configuring done
351 -- Generating done
352 -- Build files have been written to: /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64
353 >>> Source configured.
354 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
355 * LOG FILE: "/var/log/sandbox/sandbox-16492.log"
356 *
357 VERSION 1.0
358 FORMAT: F - Function called
359 FORMAT: S - Access Status
360 FORMAT: P - Path as passed to function
361 FORMAT: A - Absolute Path (not canonical)
362 FORMAT: R - Canonical Path
363 FORMAT: C - Command Line
364
365 F: fopen_wr
366 S: deny
367 P: /?
368 A: /?
369 R: /?
370 C: /usr/bin/nasm /?
371 * --------------------------------------------------------------------------------
372 !!! When you file a bug report, please include the following information:
373 GENTOO_VM= CLASSPATH="" JAVA_HOME=""
374 JAVACFLAGS="" COMPILER=""
375 and of course, the output of emerge --info =libjpeg-turbo-2.0.1
376
377
378 Cheers!
379 Meino

Replies

Subject Author
Re: [gentoo-user] Weird compilation error (nasm) Alexander Kapshuk <alexander.kapshuk@×××××.com>