Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package qs had non-zero exit status #38

Closed
BrianaHennessy opened this issue May 14, 2020 · 15 comments
Closed

package qs had non-zero exit status #38

BrianaHennessy opened this issue May 14, 2020 · 15 comments

Comments

@BrianaHennessy
Copy link

Hello,
I am trying to install the package "qs" using r/3.6.1 and I keep getting the error "installation of package 'qs' had non-zero exit status'. Prior to that error I see these messages:

/tmp/ccwSjoWV.s: Assembler messages:
/tmp/ccwSjoWV.s:1106: Error: no such instruction: shlx %r13,%rax,%rax' /tmp/ccwSjoWV.s:1147: Error: no such instruction: shlx %rcx,%r13,%rcx'
/tmp/ccwSjoWV.s:1170: Error: no such instruction: shlx %r12,%rcx,%r12' /tmp/ccwSjoWV.s:1185: Error: no such instruction: shlx %rbx,%rcx,%rcx'
/tmp/ccwSjoWV.s:1288: Error: no such instruction: shrx %rdx,%rax,%rdx' /tmp/ccwSjoWV.s:1544: Error: no such instruction: shlx %rsi,%rdx,%rdx'
/tmp/ccwSjoWV.s:1628: Error: no such instruction: shrx %rax,%rdx,%rdx' /tmp/ccwSjoWV.s:1689: Error: no such instruction: shlx %rsi,%rcx,%rdx'
make: *** [ZSTD/compress/huf_compress.o] Error 1
ERROR: compilation failed for package ‘qs’

the package installs correctly on another machine that uses R/4.0. Does this package only work on the updated version of R?

Thank you,
Briana

@traversc
Copy link
Collaborator

Your CPU may be too old on that computer.

What is the command you are using to install?

@BrianaHennessy
Copy link
Author

BrianaHennessy commented May 14, 2020 via email

@traversc
Copy link
Collaborator

The shrx instruction call coming from the ZSTD compression library was an instruction introduced in CPUs in 2014, but even still there is nothing in the code that calls that instruction directly.

So I suspect that there is a misconfiguration in the compiler. Unfortunately, there's no way I can reproduce the error to investigate. Have you had any trouble installing other packages?

@BrianaHennessy
Copy link
Author

BrianaHennessy commented May 14, 2020 via email

@BrianaHennessy
Copy link
Author

BrianaHennessy commented May 14, 2020 via email

@traversc
Copy link
Collaborator

The gcc version is fine, but there seems to be a mismatch between the CPU instructions gcc thinks is available and what's actually available. Because it's a cluster, it gets even more complicated (e.g., if you install on the head node CPU architecture is different than the rest of the nodes).

I'm not sure if I can properly diagnose here, so I would have to suggest using some other approach to save data, as this could potentially waste a lot of your time. Sorry :(

@ytakemon
Copy link

ytakemon commented Jun 4, 2020

Hello @traversc,

I seem to also have similar issues, but with a different set of error messages (see below). I'm sorry if this is redundant for you. Its a bit overwhelming to see all these errors, and I'm not sure where to begin. I am on an older R version 3.6, using centos6, and compiler gcc 7.2.0.

remotes::install_cran("qs", type="source", configure.args="--with-simd=AVX2")
Installing 1 packages: qs
Installing package into ‘/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/qs_0.21.2.tar.gz'
Content type 'application/x-gzip' length 1590439 bytes (1.5 MB)
==================================================
downloaded 1.5 MB

installing source package ‘qs’ ...
** package ‘qs’ successfully unpacked and MD5 sums checked
** using staged installation
checking for pkg-config... /usr/bin/pkg-config
zstd dynamic library not detected -- compiling from source
lz4 dynamic library not detected -- compiling from source
Using AVX2
-L. -lQSZSTD -lQSLZ4
-IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -mavx2
LIBZSTD = ZSTD/common/debug.o ZSTD/common/entropy_common.o ZSTD/common/error_private.o ZSTD/common/fse_decompress.o ZSTD/common/pool.o ZSTD/common/threading.o ZSTD/common/xxhash.o ZSTD/common/zstd_common.o ZSTD/compress/fse_compress.o ZSTD/compress/hist.o ZSTD/compress/huf_compress.o ZSTD/compress/zstd_compress.o ZSTD/compress/zstd_double_fast.o ZSTD/compress/zstd_fast.o ZSTD/compress/zstd_lazy.o ZSTD/compress/zstd_ldm.o ZSTD/compress/zstdmt_compress.o ZSTD/compress/zstd_opt.o ZSTD/decompress/huf_decompress.o ZSTD/decompress/zstd_ddict.o ZSTD/decompress/zstd_decompress_block.o ZSTD/decompress/zstd_decompress.o ZSTD/dictBuilder/cover.o ZSTD/dictBuilder/divsufsort.o ZSTD/dictBuilder/fastcover.o ZSTD/dictBuilder/zdict.o LIBLZ4 = LZ4/lz4.o LZ4/lz4hc.o $(SHLIB): libQSZSTD.a libQSLZ4.a libQSZSTD.a: $(LIBZSTD) $(AR) rcs libQSZSTD.a $(LIBZSTD) libQSLZ4.a: $(LIBLZ4) $(AR) rcs libQSLZ4.a $(LIBLZ4) clean: rm -f $(SHLIB) $(OBJECTS) $(LIBZSTD) libQSZSTD.a $(LIBLZ4) libQSLZ4.a
configure: creating ./config.status
config.status: creating src/Makevars
** libs
/gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/g++ -std=gnu++11 -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -mavx2 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
/gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/g++ -std=gnu++11 -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -mavx2 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c qs_functions.cpp -o qs_functions.o
/var/tmp/ccCUB2gj.s: Assembler messages:
/var/tmp/ccCUB2gj.s:1152: Error: no such instruction: vinserti128 $0x1,16(%rsi,%rax),%ymm0,%ymm0' /var/tmp/ccCUB2gj.s:1160: Error: suffix or operands invalid for vpshufd'
/var/tmp/ccCUB2gj.s:1169: Error: suffix or operands invalid for vpunpcklbw' /var/tmp/ccCUB2gj.s:1188: Error: suffix or operands invalid for vpunpcklwd'
/var/tmp/ccCUB2gj.s:1195: Error: suffix or operands invalid for vpunpckhwd' /var/tmp/ccCUB2gj.s:1240: Error: suffix or operands invalid for vpunpckldq'
/var/tmp/ccCUB2gj.s:1247: Error: suffix or operands invalid for vpunpckhdq' /var/tmp/ccCUB2gj.s:1280: Error: suffix or operands invalid for vpunpcklqdq'
/var/tmp/ccCUB2gj.s:1287: Error: suffix or operands invalid for vpunpckhqdq' /var/tmp/ccCUB2gj.s:1309: Error: no such instruction: vpermq $114,%ymm0,%ymm1'
/var/tmp/ccCUB2gj.s:1315: Error: no such instruction: vpermq $216,%ymm0,%ymm0' /var/tmp/ccCUB2gj.s:1324: Error: suffix or operands invalid for vpunpcklwd'
/var/tmp/ccCUB2gj.s:1347: Error: no such instruction: vextracti128 $0x1,%ymm0,16(%rax)' /var/tmp/ccCUB2gj.s:1626: Error: no such instruction: vinserti128 $0x1,16(%rax,%rdx),%ymm1,%ymm1'
/var/tmp/ccCUB2gj.s:1632: Error: suffix or operands invalid for vpshufd' /var/tmp/ccCUB2gj.s:1638: Error: suffix or operands invalid for vpshufd'
/var/tmp/ccCUB2gj.s:1645: Error: suffix or operands invalid for vpunpcklbw' /var/tmp/ccCUB2gj.s:1652: Error: suffix or operands invalid for vpshufd'
/var/tmp/ccCUB2gj.s:1659: Error: suffix or operands invalid for vpunpcklwd' /var/tmp/ccCUB2gj.s:1685: Error: suffix or operands invalid for vpunpckldq'
/var/tmp/ccCUB2gj.s:1692: Error: suffix or operands invalid for vpunpckhdq' /var/tmp/ccCUB2gj.s:1700: Error: suffix or operands invalid for vpunpckldq'
/var/tmp/ccCUB2gj.s:1707: Error: suffix or operands invalid for vpunpckhdq' /var/tmp/ccCUB2gj.s:1714: Error: suffix or operands invalid for vpunpcklqdq'
/var/tmp/ccCUB2gj.s:1721: Error: suffix or operands invalid for vpunpckhqdq' /var/tmp/ccCUB2gj.s:1728: Error: suffix or operands invalid for vpunpcklqdq'
/var/tmp/ccCUB2gj.s:1735: Error: suffix or operands invalid for vpunpckhqdq' /var/tmp/ccCUB2gj.s:1742: Error: no such instruction: vpermd %ymm1,%ymm2,%ymm1'
/var/tmp/ccCUB2gj.s:1743: Error: no such instruction: vpermd %ymm5,%ymm2,%ymm3' /var/tmp/ccCUB2gj.s:1745: Error: no such instruction: vpermd %ymm0,%ymm2,%ymm0'
/var/tmp/ccCUB2gj.s:1753: Error: no such instruction: vpermd %ymm4,%ymm2,%ymm1' /var/tmp/ccCUB2gj.s:1770: Error: no such instruction: vextracti128 $0x1,%ymm0,16(%rdx)'
/var/tmp/ccCUB2gj.s:1864: Error: no such instruction: vinserti128 $0x1,16(%r8),%ymm0,%ymm0' /var/tmp/ccCUB2gj.s:1882: Error: suffix or operands invalid for vpunpcklbw'
/var/tmp/ccCUB2gj.s:1889: Error: suffix or operands invalid for vpunpckhbw' /var/tmp/ccCUB2gj.s:1909: Error: suffix or operands invalid for vpunpcklwd'
/var/tmp/ccCUB2gj.s:1916: Error: suffix or operands invalid for vpunpckhwd' /var/tmp/ccCUB2gj.s:1935: Error: no such instruction: vpermq $216,(%rdx),%ymm0'
/var/tmp/ccCUB2gj.s:1953: Error: suffix or operands invalid for vpunpckldq' /var/tmp/ccCUB2gj.s:1960: Error: suffix or operands invalid for vpunpckhdq'
/var/tmp/ccCUB2gj.s:1982: Error: no such instruction: vextracti128 $0x1,%ymm0,-240(%rdi)' /var/tmp/ccCUB2gj.s:1990: Error: no such instruction: vextracti128 $0x1,%ymm0,-208(%rdi)'
/var/tmp/ccCUB2gj.s:1998: Error: no such instruction: vextracti128 $0x1,%ymm0,-176(%rdi)' /var/tmp/ccCUB2gj.s:2006: Error: no such instruction: vextracti128 $0x1,%ymm0,-144(%rdi)'
/var/tmp/ccCUB2gj.s:2014: Error: no such instruction: vextracti128 $0x1,%ymm0,-112(%rdi)' /var/tmp/ccCUB2gj.s:2022: Error: no such instruction: vextracti128 $0x1,%ymm0,-80(%rdi)'
/var/tmp/ccCUB2gj.s:2030: Error: no such instruction: vextracti128 $0x1,%ymm0,-48(%rdi)' /var/tmp/ccCUB2gj.s:2038: Error: no such instruction: vextracti128 $0x1,%ymm0,-16(%rdi)'
/var/tmp/ccCUB2gj.s:2254: Error: no such instruction: vinserti128 $0x1,16(%rdx),%ymm0,%ymm0' /var/tmp/ccCUB2gj.s:2278: Error: suffix or operands invalid for vpunpcklbw'
/var/tmp/ccCUB2gj.s:2285: Error: suffix or operands invalid for vpunpckhbw' /var/tmp/ccCUB2gj.s:2293: Error: suffix or operands invalid for vpunpcklbw'
/var/tmp/ccCUB2gj.s:2300: Error: suffix or operands invalid for vpunpckhbw' /var/tmp/ccCUB2gj.s:2307: Error: suffix or operands invalid for vpunpcklwd'
/var/tmp/ccCUB2gj.s:2313: Error: suffix or operands invalid for vpunpckhwd' /var/tmp/ccCUB2gj.s:2330: Error: suffix or operands invalid for vpunpcklwd'
/var/tmp/ccCUB2gj.s:2346: Error: suffix or operands invalid for vpunpckhwd' /var/tmp/ccCUB2gj.s:2373: Error: no such instruction: vperm2i128 $32,%ymm4,%ymm3,%ymm0'
/var/tmp/ccCUB2gj.s:2379: Error: no such instruction: vperm2i128 $32,%ymm1,%ymm5,%ymm5' /var/tmp/ccCUB2gj.s:2384: Error: no such instruction: vperm2i128 $49,%ymm4,%ymm3,%ymm3'
/var/tmp/ccCUB2gj.s:2389: Error: no such instruction: vperm2i128 $49,%ymm1,%ymm2,%ymm2' /var/tmp/ccCUB2gj.s:2409: Error: no such instruction: vextracti128 $0x1,%ymm0,16(%rsi,%rdx)'
make: *** [qs_functions.o] Error 1
ERROR: compilation failed for package ‘qs’

  • removing ‘/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/qs’
    Error: Failed to install 'qs' from CRAN:
    (converted from warning) installation of package ‘qs’ had non-zero exit status

@traversc
Copy link
Collaborator

traversc commented Jun 4, 2020

@ytakemon try it without the configure args: install.packages("qs")

@BrianaHennessy
Copy link
Author

As an update - I did eventually get everything running when I only used the most up-to-date architecture on the cluster so you were correct in my case that the CPU was too old.

@ytakemon
Copy link

ytakemon commented Jun 4, 2020

Hi @traversc ,

I did try your suggestion first, but I get similar/ if note the same set of errors. I am trying to install qs in a server with 40 cores and doesn't have a job scheduler. Essentially anyone working here would be on the "head node". Would this complicate the installation process?

install.packages("qs")
Installing package into ‘/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://ftp.osuosl.org/pub/cran/src/contrib/qs_0.21.2.tar.gz'
Content type 'application/x-gzip' length 1590439 bytes (1.5 MB)
==================================================
downloaded 1.5 MB

  • installing source package ‘qs’ ...
    ** package ‘qs’ successfully unpacked and MD5 sums checked
    ** using staged installation
    checking for pkg-config... /usr/bin/pkg-config
    zstd dynamic library not detected -- compiling from source
    lz4 dynamic library not detected -- compiling from source
    -L. -lQSZSTD -lQSLZ4
    -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4
    LIBZSTD = ZSTD/common/debug.o ZSTD/common/entropy_common.o ZSTD/common/error_private.o ZSTD/common/fse_decompress.o ZSTD/common/pool.o ZSTD/common/threading.o ZSTD/common/xxhash.o ZSTD/common/zstd_common.o ZSTD/compress/fse_compress.o ZSTD/compress/hist.o ZSTD/compress/huf_compress.o ZSTD/compress/zstd_compress.o ZSTD/compress/zstd_double_fast.o ZSTD/compress/zstd_fast.o ZSTD/compress/zstd_lazy.o ZSTD/compress/zstd_ldm.o ZSTD/compress/zstdmt_compress.o ZSTD/compress/zstd_opt.o ZSTD/decompress/huf_decompress.o ZSTD/decompress/zstd_ddict.o ZSTD/decompress/zstd_decompress_block.o ZSTD/decompress/zstd_decompress.o ZSTD/dictBuilder/cover.o ZSTD/dictBuilder/divsufsort.o ZSTD/dictBuilder/fastcover.o ZSTD/dictBuilder/zdict.o LIBLZ4 = LZ4/lz4.o LZ4/lz4hc.o $(SHLIB): libQSZSTD.a libQSLZ4.a libQSZSTD.a: $(LIBZSTD) $(AR) rcs libQSZSTD.a $(LIBZSTD) libQSLZ4.a: $(LIBLZ4) $(AR) rcs libQSLZ4.a $(LIBLZ4) clean: rm -f $(SHLIB) $(OBJECTS) $(LIBZSTD) libQSZSTD.a $(LIBLZ4) libQSLZ4.a
    configure: creating ./config.status
    config.status: creating src/Makevars
    ** libs
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/g++ -std=gnu++11 -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/g++ -std=gnu++11 -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c qs_functions.cpp -o qs_functions.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/debug.c -o ZSTD/common/debug.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/entropy_common.c -o ZSTD/common/entropy_common.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/error_private.c -o ZSTD/common/error_private.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/fse_decompress.c -o ZSTD/common/fse_decompress.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/pool.c -o ZSTD/common/pool.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/threading.c -o ZSTD/common/threading.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/xxhash.c -o ZSTD/common/xxhash.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/common/zstd_common.c -o ZSTD/common/zstd_common.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/compress/fse_compress.c -o ZSTD/compress/fse_compress.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/compress/hist.c -o ZSTD/compress/hist.o
    /gsc/software/linux-x86_64-centos6/gcc/gcc-7.2.0/bin/gcc -I"/gsc/software/linux-x86_64-centos6/R-3.6.0/lib64/R/include" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT -I. -IZSTD -IZSTD/common -IZSTD/decompress -IZSTD/compress -ILZ4 -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I"/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/RApiSerialize/include" -I/gsc/software/linux-x86_64-centos6/R-dependencies/include -fpic -g -O2 -c ZSTD/compress/huf_compress.c -o ZSTD/compress/huf_compress.o
    /var/tmp/ccyMP6ip.s: Assembler messages:
    /var/tmp/ccyMP6ip.s:1138: Error: no such instruction: shlx %r13,%rax,%rax' /var/tmp/ccyMP6ip.s:1165: Error: no such instruction: shlx %rcx,%r13,%rcx'
    /var/tmp/ccyMP6ip.s:1187: Error: no such instruction: shlx %r12,%rcx,%r12' /var/tmp/ccyMP6ip.s:1201: Error: no such instruction: shlx %rdx,%rcx,%rcx'
    /var/tmp/ccyMP6ip.s:1271: Error: no such instruction: shrx %rdx,%rax,%rsi' /var/tmp/ccyMP6ip.s:1289: Error: no such instruction: shlx %rcx,%rax,%rax'
    /var/tmp/ccyMP6ip.s:1403: Error: no such instruction: shlx %r12,%r10,%rsi' /var/tmp/ccyMP6ip.s:1429: Error: no such instruction: shlx %r10,%rsi,%rsi'
    /var/tmp/ccyMP6ip.s:1474: Error: no such instruction: `shrx %rax,%rsi,%rsi'
    make: *** [ZSTD/compress/huf_compress.o] Error 1
    ERROR: compilation failed for package ‘qs’
  • removing ‘/home/ytakemon/R/x86_64-pc-linux-gnu-library/3.6/qs’

The downloaded source packages are in
‘/var/tmp/Rtmp3Wyrp7/downloaded_packages’
Warning message:
In install.packages("qs") :
installation of package ‘qs’ had non-zero exit status

@traversc
Copy link
Collaborator

traversc commented Jun 8, 2020

@ytakemon: I'm not sure, but the compiler is generating instructions not supported by your CPU. I don't know what the solution is other than running it on a newer CPU.

@ytakemon
Copy link

ytakemon commented Jun 9, 2020

@traersc -Do you have an idea what the minimum CPU requirements might be?

Using lscpu this is what I see on the machine I am working on:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 40
On-line CPU(s) list: 0-39
Thread(s) per core: 2
Core(s) per socket: 10
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Stepping: 2
CPU MHz: 2600.021
BogoMIPS: 5199.27
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38
NUMA node1 CPU(s): 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39

@traversc
Copy link
Collaborator

traversc commented Jun 9, 2020

A cpu from around ~2015 or later should have no problem(Yours is from 2014). However, as I mentioned to Briana, I believe this to be a server configuration issue.

See below for similar issues in other places where you might find a solution:

fstpackage/fst#167
intel/hyperscan#53
http://www.nwchem-sw.org/index.php/Special:AWCforum/st/id2207/Intel_E5-2640v3_Haswell%3A_No_such....html

@ytakemon
Copy link

ytakemon commented Jun 9, 2020

@traversc I see - I'll look into your suggestions. Thanks for your help!

@oTheAnalyst
Copy link

* installing *source* packagestringfish...
** packagestringfishsuccessfully unpacked and MD5 sums checked
** using staged installation
checking for pkg-config... /usr/bin/pkg-config
stringfish configure script
PCRE2 10.43 library detected -- skipping PCRE2 compilation
-lpcre2-8


configure: creating ./config.status
config.status: creating src/Makevars
** libs
using C++ compiler:g++ (GCC) 14.1.1 20240507g++ -std=gnu++17 -I"/usr/include/R/" -DNDEBUG -DRCPP_USE_UNWIND_PROTECT 
-DRCPP_NO_RTTI -DPCRE2_CODE_UNIT_WIDTH=8 -DHAVE_CONFIG_H  -I.   -I'/home
/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include' -I'/home/pret
ender/R/x86_64-pc-linux-gnu-library/4.3/RcppParallel/include' -I/usr/loc
al/include    -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fe
xceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-securi
ty         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSER
TIONS -g -ffile-prefix-map=/build/r/src=/usr/src/debug/r -flto=auto -ffa
t-lto-objects   -c RcppExports.cpp -o RcppExports.o
In file included from /home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp
/routines.h:26,
                 from /home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp
Common.h:128,
                 from /home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp
.h:27,
                 from RcppExports.cpp:4:
/home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp/iostream/Rstreambuf.h
: In member functionstd::streamsize Rcpp::Rstreambuf<OUTPUT>::xsputn(const char*, std::
streamsize) [with bool OUTPUT = true; std::streamsize = long int]’:
/home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp/iostream/Rstreambuf.h
:53:20: warning: field precision specifier.*expects argument of typeint’, but argum
ent 2 has typestd::streamsize’ {akalong int’} [-Wformat=]
   53 |         Rprintf("%.*s", num, s);
      |                  ~~^~   ~~~
      |                    |    |
      |                    int  std::streamsize {aka long int}
/home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp/iostream/Rstreambuf.h
: In member functionstd::streamsize Rcpp::Rstreambuf<OUTPUT>::xsputn(const char*, std::
streamsize) [with bool OUTPUT = false; std::streamsize = long int]’:
/home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp/iostream/Rstreambuf.h
:57:21: warning: field precision specifier.*expects argument of typeint’, but argum
ent 2 has typestd::streamsize’ {akalong int’} [-Wformat=]
   57 |         REprintf("%.*s", num, s);
      |                   ~~^~   ~~~
      |                     |    |
      |                     int  std::streamsize {aka long int}
In file included from /home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp
Common.h:181:
/home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp/print.h: In functionvoid Rcpp::warningcall(SEXP, const std::string&)’:
/home/pretender/R/x86_64-pc-linux-gnu-library/4.3/Rcpp/include/Rcpp/print.h:30:19: error:
 format not a string literal and no format arguments [-Werror=format-security]
   30 |     Rf_warningcall(call, s.c_str());
      |     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
make: *** [/usr/lib64/R/etc/Makeconf:204: RcppExports.o] Error 1
ERROR: compilation failed for packagestringfish* removing/home/pretender/R/x86_64-pc-linux-gnu-library/4.4/stringfish’
[1] ".Rprofile loaded successfully"
ERROR: dependencystringfishis not available for packageqs* removing/home/pretender/R/x86_64-pc-linux-gnu-library/4.4/qsThe downloaded source packages are in/tmp/RtmpvFo91V/downloaded_packagesWarning messages:
1: In i.p(...) :
  installation of packagestringfishhad non-zero exit status
2: In i.p(...) : installation of packageqshad non-zero exit status
> 

I seem to be having the same issue as well, I have a AMD Ryzen 7 5700U so I'm pretty sure its not a cpu issue. Any idea what this issue could be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants