Questions tagged [gcc8]

GCC 8 is a major release of the GNU Compiler collection first released in 2018.

Version 8.1 was released on 2018-05-02. Version 8.4 was released on 2020-03-04.

See also:

58 questions
1
vote
1 answer

stack smashing detected when no return statement in function returning non-void

I have been debugging a crash in a program which aborts with the error stack smashing detected. I have narrowed down the crash to just one function which is: static ssize_t a (const char *x, const char *y, size_t z) { #ifdef SOME_FLAG return…
sg1993
  • 335
  • 2
  • 19
1
vote
2 answers

Why doesn't Valgrind memcheck catch this UB?

Like the title say I really need help of understanding, why this code is treated on my system ( linux mint 19, GCC-8.0.1, valgrind-3.13.0, c17 ) as NOT valid code: #include #include void printThis( const char *const ptr ); int…
Michi
  • 5,175
  • 7
  • 33
  • 58
1
vote
0 answers

Has anyone built gcc 8.2.0 on OpenBSD 6.3?

I am getting the following error when I try to build gcc 8.2.0 on OpenBSD 6.3: /bin/sh ./libtool --tag=CC --mode=compile /home/shane/gcc-8.2.0/host-i386-unknown-openbsd6.3/gcc/xgcc -B/home/shane/gcc-8.2.0/host-i386-unknown-openbsd6.3/gcc/…
shane
  • 68
  • 6
1
vote
1 answer

Custom Iterators

I tried to implement iterators for a class of mine and surprisingly I got the following: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second candidate 1:…
DimChtz
  • 4,043
  • 2
  • 21
  • 39
1
vote
2 answers

std::set with derived class object but base class comparator with gcc8.1

a.h #ifndef _A__ #define _A__ class A { public: struct Less { bool operator() (const A* const &k1, const A* const &k2) const { return k1->_a < k2->_a; } }; A(int a) : _a(a) { ; } virtual ~A() …
1
vote
2 answers

"Pointer to pointer to int issue"

Today I tried to solve a Quiz from Here and when I reached the Question 3, there was the following code: #include int main(void){ int *pInt; int **ppInt1; int **ppInt2; pInt = (int*)malloc(sizeof(int)); ppInt1 =…
Michi
  • 5,175
  • 7
  • 33
  • 58
1
vote
0 answers

template argument deduction for class templates not working with gcc 8.1.0?

I tried to create vector of properties. This vector supposed to be kind of "mark" that would help distinguish between other tuples. This simple snippet works on clang 6.0 and does not work on any of GCC versions (tried only 7.3.0, 8.1.0): #include…
CapSel
  • 48
  • 1
  • 4
0
votes
0 answers

C++ runtime error invalid vptr when compiling with gcc 8.1 and gcc 8.2

I have a strange runtime error that only happens with GCC 8.2 and GCC 8.1. When attempting to delete a class with multiple inheritances, the compiler raises a runtime error related to a corrupted virtual pointer. This minimal example can be found in…
Oshio
  • 133
  • 4
  • 17
0
votes
0 answers

libisl.so.22: cannot open shared object file: No such file or directory

I am trying to build a program using gcc8 but i am getting the error code: error while loading shared libraries: libisl.so.22: cannot open shared object file: No such file or directory I looked and indeed i do not have the library in my lib folder.…
ApflaBua
  • 15
  • 5
0
votes
1 answer

arm 32 byte move with ldm/stm as inline asm

I am trying to do the following and it doesnt work. The code crash with an arm toolchain gcc 8.5. #define _move(src, dst) __asm volatile ( \ "ldr r0, [%0] \n\t" \ "ldr r1, [%1] \n\t" \ "ldm …
makurisan
  • 467
  • 3
  • 13
0
votes
1 answer

rvm install ruby-3.0.0 fails with gcc-8 specific error

rvm install ruby-3.0.0 fails with gcc-8 specific error [2021-03-01 17:27:54] ./configure current path:…
Rpj
  • 5,348
  • 16
  • 62
  • 122
0
votes
1 answer

Not able to point GCC specific version

I followed these steps for installing a gcc 8.4 version on a custom folder (--prefix = /FOLDER/) https://www.hongliangjie.com/2012/07/20/how-to-install-gcc-higher-version-in-alternative-directory/ But I'm not able to use the new gcc 8.4. Everywhere…
ghillard
  • 1
  • 2
0
votes
2 answers

gcc8 is throwing compilation error due to non-trivially copyable type

class mapInfo { public: mapInfo(); ~mapInfo(); public: int dataType_m; private: int *frequency; }; //constructor is defined here. mapInfo::mapInfo() : dataType_m(0), frequency(NULL) { } //destructor is defined…
Jyoti Raj Sharma
  • 91
  • 1
  • 3
  • 10
0
votes
1 answer

version `GLIBCXX_3.4.21' not found on PowerPC (ppc64le) architecture

I am on rhel7.6 ppc64le, trying to build a package. I have devtoolset-8 installed on my system. However when I try to test it, it gives the following error: /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.21' not found (required by…
AishwaryaK
  • 61
  • 2
  • 11