You are not logged in.

#1 2016-05-20 10:12:12

Morn
Member
Registered: 2012-09-02
Posts: 886

[SOLVED] Scid vs. PC: stdlib.h-related build issue with gcc 6.1.1

Since Arch's move to gcc 6, scid_vs_pc (https://aur.archlinux.org/packages/scid_vs_pc/) no longer builds:

CPLUS_INCLUDE_PATH=/usr/include:/usr/local/include g++ -fno-rtti -std=c++11 -O2 -fno-exceptions -Wall -I/usr/include -o src/pgnscid.o -c src/pgnscid.cpp
In file included from /usr/include/c++/6.1.1/ext/string_conversions.h:41:0,
from /usr/include/c++/6.1.1/bits/basic_string.h:5402,
from /usr/include/c++/6.1.1/string:52,
from src/pgnparse.h:30,
from src/pgnscid.cpp:23:
/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
compilation terminated.
Makefile:429: recipe for target 'src/pgnscid.o' failed
make: *** [src/pgnscid.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build scid_vs_pc.

I have contacted the scid_vs_pc developer about this, and he thinks this is an issue in Arch itself, not his software. Any help on how to fix this would be appreciated.

Last edited by Morn (2016-05-20 12:08:21)

Offline

#2 2016-05-20 10:28:46

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [SOLVED] Scid vs. PC: stdlib.h-related build issue with gcc 6.1.1

this may not solve your issue but anyway..

I have tried both scid and scid_vs_pc previously, but recently found that pychess in official repos is as good for all I need. You may want to try that if you haven't yet. cheers.

Offline

#3 2016-05-20 10:38:17

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] Scid vs. PC: stdlib.h-related build issue with gcc 6.1.1

Scid (and Scid vs. PC) are chess databases (like a free ChessBase basically), so it's not the same as pychess... But thanks anyway. I certainly like all things Python. :-)

If nobody has a solution I could change the PKGBUILD to depend on gcc5 from the AUR, but that took hours to compile on my machine, so if possible I'd like to find a more efficient solution.

P.S. I went ahead and switched the PKGBUILD to gcc5 in 4.16-3, so if you would like to recreate the error message, check out 4.16-2.

Last edited by Morn (2016-05-20 11:11:31)

Offline

#4 2016-05-20 11:36:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,331

Re: [SOLVED] Scid vs. PC: stdlib.h-related build issue with gcc 6.1.1

Afaik new GCC 6 trips if you manually pass /usr/include in the wrong order. What happens if you remove that obvious  CPLUS_INCLUDE_PATH, and check the makefile/configure script for any -I /usr/include and subsequently remove them? Not on my arch would test that myself otherwise.

Offline

#5 2016-05-20 12:02:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,443

Re: [SOLVED] Scid vs. PC: stdlib.h-related build issue with gcc 6.1.1

This is definitely an upstream problem. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129

Offline

#6 2016-05-20 12:06:57

Morn
Member
Registered: 2012-09-02
Posts: 886

Re: [SOLVED] Scid vs. PC: stdlib.h-related build issue with gcc 6.1.1

Thanks, V1del, that solved the issue! I've created a patch for configure and now all is well again with gcc 6.

Offline

Board footer

Powered by FluxBB