[MDEV-22620] Build failure on FreeBSD 12.1 / clang 8.0.1 / cmake 3.17.2 Created: 2020-05-18  Updated: 2020-06-03  Resolved: 2020-06-03

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.5.3, 10.5
Fix Version/s: N/A

Type: Bug Priority: Blocker
Reporter: Bernard Spil Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: None
Environment:

FreeBSD 12.1-p4 amd64
clang 8.0.1
cmake 3.17.2


Attachments: Text File configure.log    
Issue Links:
Duplicate
is duplicated by MDEV-22621 Cmake issues with CXX_FLAGS Closed

 Description   

When compiling MariaDB 10.5.3 from source, it fails on missing stddef.h

--- storage/perfschema/CMakeFiles/perfschema.dir/all ---
In file included from /usr/ports/databases/mariadb105-server/work/mariadb-10.5.3/include/my_global.h:1125:
In file included from /usr/include/c++/v1/new:85:
In file included from /usr/include/c++/v1/exception:81:
/usr/include/c++/v1/cstddef:45:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^~~~~~~~~~                              

The configure log shows that cmake detects stddef.h.
Digging into this, I can't find any stddef.h (neither in `/usr/include` nor in the build dir).



 Comments   
Comment by Bernard Spil [ 2020-05-31 ]

This is a duplicate of MDEV-22621.

`stddef.h` is located in `/usr/include`, so again we have an issue where this is missing from `CFLAGS`.

Generated at Thu Feb 08 09:16:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.