[SERVER-35703] SCons configure log is dumped when it shouldn't be. Created: 20/Jun/18  Updated: 21/Jun/18  Resolved: 21/Jun/18

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 4.0.0-rc6
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Gabriel Russell (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
duplicates SERVER-35664 Run the android embedded tests on api... Closed
Operating System: ALL
Backport Requested:
v4.0
Sprint: Platforms 2018-07-02
Participants:

 Description   

The following error appears at compile time, but is ignore:

 [2018/06/20 12:05:41.293] scons: Configure: Checking for C function fallocate()...
 [2018/06/20 12:05:41.293] build/scons/cached/sconf_temp/conftest_73.c <-
 [2018/06/20 12:05:41.293]   |
 [2018/06/20 12:05:41.293]   |
 [2018/06/20 12:05:41.293]   |#include <assert.h>
 [2018/06/20 12:05:41.293]   |fcntl.h
 [2018/06/20 12:05:41.293]   |
 [2018/06/20 12:05:41.293]   |int main() {
 [2018/06/20 12:05:41.293]   |#if defined (__stub_fallocate) || defined (__stub___fallocate)
 [2018/06/20 12:05:41.293]   |  fail fail fail
 [2018/06/20 12:05:41.293]   |#else
 [2018/06/20 12:05:41.293]   |  fallocate();
 [2018/06/20 12:05:41.293]   |#endif
 [2018/06/20 12:05:41.293]   |
 [2018/06/20 12:05:41.293]   |  return 0;
 [2018/06/20 12:05:41.293]   |}
 [2018/06/20 12:05:41.293]   |
 [2018/06/20 12:05:41.293] /opt/mongodbtoolchain/v2/bin/gcc -o build/scons/cached/sconf_temp/conftest_73.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DPCRE_STATIC -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DHAVE_VERBOSE -Isrc/third_party/snappy-1.1.3 -Isrc/third_party/zlib-1.2.11 -Ibuild/cached/third_party/wiredtiger -Isrc/third_party/wiredtiger -I/opt/basis/rlp/rlp/include -I/opt/basis/rlp/utilities/include -Ibuild/cached/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include build/scons/cached/sconf_temp/conftest_73.c
 [2018/06/20 12:05:41.293] build/scons/cached/sconf_temp/conftest_73.c:4:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 [2018/06/20 12:05:41.293]  fcntl.h
 [2018/06/20 12:05:41.293]       ^



 Comments   
Comment by Andrew Morrow (Inactive) [ 20/Jun/18 ]

We added dumping of config.log on failed compiles, but it was only intended to affect the embedded SDK builds, since those don't (and currently can't) upload the config.log file like the other builders do. We should either 1) remove the dumping and fix config.log uploading to work correctly in the embedded builders, or 2) restrict dumping the config log to the embedded builders.

Generated at Thu Feb 08 04:40:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.