Opened 6 years ago

Closed 6 years ago

#5176 closed defect (duplicate)

Compile fails on preprocessor. stdlib.h is not found. Parabola GNU/Linux.

Reported by: Andreas Nilsson Owned by:
Priority: Release Blocker Milestone:
Component: Build & Packages Keywords:
Cc: Patch:

Description (last modified by Stan)

Linking simulation2
==== Building scriptinterface (release) ====
precompiled.h
In file included from ../../../source/lib/sysdep/stl.h:32,
                 from ../../../source/lib/precompiled.h:68,
                 from ../../../source/pch/scriptinterface/precompiled.h:19:
/usr/include/c++/8.1.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.

Change History (5)

comment:1 by Andreas Nilsson, 6 years ago

core/gcc 7.1.1-4
    usr/include/c++/7.1.1/stdlib.h
    usr/include/c++/7.1.1/tr1/stdlib.h

ls /usr/include/c++/8.1.0/stdlib.h 
/usr/include/c++/8.1.0/stdlib.h
Last edited 6 years ago by Stan (previous) (diff)

comment:2 by Stan, 6 years ago

Hello, and thanks for the report,

If you look on the forums, there has been some report about latest gcc versions being broken. Can you try to compile a simple hello world test project and tell us if it works ? People experiencing the same crash as you said even that was broken.

comment:3 by Stan, 6 years ago

Description: modified (diff)
Keywords: make removed

comment:4 by Andreas Nilsson, 6 years ago

[andreas@penguin 0ad]$ vim helloworld.cpp [andreas@penguin 0ad]$ g++ helloworld.cpp [andreas@penguin 0ad]$ ./a.out hello [andreas@penguin 0ad]$ cat helloworld.cpp #include <stdlib.h> #include <stdio.h>

int main() {

printf("hello\n"); return 0;

}

comment:5 by elexis, 6 years ago

Milestone: Alpha 24
Resolution: duplicate
Status: newclosed

Duplicate of #5157

Note: See TracTickets for help on using tickets.