All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Cannot compile with GCC 8.1
@ 2018-05-10 16:57 Dawson Dias
       [not found] ` <CAFuwKQNiqL_aM=ZTXafej92nJVq1c9uXSd+h=9E24=J8U=041g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Dawson Dias @ 2018-05-10 16:57 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Kent.Russel-5C7GfCeVMHo


[-- Attachment #1.1: Type: text/plain, Size: 706 bytes --]

Wow they're just going to defer it untill GCC 9. So the kernel will be
unbuildable using GCC 8.x.
Pity.

On Thu, May 10, 2018 at 5:25 PM, Russell, Kent <Kent.Russell-5C7GfCeVMHo@public.gmane.org> wrote:

> It’s a bug in GCC, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919
>
>
>
> Kent
>
>
>
> *From:* amd-gfx [mailto:amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org] *On Behalf
> Of *Dawson Dias
> *Sent:* Wednesday, May 09, 2018 8:51 PM
> *To:* amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> *Subject:* Cannot compile with GCC 8.1
>
>
>
> Here's a log of the output while trying to compile the kernel with GCC 8.1
>
>
>
> -Dawson Dias
>

[-- Attachment #1.2: Type: text/html, Size: 2636 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: Cannot compile with GCC 8.1
       [not found] ` <CAFuwKQNiqL_aM=ZTXafej92nJVq1c9uXSd+h=9E24=J8U=041g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-05-10 21:34   ` sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w
  2018-05-12 14:00     ` sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w
  0 siblings, 1 reply; 5+ messages in thread
From: sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w @ 2018-05-10 21:34 UTC (permalink / raw)
  To: Dawson Dias
  Cc: Kent.Russel-5C7GfCeVMHo, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Thu, May 10, 2018 at 10:27:12PM +0530, Dawson Dias wrote:
> Wow they're just going to defer it untill GCC 9. So the kernel will be
> unbuildable using GCC 8.x.
> Pity.

And recent llvm do not compile with gcc 7.3.0 because of the extreme complexity
of the c++ syntax used in the latter... I was waiting for the official release
of gcc 8.1 to see if the insane c++ syntax features used in llvm were finally
implemented in g++, or the llvm guys do remove those which do only workin clang
and not in g++.
(gcc 8.1 pre-release was not generating correct code for GNU make).

Really, an alternative "simple C" shader compiler would be more than welcome.

-- 
Sylvain
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: Cannot compile with GCC 8.1
  2018-05-10 21:34   ` sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w
@ 2018-05-12 14:00     ` sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w
  0 siblings, 0 replies; 5+ messages in thread
From: sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w @ 2018-05-12 14:00 UTC (permalink / raw)
  To: Dawson Dias
  Cc: Kent.Russel-5C7GfCeVMHo, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Thu, May 10, 2018 at 09:34:02PM +0000, sylvain.bertrand@gmail.com wrote:
> On Thu, May 10, 2018 at 10:27:12PM +0530, Dawson Dias wrote:
> > Wow they're just going to defer it untill GCC 9. So the kernel will be
> > unbuildable using GCC 8.x.
> > Pity.
> 
> And recent llvm do not compile with gcc 7.3.0 because of the extreme complexity
> of the c++ syntax used in the latter... I was waiting for the official release
> of gcc 8.1 to see if the insane c++ syntax features used in llvm were finally
> implemented in g++, or the llvm guys do remove those which do only workin clang
> and not in g++.
> (gcc 8.1 pre-release was not generating correct code for GNU make).
> 
> Really, an alternative "simple C" shader compiler would be more than welcome.

Recent llvm did workaround the 7.3.0 g++ advanced c++ bug.

-- 
Sylvain
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* RE: Cannot compile with GCC 8.1
       [not found] ` <CAFuwKQNqg4N9Op3Byp4BqBhDoOR7T8vu-Rt=Z_Z-qFPUyQ3P5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2018-05-10 11:55   ` Russell, Kent
  0 siblings, 0 replies; 5+ messages in thread
From: Russell, Kent @ 2018-05-10 11:55 UTC (permalink / raw)
  To: Dawson Dias, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 380 bytes --]

It’s a bug in GCC, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919

Kent

From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf Of Dawson Dias
Sent: Wednesday, May 09, 2018 8:51 PM
To: amd-gfx@lists.freedesktop.org
Subject: Cannot compile with GCC 8.1

Here's a log of the output while trying to compile the kernel with GCC 8.1

-Dawson Dias

[-- Attachment #1.2: Type: text/html, Size: 3248 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Cannot compile with GCC 8.1
@ 2018-05-10  0:51 Dawson Dias
       [not found] ` <CAFuwKQNqg4N9Op3Byp4BqBhDoOR7T8vu-Rt=Z_Z-qFPUyQ3P5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Dawson Dias @ 2018-05-10  0:51 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW


[-- Attachment #1.1: Type: text/plain, Size: 89 bytes --]

Here's a log of the output while trying to compile the kernel with GCC 8.1

-Dawson Dias

[-- Attachment #1.2: Type: text/html, Size: 330 bytes --]

[-- Attachment #2: kernel_8.1_gcc --]
[-- Type: application/octet-stream, Size: 6955 bytes --]

*
* Display Engine Configuration
*
AMD DC - Enable new display engine (DRM_AMD_DC) [Y/n/?] y
  AMD FBC - Enable Frame Buffer Compression (DRM_AMD_DC_FBC) [Y/n/?] y
  DCN 1.0 Raven family (DRM_AMD_DC_DCN1_0) [Y/n/?] y
  Enable kgdb break in DC (DEBUG_KERNEL_DC) [Y/n/?] y
  VEGAM support (DRM_AMD_DC_VEGAM) [N/y/?] (NEW)
#
# configuration written to .config
#
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  UPD     include/config/kernel.release
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  DESCEND  objtool
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC   /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/fixdep.o
  HOSTLD   /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/fixdep-in.o
  LINK     /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/fixdep
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/builtin-orc.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/builtin-check.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/check.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/orc_gen.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/arch/x86/decode.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/orc_dump.o
  HOSTLD  arch/x86/tools/relocs
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/exec-cmd.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/help.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/pager.o
  CC      arch/x86/purgatory/purgatory.o
In file included from ./include/asm-generic/bug.h:18,
                 from ./arch/x86/include/asm/bug.h:83,
                 from ./include/linux/bug.h:5,
                 from arch/x86/purgatory/purgatory.c:13:
./include/linux/kernel.h:6:10: fatal error: stdarg.h: No such file or directory
 #include <stdarg.h>
          ^~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:325: arch/x86/purgatory/purgatory.o] Error 1
make: *** [arch/x86/Makefile:287: archprepare] Error 2
make: *** Waiting for unfinished jobs....
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/parse-options.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/run-command.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/elf.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/special.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/sigchain.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/subcmd-config.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/objtool.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/libstring.o
  CC       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/str_error_r.o
../lib/str_error_r.c: In function ‘str_error_r’:
../lib/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
   snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
   ^~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat '/home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/.str_error_r.o.tmp': No such file or directory
make[3]: *** [Build:22: /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/str_error_r.o] Error 1
make[3]: *** Waiting for unfinished jobs....
  LD       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/arch/x86/objtool-in.o
  LD       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/libsubcmd-in.o
  AR       /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/libsubcmd.a
make[2]: *** [Makefile:46: /home/txtsd/build/yaourt-tmp-txtsd/aur-linux-ryzen-amd-staging-drm-next-git/src/linux-ryzen-amd-staging-drm-next-git/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1687: tools/objtool] Error 2

└─▶ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.1.0 (GCC)

[-- Attachment #3: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2018-05-12 14:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-10 16:57 Cannot compile with GCC 8.1 Dawson Dias
     [not found] ` <CAFuwKQNiqL_aM=ZTXafej92nJVq1c9uXSd+h=9E24=J8U=041g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-05-10 21:34   ` sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w
2018-05-12 14:00     ` sylvain.bertrand-Re5JQEeQqe8AvxtiuMwx3w
  -- strict thread matches above, loose matches on Subject: below --
2018-05-10  0:51 Dawson Dias
     [not found] ` <CAFuwKQNqg4N9Op3Byp4BqBhDoOR7T8vu-Rt=Z_Z-qFPUyQ3P5g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-05-10 11:55   ` Russell, Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.