You are not logged in.

#1 2018-05-28 04:59:36

pr0dukter
Member
Registered: 2017-08-24
Posts: 54

[ SOLVED ] unable to build linux-staging-drm-next-git

unable to build via pakepkg, trizen (usually works 100x better than yaourt if yaourt fials), or manual make


rizen-pr0/linux-amd-staging-drm-next-git/src/linux-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 '/tmp/trizen-pr0/linux-amd-staging-drm-next-git/src/linux-amd-staging-drm-next-git/tools/objtool/.str_error_r.o.tmp': No such file or directory
make[3]: *** [Build:22: /tmp/trizen-pr0/linux-amd-staging-drm-next-git/src/linux-amd-staging-drm-next-git/tools/objtool/str_error_r.o] Error 1
make[3]: *** Waiting for unfinished jobs....
  CC      arch/x86/purgatory/purgatory.o
  AS      arch/x86/purgatory/stack.o
  AS      arch/x86/purgatory/setup-x86_64.o
  CC      arch/x86/purgatory/sha256.o
  AS      arch/x86/purgatory/entry64.o
  CC      arch/x86/purgatory/string.o
make[2]: *** [Makefile:46: /tmp/trizen-pr0/linux-amd-staging-drm-next-git/src/linux-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
make: *** Waiting for unfinished jobs....
  LD      arch/x86/purgatory/purgatory.ro
  BIN2C   arch/x86/purgatory/kexec-purgatory.c
==> ERROR: A failure occurred in prepare().
    Aborting...
:: Unable to build linux-amd-staging-drm-next-git - makepkg exited with code: 2

a very similiar error on linux-amd-staging-git,  even went with default makepkg.conf

Last edited by pr0dukter (2018-05-28 20:26:06)

Offline

#2 2018-05-28 05:18:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [ SOLVED ] unable to build linux-staging-drm-next-git

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-05-28 12:44:59

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [ SOLVED ] unable to build linux-staging-drm-next-git

4.16-rc7 which amd-staging-drm-next is based off is incompatible with gcc8
https://git.kernel.org/pub/scm/linux/ke … 5846f5afb9

Offline

#4 2018-05-28 20:25:30

pr0dukter
Member
Registered: 2017-08-24
Posts: 54

Re: [ SOLVED ] unable to build linux-staging-drm-next-git

thank you so much for taking the time to respond to my question.  its compiling now with earlier gcc.  seriously thank you for your help.  had to split  pkgbuild in two essentially not smooth enough to make it all in one shot but its gonna work just fine now big_smile

Last edited by pr0dukter (2018-05-28 20:27:38)

Offline

#5 2018-05-28 21:48:09

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: [ SOLVED ] unable to build linux-staging-drm-next-git

As alternative approaches you could apply the commit as a patch in the prepare function or use makepkg -oC then manually add mainline as a git remote and then cherry-pick the commit then use makepkg -e.

Offline

#6 2018-06-13 23:14:12

pr0dukter
Member
Registered: 2017-08-24
Posts: 54

Re: [ SOLVED ] unable to build linux-staging-drm-next-git

the amd patch from staging-drm-next that does the find_first_bit and find_next_amd_bit has made all the difference on the kernel errors starting with ? posted previously in my dmesg, i get no errors now, all displays run at the right clocks etc, so yeah thanks for the makepkg syntax loqs i was unaware of that have been editing manually

Offline

Board footer

Powered by FluxBB