[MCOL-5612] compile error under gcc-13.2.1 (fc39) Created: 2023-11-15  Updated: 2024-01-25  Resolved: 2023-11-29

Status: Closed
Project: MariaDB ColumnStore
Component/s: Build
Affects Version/s: 5.6.5
Fix Version/s: 6.4.8-CS only, 23.10.1, 22.08.9

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Roman
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDBF-632 Fedora 39 RPMs not available/builds f... Open

 Description   

provided in https://pastebin.com/raw/wxpiamXa

	/usr/local/src/mariadb_10_11/storage/columnstore/columnstore/tools/passwd/secrets.cpp:102:22: error: variable ‘const {anonymous}::HexLookupTable {anonymous}::hex_lookup_table’ has initializer but incomplete type
	  102 | const HexLookupTable hex_lookup_table = init_hex_lookup_table();
	      |                      ^~~~~~~~~~~~~~~~
	/usr/local/src/mariadb_10_11/storage/columnstore/columnstore/tools/passwd/secrets.cpp:102:62: error: invalid use of incomplete type ‘using {anonymous}::HexLookupTable = struct std::array<unsigned char, 256>’ {aka ‘struct std::array<unsigned char, 256>’}
	  102 | const HexLookupTable hex_lookup_table = init_hex_lookup_table();
	      |                                         ~~~~~~~~~~~~~~~~~~~~~^~

Also:

	/usr/local/src/mariadb_10_11/storage/columnstore/columnstore/storage-manager/src/S3Storage.cpp: In member function ‘void storagemanager::S3Storage::returnConnection(ms3_st*)’:
	/usr/local/src/mariadb_10_11/storage/columnstore/columnstore/storage-manager/src/S3Storage.cpp:800:3: error: ‘freeConns’ was not declared in this scope
	  800 |   freeConns.push_front(conn);
	      |   ^~~~~~~~~

	In file included from /usr/local/src/mariadb_10_11/storage/columnstore/columnstore/storage-manager/src/S3Storage.cpp:18:
	/usr/local/src/mariadb_10_11/storage/columnstore/columnstore/storage-manager/src/S3Storage.h:87:8: error: ‘deque’ in namespace ‘std’ does not name a template type
	   87 |   std::deque<Connection> freeConns;  // using this as a stack to keep lru objects together
	      |        ^~~~~
	/usr/local/src/mariadb_10_11/storage/columnstore/columnstore/storage-manager/src/S3Storage.h:26:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
	   25 | #include "Config.h"
	  +++ |+#include <deque>
	   26 | #include <curl/curl.h>



 Comments   
Comment by Roman [ 2023-11-27 ]

JFYI danblack 10.11 doesn't have MCS 5 so the first snippet can't happen there.
It looks like both snippets affect MCS 6. I pushed the fixes into develop-6 branch but didn't yet released it.

Generated at Thu Feb 08 02:59:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.