public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "doko at debian dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgomp/94612] Failed to build simple examples with offloading.
Date: Thu, 16 Apr 2020 13:18:58 +0000	[thread overview]
Message-ID: <bug-94612-4-j9izTZzneG@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94612-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94612

--- Comment #9 from Matthias Klose <doko at debian dot org> ---
Both compilers have zstd support.

$ gfortran-10 -v prod.f90 -fopenmp -foffload=nvptx-none -o test.x
Driving: gfortran-10 -v prod.f90 -fopenmp -foffload=nvptx-none -o test.x -l
gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran-10
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
10-20200411-0ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-10
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin
--enable-default-pie --with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none,amdgcn-amdhsa,hsa --without-cuda-driver
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200411 (experimental) [master revision
bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566] (Ubuntu
10-20200411-0ubuntu1) 
COLLECT_GCC_OPTIONS='-v' '-fopenmp' '-foffload=nvptx-none' '-o' 'test.x'
'-shared-libgcc' '-mtune=generic' '-march=x86-64' '-pthread'
 /usr/lib/gcc/x86_64-linux-gnu/10/f951 prod.f90 -quiet -dumpbase prod.f90
-mtune=generic -march=x86-64 -auxbase prod -version -fopenmp
-foffload=nvptx-none -fintrinsic-modules-path
/usr/lib/gcc/x86_64-linux-gnu/10/finclude -o /tmp/ccka3MeN.s
GNU Fortran (Ubuntu 10-20200411-0ubuntu1) version 10.0.1 20200411
(experimental) [master revision
bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566]
(x86_64-linux-gnu)
        compiled by GNU C version 10.0.1 20200411 (experimental) [master
revision bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566], GMP
version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version
isl-0.22.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (Ubuntu 10-20200411-0ubuntu1) version 10.0.1 20200411
(experimental) [master revision
bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566]
(x86_64-linux-gnu)
        compiled by GNU C version 10.0.1 20200411 (experimental) [master
revision bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566], GMP
version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version
isl-0.22.1-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-v' '-fopenmp' '-foffload=nvptx-none' '-o' 'test.x'
'-shared-libgcc' '-mtune=generic' '-march=x86-64' '-pthread'
 as -v --64 -o /tmp/ccwItcGR.o /tmp/ccka3MeN.s
GNU assembler version 2.34 (x86_64-linux-gnu) using BFD version (GNU Binutils
for Ubuntu) 2.34
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/10/libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-v' '-fopenmp' '-foffload=nvptx-none' '-o' 'test.x'
'-shared-libgcc' '-mtune=generic' '-march=x86-64' '-pthread'
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/10/libgomp.spec
COLLECT_GCC_OPTIONS='-v' '-fopenmp' '-foffload=nvptx-none' '-o' 'test.x'
'-shared-libgcc' '-mtune=generic' '-march=x86-64' '-pthread'
 /usr/lib/gcc/x86_64-linux-gnu/10/collect2 -plugin
/usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so
-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccjECdaN.res -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lquadmath
-plugin-opt=-pass-through=-lm -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lpthread
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64
--hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie
-z now -z relro -o test.x
/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o
/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o
/usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o
/usr/lib/gcc/x86_64-linux-gnu/10/crtoffloadbegin.o
-L/usr/lib/gcc/x86_64-linux-gnu/10
-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu
-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib -L/lib/x86_64-linux-gnu
-L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib
-L/usr/lib/gcc/x86_64-linux-gnu/10/../../.. /tmp/ccwItcGR.o -lgfortran -lm
-lgomp -lgcc_s -lgcc -lquadmath -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc
/usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o
/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o
/usr/lib/gcc/x86_64-linux-gnu/10/crtoffloadend.o
/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper -fresolution=/tmp/ccjECdaN.res
-flinker-output=pie -foffload-objects=/tmp/ccm13OW9.ofldlist 
/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper -fresolution=/tmp/ccjECdaN.res
-flinker-output=pie -foffload-objects=/tmp/ccm13OW9.ofldlist 
/usr/lib/gcc/x86_64-linux-gnu/10//accel/nvptx-none/mkoffload @/tmp/ccoiPcte
x86_64-linux-gnu-accel-nvptx-none-gcc-10 @/tmp/ccLLrv6f
Using built-in specs.
COLLECT_GCC=x86_64-linux-gnu-accel-nvptx-none-gcc-10
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/accel/nvptx-none/lto-wrapper
Target: nvptx-none
Configured with: ../src-nvptx/configure --prefix=/usr --libexecdir=/usr/lib
--with-gcc-major-version-only --disable-bootstrap --disable-sjlj-exceptions
--enable-newlib-io-long-long --target=nvptx-none
--enable-as-accelerator-for=x86_64-linux-gnu
--enable-languages=c,c++,fortran,lto --enable-checking=release
--with-system-zlib --without-isl --program-prefix=nvptx-none-
--program-suffix=-10
Thread model: single
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200411 (experimental) [master revision
bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566] (GCC) 
COLLECT_GCC_OPTIONS='-v' '-m64' '-mgomp' '-v' '-fno-openacc' '-fPIC'
'-foffload-abi=lp64' '-fopenmp' '-o' '/tmp/ccwyoP0f.mkoffload'
 /usr/lib/gcc/x86_64-linux-gnu/10/accel/nvptx-none/lto1 -quiet -dumpbase
ccwItcGR.o -m64 -mgomp -auxbase ccwItcGR -version -fno-openacc -fPIC
-foffload-abi=lp64 -fopenmp @/tmp/ccHVgmel -o /tmp/ccdKIoRm.s
GNU GIMPLE (GCC) version 10.0.1 20200411 (experimental) [master revision
bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566] (nvptx-none)
        compiled by GNU C version 10.0.1 20200411 (experimental) [master
revision bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566], GMP
version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 10.0.1 20200411 (experimental) [master revision
bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566] (nvptx-none)
        compiled by GNU C version 10.0.1 20200411 (experimental) [master
revision bb87d5cc77d:75961caccb7:f883c46b4877f637e0fa5025b4d6b5c9040ec566], GMP
version 6.2.0, MPFR version 4.0.2, MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
lto1: internal compiler error: compressed stream: data error
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
mkoffload: fatal error: x86_64-linux-gnu-accel-nvptx-none-gcc-10 returned 1
exit status
compilation terminated.
lto-wrapper: fatal error:
/usr/lib/gcc/x86_64-linux-gnu/10//accel/nvptx-none/mkoffload returned 1 exit
status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status


$ ldd /usr/lib/gcc/x86_64-linux-gnu/10/accel/nvptx-none/lto1 |grep zstd
        libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1
(0x00007effdab59000)

$ ldd /usr/lib/gcc/x86_64-linux-gnu/10/accel/nvptx-none/mkoffload | grep zstd

  parent reply	other threads:[~2020-04-16 13:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16  5:49 [Bug libgomp/94612] New: " chinoune.mehdi at hotmail dot com
2020-04-16  7:03 ` [Bug libgomp/94612] " rguenth at gcc dot gnu.org
2020-04-16 12:55 ` jakub at gcc dot gnu.org
2020-04-16 13:02 ` marxin at gcc dot gnu.org
2020-04-16 13:03 ` marxin at gcc dot gnu.org
2020-04-16 13:06 ` doko at debian dot org
2020-04-16 13:08 ` doko at debian dot org
2020-04-16 13:13 ` jakub at gcc dot gnu.org
2020-04-16 13:13 ` marxin at gcc dot gnu.org
2020-04-16 13:18 ` doko at debian dot org [this message]
2020-04-16 13:23 ` rguenth at gcc dot gnu.org
2020-04-16 13:33 ` marxin at gcc dot gnu.org
2020-04-16 13:40 ` doko at debian dot org
2020-04-17  8:00 ` marxin at gcc dot gnu.org
2020-04-17  8:36 ` marxin at gcc dot gnu.org
2020-04-17  8:46 ` [Bug lto/94612] " marxin at gcc dot gnu.org
2020-04-17  8:47 ` [Bug lto/94612] [10 Regression] " marxin at gcc dot gnu.org
2020-04-17  8:57 ` cvs-commit at gcc dot gnu.org
2020-04-17  8:57 ` marxin at gcc dot gnu.org

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=bug-94612-4-j9izTZzneG@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).