Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5152 closed defect (fixed)

Compilation error when compiling a23-rc2

Reported by: ns Owned by: s0600204
Priority: Must Have Milestone:
Component: Build & Packages Keywords:
Cc: Patch:

Description

THe following error occurs when compiling a23-rc2 on Arch Linux using gcc 7.3.1+20180406-1.

==== Building scriptinterface (release) ====
precompiled.h
In file included from ../../../source/lib/sysdep/stl.h:32:0,
                 from ../../../source/lib/precompiled.h:68,
                 from ../../../source/pch/scriptinterface/precompiled.h:19:
/usr/include/c++/7.3.1/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
make[1]: *** [scriptinterface.make:121: obj/scriptinterface_Release/precompiled.h.gch] Error 1
make: *** [Makefile:105: scriptinterface] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Change History (6)

comment:2 by elexis, 6 years ago

Milestone: Alpha 23
Resolution: needsinfo
Status: newclosed

Well apparently Hannibal got the same error and could compile after make clean and clean-workspaces.sh.

mapkoc stated it was a problem with gcc even:

and the problem with gcc was with gcc 7.3.1+20180312-2 try compiling int main(){} , I got the same errors

Try updating gcc, version 8 is available too on Arch I heard.

comment:3 by elexis, 6 years ago

duplicate at #5157

comment:4 by elexis, 6 years ago

ns do you still have this issue?

Does this error occur the very first time when you tried to compile it?

As far as I see it occurs when compiling with --disable-atlas and then not compiling with it anymore (or vice versa) and not cleaning workspaces in between.

comment:5 by elexis, 6 years ago

Duplicate of #5157 apparently, Phab:D1582

comment:6 by s0600204, 6 years ago

Owner: set to s0600204
Resolution: needsinfofixed

In 21865:

Use pkg-config instead of sdl2-config

Resolves build issue on Arch Linux (and Arch-derivatives)

(Also forms part of a fix for Slackware-current builds)

Accepted By: echotangoecho (Arch)
Confirmed as functional by: Imarok (Ubuntu 16.04, gcc5.4), wes-fole-dog (Parabola)
Refs: #5157
Fixes: #5152
Differential Revision: https://code.wildfiregames.com/D1582

Note: See TracTickets for help on using tickets.