From: tuxic@posteo.de
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Weird compilation error (nasm)
Date: Tue, 13 Nov 2018 18:58:28 +0100 [thread overview]
Message-ID: <20181113175828.lmzdsmdvfiquov5c@solfire> (raw)
In-Reply-To: <CAJ1xhMV3HC9HH2BkC3p78=3qpfPffGcGwVER6=sopHEVh4w4dA@mail.gmail.com>
On 11/13 07:52, Alexander Kapshuk wrote:
> On Tue, Nov 13, 2018 at 7:10 PM <tuxic@posteo.de> wrote:
> >
> > Hi,
> >
> > I got a weird looking error while upgrading/recompiling nasm:
> > 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
> > 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
> > -- The C compiler identification is GNU 8.2.0
> > -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
> > -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
> > -- Detecting C compiler ABI info
> > -- Detecting C compiler ABI info - done
> > -- Detecting C compile features
> > -- Detecting C compile features - done
> > -- CMAKE_BUILD_TYPE = Gentoo
> > -- VERSION = 2.0.1, BUILD = 20181113
> > -- 64-bit build (x86_64)
> > -- CMAKE_INSTALL_PREFIX = /usr
> > -- CMAKE_INSTALL_BINDIR = bin (/usr/bin)
> > -- CMAKE_INSTALL_DATAROOTDIR = share (/usr/share)
> > -- CMAKE_INSTALL_DOCDIR = /usr/share/doc/libjpeg-turbo-2.0.1
> > -- CMAKE_INSTALL_INCLUDEDIR = include (/usr/include)
> > -- CMAKE_INSTALL_LIBDIR = lib64 (/usr/lib64)
> > -- CMAKE_INSTALL_MANDIR = /usr/share/man
> > -- Shared libraries enabled (ENABLE_SHARED = 1)
> > -- Static libraries disabled (ENABLE_STATIC = 0)
> > -- 12-bit JPEG support disabled (WITH_12BIT = 0)
> > -- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
> > -- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
> > -- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
> > -- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
> > -- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
> > -- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
> > -- libjpeg API shared library version = 62.3.0
> > -- Compiler flags = -march=native -O -pipe
> > -- Linker flags = -Wl,-O1 -Wl,--as-needed
> > -- Looking for sys/types.h
> > -- Looking for sys/types.h - found
> > -- Looking for stdint.h
> > -- Looking for stdint.h - found
> > -- Looking for stddef.h
> > -- Looking for stddef.h - found
> > -- Check size of size_t
> > -- Check size of size_t - done
> > -- Check size of unsigned long
> > -- Check size of unsigned long - done
> > -- Performing Test HAVE_BUILTIN_CTZL
> > -- Performing Test HAVE_BUILTIN_CTZL - Success
> > -- Looking for include file locale.h
> > -- Looking for include file locale.h - found
> > -- Looking for include file stdlib.h
> > -- Looking for include file stdlib.h - found
> > -- Looking for include file sys/types.h
> > -- Looking for include file sys/types.h - found
> > -- Looking for memset
> > -- Looking for memset - found
> > -- Looking for memcpy
> > -- Looking for memcpy - found
> > -- Check size of unsigned char
> > -- Check size of unsigned char - done
> > -- Check size of unsigned short
> > -- Check size of unsigned short - done
> > -- Performing Test INCOMPLETE_TYPES
> > -- Performing Test INCOMPLETE_TYPES - Success
> > -- Compiler supports pointers to undefined structures.
> > -- Performing Test RIGHT_SHIFT_IS_UNSIGNED
> > -- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed
> > -- Performing Test __CHAR_UNSIGNED__
> > -- Performing Test __CHAR_UNSIGNED__ - Failed
> > -- Performing Test INLINE_WORKS
> > -- Performing Test INLINE_WORKS - Success
> > -- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
> > -- Performing Test HAVE_VERSION_SCRIPT
> > -- Performing Test HAVE_VERSION_SCRIPT - Success
> > -- Linker supports GNU-style version scripts
> > -- CMAKE_EXECUTABLE_SUFFIX =
> > * ACCESS DENIED: fopen_wr: /?
> > -- The ASM_NASM compiler identification is NASM
> > -- Found assembler: /usr/bin/nasm
> > -- CMAKE_ASM_NASM_COMPILER = /usr/bin/nasm
> > -- CMAKE_ASM_NASM_OBJECT_FORMAT = elf64
> > -- CMAKE_ASM_NASM_FLAGS = -DELF -D__x86_64__ -DPIC
> > -- SIMD extensions: x86_64 (WITH_SIMD = 1)
> > -- FLOATTEST = sse
> > -- RPM architecture = x86_64, DEB architecture = amd64
> > -- <<< Gentoo configuration >>>
> > Build type Gentoo
> > Install path /usr
> > Compiler flags:
> > C -march=native -O -pipe
> > C++
> > Linker flags:
> > Executable -Wl,-O1 -Wl,--as-needed
> > Module -Wl,-O1 -Wl,--as-needed
> > Shared -Wl,-O1 -Wl,--as-needed
> >
> > -- Configuring done
> > -- Generating done
> > -- 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
> > >>> Source configured.
> > * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
> > * LOG FILE: "/var/log/sandbox/sandbox-16492.log"
> > *
> > VERSION 1.0
> > FORMAT: F - Function called
> > FORMAT: S - Access Status
> > FORMAT: P - Path as passed to function
> > FORMAT: A - Absolute Path (not canonical)
> > FORMAT: R - Canonical Path
> > FORMAT: C - Command Line
> >
> > F: fopen_wr
> > S: deny
> > P: /?
> > A: /?
> > R: /?
> > C: /usr/bin/nasm /?
> > * --------------------------------------------------------------------------------
> > !!! When you file a bug report, please include the following information:
> > GENTOO_VM= CLASSPATH="" JAVA_HOME=""
> > JAVACFLAGS="" COMPILER=""
> > and of course, the output of emerge --info =libjpeg-turbo-2.0.1
> > *
> > * The following package has failed to build, install, or execute postinst:
> > *
> > * (media-libs/libjpeg-turbo-2.0.1:0/0::gentoo, ebuild scheduled for merge), Log file:
> > * '/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log'
> >
> >
> > If wanted I will post the build.log etc...
> >
> > I never had an error looking like this one...
> >
> > Any fox for that or am I the onlu one...?
> >
> > Cheers!
> > Meino
> >
> >
> >
> >
>
> The failed build output enclosed is actually that of
> media-libs/libjpeg-turbo-2.0.1, not nasm.
> Nasm is listed as a dependency for this library. See
> libjpeg-turbo-2.0.1.ebuild for ASM_DEPEND.
>
> As an aside, libjpeg-turbo-2.0.1 has not been stabilised yet. Are you
> on an unstable system?
>
> As for the actual build error, the contents of
> /var/log/sandbox/sandbox-16492.log and
> /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log would
> be in order.
>
Hi,
yes, I am on an unstable system :)
Here are the logs:
### /var/log/sandbox/sandbox-16492.log and
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
F: fopen_wr
S: deny
P: /?
A: /?
R: /?
C: /usr/bin/nasm /?
### /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log would
* Package: media-libs/libjpeg-turbo-2.0.1
* Repository: gentoo
* Maintainer: anarchy@gentoo.org graphics@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> cfg-update-1.8.2-r1: Creating checksum index...
>>> Unpacking source...
>>> Unpacking libjpeg-turbo-2.0.1.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
>>> Unpacking libjpeg8_8d-2.debian.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
>>> Source unpacked in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
>>> Preparing source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
* abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64"
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
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
-- The C compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE = Gentoo
-- VERSION = 2.0.1, BUILD = 20181113
-- 64-bit build (x86_64)
-- CMAKE_INSTALL_PREFIX = /usr
-- CMAKE_INSTALL_BINDIR = bin (/usr/bin)
-- CMAKE_INSTALL_DATAROOTDIR = share (/usr/share)
-- CMAKE_INSTALL_DOCDIR = /usr/share/doc/libjpeg-turbo-2.0.1
-- CMAKE_INSTALL_INCLUDEDIR = include (/usr/include)
-- CMAKE_INSTALL_LIBDIR = lib64 (/usr/lib64)
-- CMAKE_INSTALL_MANDIR = /usr/share/man
-- Shared libraries enabled (ENABLE_SHARED = 1)
-- Static libraries disabled (ENABLE_STATIC = 0)
-- 12-bit JPEG support disabled (WITH_12BIT = 0)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.3.0
-- Compiler flags = -march=native -O -pipe
-- Linker flags = -Wl,-O1 -Wl,--as-needed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
solfire:/home/mccramer>sudo cat /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/temp/build.log
* Package: media-libs/libjpeg-turbo-2.0.1
* Repository: gentoo
* Maintainer: anarchy@gentoo.org graphics@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> cfg-update-1.8.2-r1: Creating checksum index...
>>> Unpacking source...
>>> Unpacking libjpeg-turbo-2.0.1.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
>>> Unpacking libjpeg8_8d-2.debian.tar.gz to /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
>>> Source unpacked in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work
>>> Preparing source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1 ...
* abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Working in BUILD_DIR: "/var/tmp/portage/media-libs/libjpeg-turbo-2.0.1/work/libjpeg-turbo-2.0.1-abi_x86_64.amd64"
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
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
-- The C compiler identification is GNU 8.2.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE = Gentoo
-- VERSION = 2.0.1, BUILD = 20181113
-- 64-bit build (x86_64)
-- CMAKE_INSTALL_PREFIX = /usr
-- CMAKE_INSTALL_BINDIR = bin (/usr/bin)
-- CMAKE_INSTALL_DATAROOTDIR = share (/usr/share)
-- CMAKE_INSTALL_DOCDIR = /usr/share/doc/libjpeg-turbo-2.0.1
-- CMAKE_INSTALL_INCLUDEDIR = include (/usr/include)
-- CMAKE_INSTALL_LIBDIR = lib64 (/usr/lib64)
-- CMAKE_INSTALL_MANDIR = /usr/share/man
-- Shared libraries enabled (ENABLE_SHARED = 1)
-- Static libraries disabled (ENABLE_STATIC = 0)
-- 12-bit JPEG support disabled (WITH_12BIT = 0)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- In-memory source/destination managers enabled (WITH_MEM_SRCDST = 1)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.3.0
-- Compiler flags = -march=native -O -pipe
-- Linker flags = -Wl,-O1 -Wl,--as-needed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for memset
-- Looking for memset - found
-- Looking for memcpy
-- Looking for memcpy - found
-- Check size of unsigned char
-- Check size of unsigned char - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Performing Test INCOMPLETE_TYPES
-- Performing Test INCOMPLETE_TYPES - Success
-- Compiler supports pointers to undefined structures.
-- Performing Test RIGHT_SHIFT_IS_UNSIGNED
-- Performing Test RIGHT_SHIFT_IS_UNSIGNED - Failed
-- Performing Test __CHAR_UNSIGNED__
-- Performing Test __CHAR_UNSIGNED__ - Failed
-- Performing Test INLINE_WORKS
-- Performing Test INLINE_WORKS - Success
-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
-- Performing Test HAVE_VERSION_SCRIPT
-- Performing Test HAVE_VERSION_SCRIPT - Success
-- Linker supports GNU-style version scripts
-- CMAKE_EXECUTABLE_SUFFIX =
* ACCESS DENIED: fopen_wr: /?
-- The ASM_NASM compiler identification is NASM
-- Found assembler: /usr/bin/nasm
-- CMAKE_ASM_NASM_COMPILER = /usr/bin/nasm
-- CMAKE_ASM_NASM_OBJECT_FORMAT = elf64
-- CMAKE_ASM_NASM_FLAGS = -DELF -D__x86_64__ -DPIC
-- SIMD extensions: x86_64 (WITH_SIMD = 1)
-- FLOATTEST = sse
-- RPM architecture = x86_64, DEB architecture = amd64
-- <<< Gentoo configuration >>>
Build type Gentoo
Install path /usr
Compiler flags:
C -march=native -O -pipe
C++
Linker flags:
Executable -Wl,-O1 -Wl,--as-needed
Module -Wl,-O1 -Wl,--as-needed
Shared -Wl,-O1 -Wl,--as-needed
-- Configuring done
-- Generating done
-- 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
>>> Source configured.
* --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
* LOG FILE: "/var/log/sandbox/sandbox-16492.log"
*
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
F: fopen_wr
S: deny
P: /?
A: /?
R: /?
C: /usr/bin/nasm /?
* --------------------------------------------------------------------------------
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =libjpeg-turbo-2.0.1
Cheers!
Meino
next prev parent reply other threads:[~2018-11-13 17:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-13 17:11 [gentoo-user] Weird compilation error (nasm) tuxic
2018-11-13 17:52 ` Alexander Kapshuk
2018-11-13 17:58 ` tuxic [this message]
2018-11-13 18:12 ` Alexander Kapshuk
2018-11-13 18:11 ` Jack
2018-11-13 20:35 ` David Haller
2018-11-14 19:22 ` tuxic
2018-11-14 22:05 ` Adam Carter
2018-11-14 22:21 ` Sergei Trofimovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181113175828.lmzdsmdvfiquov5c@solfire \
--to=tuxic@posteo.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox