public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/94612] New: Failed to build simple examples with offloading.
@ 2020-04-16  5:49 chinoune.mehdi at hotmail dot com
  2020-04-16  7:03 ` [Bug libgomp/94612] " rguenth at gcc dot gnu.org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: chinoune.mehdi at hotmail dot com @ 2020-04-16  5:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94612
           Summary: Failed to build simple examples with offloading.
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chinoune.mehdi at hotmail dot com
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

$cat prod.f90
program main
  implicit none
  integer, parameter :: sp = selected_real_kind(6,37)
  integer, parameter :: n = 4096
  real(sp), allocatable :: a(:), b(:), c(:), c2(:)
  integer :: i

  allocate( a(n), b(n), c(n) )

  c = 0._sp
  call random_number(a)
  call random_number(b)

  !$omp target teams map(to: a, b) map(from: c)
  !$omp distribute parallel do
  do i = 1, n
    c(i) = a(i)*b(i)
  end do
  !$omp end target teams

  c2 = a*b

  print*, maxval( abs(c2-c) )

end program

$ gfortran-10 prod.f90 -fopenmp -foffload=nvptx-none -o test.x
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

System: Ubuntu 20.04 x86_64

$ gcc-10 -v
Using built-in specs.
COLLECT_GCC=gcc-10
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa
OFFLOAD_TARGET_DEFAULT=1
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)

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
@ 2020-04-16  7:03 ` rguenth at gcc dot gnu.org
  2020-04-16 12:55 ` jakub at gcc dot gnu.org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-04-16  7:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Huh, I remember a very similar report from the past, unable to reproduce on
SUSE packaged GCC.  Can you attach the console output when you add -v
to the compiler command?  Can you install debuginfo so we can get a backtrace
as to where the error happens?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading 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
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-04-16 12:55 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps Ubuntu has the offloading and non-offloading compiler configured
differently, one with zstd compression support and the other without?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading 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
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-16 13:02 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-04-16
     Ever confirmed|0                           |1

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
It's likely dup of PR94129.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (2 preceding siblings ...)
  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
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-16 13:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Can you please paste output of:
$ /usr/lib/gcc/x86_64-linux-gnu/10//accel/nvptx-none/mkoffload -v

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (3 preceding siblings ...)
  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
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: doko at debian dot org @ 2020-04-16 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

Matthias Klose <doko at debian dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at debian dot org

--- Comment #5 from Matthias Klose <doko at debian dot org> ---
> Perhaps Ubuntu has the offloading and non-offloading compiler configured
> differently, one with zstd compression support and the other without?

how would you even do that?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (4 preceding siblings ...)
  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
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: doko at debian dot org @ 2020-04-16 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Matthias Klose <doko at debian dot org> ---
$ /usr/lib/gcc/x86_64-linux-gnu/10/accel/nvptx-none/mkoffload -v
mkoffload: fatal error: COLLECT_GCC must be set.
compilation terminated.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (5 preceding siblings ...)
  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
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-04-16 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Matthias Klose from comment #5)
> > Perhaps Ubuntu has the offloading and non-offloading compiler configured
> > differently, one with zstd compression support and the other without?
> 
> how would you even do that?

Perhaps built separately, once with zstd-devel in the buildroots and once
without?  Dunno.
What does
x86_64-linux-gnu-accel-nvptx-none-gcc -v
print?

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (6 preceding siblings ...)
  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
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-16 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Matthias Klose from comment #6)
> $ /usr/lib/gcc/x86_64-linux-gnu/10/accel/nvptx-none/mkoffload -v
> mkoffload: fatal error: COLLECT_GCC must be set.
> compilation terminated.

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (7 preceding siblings ...)
  2020-04-16 13:13 ` marxin at gcc dot gnu.org
@ 2020-04-16 13:18 ` doko at debian dot org
  2020-04-16 13:23 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: doko at debian dot org @ 2020-04-16 13:18 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (8 preceding siblings ...)
  2020-04-16 13:18 ` doko at debian dot org
@ 2020-04-16 13:23 ` rguenth at gcc dot gnu.org
  2020-04-16 13:33 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-04-16 13:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> It's likely dup of PR94129.

Note that that one ICEs on matching compression algorithms which here
the ICE notes the compressed data stream is corrupt.

There must be sth subtle going on ...

I hope that -save-temps will save the offload images fed to the nvptx-none
lto1.
Matthias, can you attach them?  That is,

 /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

look into /tmp/ccHVgmel which should contain a (list of) object file name(s)
to pass along.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (9 preceding siblings ...)
  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
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-16 13:33 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
   Target Milestone|---                         |10.0

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (10 preceding siblings ...)
  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
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: doko at debian dot org @ 2020-04-16 13:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Matthias Klose <doko at debian dot org> ---
Created attachment 48290
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48290&action=edit
example files

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (11 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-17  8:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
Ok, I can reproduce it locally on openSUSE.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libgomp/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (12 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-17  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> ---
I've got a patch for it.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug lto/94612] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (13 preceding siblings ...)
  2020-04-17  8:36 ` marxin at gcc dot gnu.org
@ 2020-04-17  8:46 ` marxin at gcc dot gnu.org
  2020-04-17  8:47 ` [Bug lto/94612] [10 Regression] " marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-17  8:46 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew at blamsoft dot com

--- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 94129 has been marked as a duplicate of this bug. ***

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug lto/94612] [10 Regression] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (14 preceding siblings ...)
  2020-04-17  8:46 ` [Bug lto/94612] " marxin at gcc dot gnu.org
@ 2020-04-17  8:47 ` 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
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-17  8:47 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Failed to build simple      |[10 Regression] Failed to
                   |examples with offloading.   |build simple examples with
                   |                            |offloading.
           Priority|P3                          |P1

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug lto/94612] [10 Regression] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (15 preceding siblings ...)
  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
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-17  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>:

https://gcc.gnu.org/g:b835645c7a51b7e99092abe61d677aa491836f95

commit r10-7771-gb835645c7a51b7e99092abe61d677aa491836f95
Author: Martin Liska <mliska@suse.cz>
Date:   Fri Apr 17 10:57:03 2020 +0200

    Initialize file_data->lto_section_header before lto_mode_identity_table
call.

            PR lto/94612
            * lto-common.c: Initialize file_data->lto_section_header
            before lto_mode_identity_table call.  It is needed because
            it decompresses a LTO section.

^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug lto/94612] [10 Regression] Failed to build simple examples with offloading.
  2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading chinoune.mehdi at hotmail dot com
                   ` (16 preceding siblings ...)
  2020-04-17  8:57 ` cvs-commit at gcc dot gnu.org
@ 2020-04-17  8:57 ` marxin at gcc dot gnu.org
  17 siblings, 0 replies; 19+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-04-17  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-04-17  8:57 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-16  5:49 [Bug libgomp/94612] New: Failed to build simple examples with offloading 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
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

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).