I'm trying to compile TPC-DS tools (i..e Tools used to benchmark databases) but I'm seeing the following errors:
$ make
gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DYYDEBUG -DLINUX -g -Wall -o dsdgen s_brand.o s_customer_address.o…
After understanding that GCC supports Compound Literals, where an anonymous structure can be filled using a {...} initaliser.
Then consider that gcc accepts (with limitations) variable length structures if the last element is variable length item.
I…
The following code compiles with no problems from GCC 4.7.1 up to but not including GCC 11.1:
constexpr int SomeValue = 0;
void test () {
void (SomeValue) ();
}
On GCC 11.x it fails with:
:4:23: error: 'void SomeValue()' redeclared as…
warning: ‘__builtin_snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
"%s", evspan->text);
^
len = strlen(evspan->text);
evspan->ent->content = malloc(len+1);
snprintf(evspan->ent->content, len,
"%s",…
Consider the following code snippet:
#include
struct test {
template
test& operator=(Other&&);
int& i_;
};
int main() {
int i = 0;
test t1{i}, t2{i};
t1 = std::move(t2); // tries to select the…
I am building a C++ project with dependency on MUMPS (sparse linear solver) but during compilation I get the following error:
[build] /usr/bin/ld: /home/Thesis_project/installation/MUMPS_5.6.0/lib/libdmumps.a(dmumps_f77.o): relocation R_X86_64_32S…
I am trying to compile MPICH 3.2 with GCC 11.3.1 in Rocky Linux 9 and I am getting multiple times the following error:
error: size of array element is not a multiple of its alignment
In the MPICH mailing list somebody solves it compiling with GCC 10…
I am using Opensplice library in my project and everything is working with gcc4. I am would like to compile my project with gcc11 but I get a lot of the same errors in the Opensplice section. For example:
implicitly-declared…
After upgrading to gcc-11, which is shipped with Ubuntu 22.04, I started to get new compiler errors due to some missing Standard Library header files. Whereas previous gcc versions don't.
When I started to look into it, I learned from Porting to GCC…
This is probably not specific to C++20, but that's what I'm using right now. I have a simple struct
struct foo {
int bar;
}
which can be declared and initialized as
const auto baz = foo{42};
Now, when I disable the move constructor (foo(foo&&)…
I am trying to use clang together with gcc standard library headers as follows:
/opt/rh/llvm-toolset-11.0/root/usr/bin/clang -MD -MF bazel-out/k8-fastbuild/bin/external/com_google_googletest/_objs/gtest/gtest-typed-test.d…
I want to compare two sets of objects. For the same code I get 2 different outputs on different machines.
The code is compiled with two different compilers. On the x86-64 machine i used gcc-11, on the aarch64 (raspberry pi4) machine i used gcc-8. I…
I can compile a program that uses only semaphores or one that uses only the sio_client websocket library. However, when compiling a simple program that contains both libraries, I deal with gigantic compilation problems that I don't even know how to…