Re: [gentoo-user] Weird compilation error (nasm)

2018-11-14 Thread Sergei Trofimovich
On Tue, 13 Nov 2018 18:11:38 +0100
tu...@posteo.de wrote:

> Hi,
> 
> I got a weird looking error while upgrading/recompiling nasm:
...
> F: fopen_wr
> S: deny
> P: /?
> A: /?
> R: /?
> C: /usr/bin/nasm /? 

This is likely a nasm bug:
https://bugs.gentoo.org/670944
https://bugzilla.nasm.us/show_bug.cgi?id=3392529

nasm-2.14 was masked to prevent further failures:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d09ad3d85d31fb36deec08d16e1e1424a75f0a52

-- 

  Sergei



Re: [gentoo-user] Weird compilation error (nasm)

2018-11-14 Thread Adam Carter
On Thu, Nov 15, 2018 at 6:20 AM  wrote:

> Hi,
>
> its gone this evening while updateing...


Yeah the nasm update was backed out

Fri May 11 15:25:38 2018 >>> dev-lang/nasm-2.13.03-r1
Mon Nov 12 12:27:25 2018 >>> dev-lang/nasm-2.14
Wed Nov 14 16:31:50 2018 >>> dev-lang/nasm-2.13.03-r1


Re: [gentoo-user] Weird compilation error (nasm)

2018-11-14 Thread tuxic
Hi,

its gone this evening while updateing...

Thanks a lot to all for the help!

Cheers
Meino




On 11/13 09:35, David Haller wrote:
> Hello,
> 
> On Tue, 13 Nov 2018, tu...@posteo.de wrote:
> >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
> > * ACCESS DENIED:  fopen_wr: /?
> >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
> >
>  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 /? 
> > * 
> > 
> 
> The problem is cmake's way to figure out what nasm it has got:
> 
>  /usr/share/cmake/Modules/CMakeDetermineASMCompiler.cmake:79 
>   list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS MSVC )
>   set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_MSVC "/?")
>   set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft
> 
> 
> Workaround1:
> 
> 
> --- libjpeg-turbo-2.0.1.ebuild~ 2018-11-13 20:45:58.0 +0100
> +++ libjpeg-turbo-2.0.1.ebuild  2018-11-13 20:44:02.0 +0100
> @@ -52,6 +52,7 @@
> -DENABLE_STATIC="$(usex static-libs)"
> -DWITH_JAVA="$(multilib_native_usex java)"
> -DWITH_MEM_SRCDST=ON
> +   -DCMAKE_ASM_NASM_COMPILER_ID=GNU
> )
> [[ ${ABI} == "x32" ]] && mycmakeargs+=( -DREQUIRE_SIMD=OFF ) #420239
> cmake-utils_src_configure
> 
> 
> Workaround2: if you have dev-lang/yasm installed, use:
> 
> ASM_NASM=/usr/bin/yasm [ebuild|emerge] ...
> 
> Workaround3: delete those MSVC lines from
> /usr/share/cmake/Modules/CMakeDetermineASMCompiler.cmake
> 
> Workaround4: patch cmake-utils.eclass to add 
> -DCMAKE_ASM_NASM_COMPILER_ID=GNU to cmakeargs in
> cmake-utils_src_configure.
> 
> HTH,
> -dnh, I'd prefer solution 3 ;)
> 
> -- 
> my other signature is more intellectual
> 



Re: [gentoo-user] Weird compilation error (nasm)

2018-11-13 Thread David Haller
Hello,

On Tue, 13 Nov 2018, tu...@posteo.de wrote:
>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
> * ACCESS DENIED:  fopen_wr: /?
>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
>
 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 /? 
> * 
> 

The problem is cmake's way to figure out what nasm it has got:

 /usr/share/cmake/Modules/CMakeDetermineASMCompiler.cmake:79 
  list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS MSVC )
  set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_MSVC "/?")
  set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft


Workaround1:


--- libjpeg-turbo-2.0.1.ebuild~ 2018-11-13 20:45:58.0 +0100
+++ libjpeg-turbo-2.0.1.ebuild  2018-11-13 20:44:02.0 +0100
@@ -52,6 +52,7 @@
-DENABLE_STATIC="$(usex static-libs)"
-DWITH_JAVA="$(multilib_native_usex java)"
-DWITH_MEM_SRCDST=ON
+   -DCMAKE_ASM_NASM_COMPILER_ID=GNU
)
[[ ${ABI} == "x32" ]] && mycmakeargs+=( -DREQUIRE_SIMD=OFF ) #420239
cmake-utils_src_configure


Workaround2: if you have dev-lang/yasm installed, use:

ASM_NASM=/usr/bin/yasm [ebuild|emerge] ...

Workaround3: delete those MSVC lines from
/usr/share/cmake/Modules/CMakeDetermineASMCompiler.cmake

Workaround4: patch cmake-utils.eclass to add 
-DCMAKE_ASM_NASM_COMPILER_ID=GNU to cmakeargs in
cmake-utils_src_configure.

HTH,
-dnh, I'd prefer solution 3 ;)

-- 
my other signature is more intellectual



Re: [gentoo-user] Weird compilation error (nasm)

2018-11-13 Thread Alexander Kapshuk
On Tue, Nov 13, 2018 at 7:57 PM  wrote:
>
> On 11/13 07:52, Alexander Kapshuk wrote:
> > On Tue, Nov 13, 2018 at 7:10 PM  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 

Re: [gentoo-user] Weird compilation error (nasm)

2018-11-13 Thread Jack

On 2018.11.13 12:11, tu...@posteo.de wrote:

Hi,

I got a weird looking error while upgrading/recompiling nasm:

[snip]

-- 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
How did you become root to do this emerge?  If you just did "su" you  
need to do "su -".  Most cases I've seen of this type of sandbox  
violation are because your Environment has not been sanitized.  There  
is something in it that leads emerge to try to do something in a place  
prohibited by the sandbox.


I believe if you check for the ebuild status, it will be marked as  
having completed configuration, so you could just continue with "ebuild  
/path/to/ebuild/file qmerge" to complete the process.


Jack


Re: [gentoo-user] Weird compilation error (nasm)

2018-11-13 Thread tuxic
On 11/13 07:52, Alexander Kapshuk wrote:
> On Tue, Nov 13, 2018 at 7:10 PM  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.
> >  * 

Re: [gentoo-user] Weird compilation error (nasm)

2018-11-13 Thread Alexander Kapshuk
On Tue, Nov 13, 2018 at 7:10 PM  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 - 

[gentoo-user] Weird compilation error (nasm)

2018-11-13 Thread tuxic
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,