[SERVER-10645] Ubuntu 10.04 fails to compile due to builtin__memcpy_chk bug Created: 29/Aug/13  Updated: 12/Jan/15  Resolved: 12/Jan/15

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Andy Schwerin
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

In file included from /usr/include/string.h:640,
                 from /usr/include/c++/4.4/cstring:45,
                 from src/mongo/platform/basic.h:27,
                 from src/mongo/pch.h:28,
                 from src/mongo/client/dbclientcursor.h:20,
                 from src/mongo/db/repl/oplogreader.h:23,
                 from src/mongo/db/repl/master_slave.h:19,
                 from src/mongo/db/repl/master_slave.cpp:27:
In function 'void* memcpy(void*, const void*, size_t)',
    inlined from 'void mongo::StringData::copyTo(char*, bool) const' at src/mongo/base/string_data-inl.h:59,
    inlined from 'void mongo::nsToDatabase(const mongo::StringData&, char*)' at src/mongo/db/namespace_string.h:137,
    inlined from 'void mongo::ReplSource::sync_pullOpLog_applyOperation(mongo::BSONObj&, bool)' at src/mongo/db/repl/master_slave.cpp:575:
/usr/include/bits/string3.h:52: error: call to void* __builtin___memcpy_chk(void*, const void*, long unsigned int, long unsigned int) will always overflow destination buffer
scons: *** [build/linux2/release/ssl/mongo/db/repl/master_slave.o] Error 1



 Comments   
Comment by Andy Schwerin [ 12/Jan/15 ]

Ubuntu 10.04 using the system default compiler and libc is no longer a supported platform.

Comment by Eric Milkie [ 03/Sep/13 ]

My initial suggestion solution didn't work.

Generated at Thu Feb 08 03:23:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.