Questions tagged [gcc7]

GCC 7 is a major release of the GNU Compiler collection first released in 2017.

Version 7.1. was released on 2017-05-02. Version 7.5 was released on 2019-11-14.

See also:

74 questions
0
votes
1 answer

Why do I get /usr/bin/ld: internal error ../../ld/ldlang.c 4986 when trying to use default linker script obtained with ld --verbose?

Do find out where in memory a certain variable is located I wished to create a new section next to .data and then use PROVIDE. The first step was to obtain the current linker script with ld --verbose and then use it to link with -T amd64.ld…
user2052153
  • 129
  • 10
0
votes
0 answers

Why do I get assembler error while using vmovl_u8 instruction of armv8-a?

I have the following armv8-a code and I am getting the assembler error. I am unable to figure out the error #include #include int main(char source) { char a = 10, b = 10, c = 10, d = 10; uint16_t sum; uint8x8_t src0 =…
0
votes
0 answers

Why do I get assembler error while using vmovl_u8 instruction?

I have the following armv8-a code and I am getting the assembler error. I am unable to figure out the error #include #include void main() { char a = 10, b = 10, c = 10, d = 10; uint8_t *source = (uint8_t*)…
0
votes
0 answers

What is possibly happening in this C++ Singleton used in a multi-threaded code and how to possibly fix the behavior?

There is this simple Singleton function: const AppConfig& AppConfig::Singleton() { static AppConfig appConfig{ configPath_ }; return appConfig; } first, it's initialized correctly every time (I have breakpoints for checking it) and it is…
Lukas Salich
  • 959
  • 2
  • 12
  • 30
0
votes
1 answer

boost::hana::is_valid fails to compile with gcc8 (and more) and --std=c++14

I use this code with std=c++14 and gcc7.3: #include #include #include #include #include #include namespace hana = boost::hana; template
0
votes
0 answers

runtime issue with boost serialization using different compilers/environments

I have a piece of code that serializes a struct on file. int main(int argn, char* argv[]){ if (argn > 2){ std::cout << "Error! this program requires a single argument.\n"; return 1; } std::string…
Eamon
  • 23
  • 6
0
votes
1 answer

Separator to make binary literals look cleaner

I am trying to write binary literals in a cleaner format. I understand that the following can be done for integer literals: int x = 1234_5678_9999; I assumed this would work for binary literals, so I tried: uint32_t branch_bitmask =…
M S
  • 15
  • 5
0
votes
0 answers

Boost 1.53 compile errors

I tried to compile some sources with boost-1.53, g++-7.4 on WSL Ubuntu (Windows 10) but got an error: /usr/include/boost/integer_traits.hpp:84:46: error: ‘CHAR_MIN’ was not declared in this scope What's wrong?
trupanka
  • 693
  • 8
  • 20
0
votes
2 answers

How can I get Ada GNAT gcc 7.3 for Solaris 11?

We have a Solaris 11 system with gcc 7.3, we need to install the Ada package. On Linux gcc 7 came with the Ada/GNAT as part of the gcc install: apt install gcc I visited AdaCore looks like Solaris (SPARC) is not longer on the list. I need to use…
will
  • 4,799
  • 8
  • 54
  • 90
0
votes
1 answer

Error with arm-trusted-firmware compilation when built by cross toolchain

I am working on rcar gen 3 platform from Renesas and particularly on arm-trusted-firmware level. 1. bootparam_sa0.srec Loader(Boot parameter) <======= arm-trusted-firmware 2. bl2-m3ulcb.srec Loader …
Thảo M. Hoàng
  • 1,224
  • 3
  • 20
  • 42
0
votes
4 answers

Increment variable by N inside array index

Could someone please tell me whether or not such a construction is valid (i.e not an UB) in C++. I have some segfaults because of that and spent couple of days trying to figure out what is going on there. // Synthetic example int main(int argc,…
Dmitry
  • 1,065
  • 7
  • 15
0
votes
1 answer

How to compile GTK+ base application with musl-gcc?

I compiled this GTK+ Example App with both gcc & musl-gcc. Both of those produced a binary file, but musl-gcc produced binary does not execute correctly & shows bunch of errors. Note: I installed both musl-libc and libgtk3 dev version. Note: ldd…
samadadi
  • 3,100
  • 7
  • 25
  • 37
0
votes
1 answer

Was including necessary in GCC 4.8?

I have inherited a C++ project that was written in 2014 and indeed compiles with GCC 4.8. In a particular file, several classes currently found in the header of C++ standard library are instantiated. These include mt19937, random_device,…
Adam Sperry
  • 283
  • 1
  • 9
0
votes
2 answers

How can I work around this parameter expansion bug in GCC without upgrading to 8.x?

Consider the following code: #include #include #include #include #include template void foo() { std::cout << N << "(" << ") "; } template<> void foo<2>() { std::cout << "TWO (" << ")…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
1 answer

Build Devtoolset 7 gcc with "--enable-vtable-verify"

I have devtoolset7 packages installed in my machine…
user1918858
  • 1,202
  • 1
  • 20
  • 29