Questions tagged [gcc6]

Version 6.x of the GNU Compiler Collection.

Version 6.1 was released on 2016-04-27. Version 6.5. was released on 2018-10-26.

See also:

52 questions
1
vote
0 answers

XCODE GCC6 Compatibility

I downloaded the latest version of GCC (6.2.0) using homebrew. It works great from the command line (you have to make sure you really use it and not the g++ override that XCODE does) If I try to tell XCODE to use this version of GCC as the compiler,…
1
vote
2 answers

C code that uses blas, lapack and openmp working with gcc 4.9 but gives run time error with gcc 6

I have written a code in C. You can find the source code here. It makes use of the libraries blas, lapack and openmp. I have compiled the blas and lapack libraries following these instrucions. I use these flags to tell the compiler the libraries…
Rob
  • 1,080
  • 2
  • 10
  • 24
1
vote
3 answers

gcc 6.1.0 segmentation fault - gcc bug?

Let's consider follwing code. In fact this is narrowed problem I found using gmock and mocking void(void) method. class Base { public: virtual ~Base() {} }; class Derived : public Base { public: void GetValueAndDelete() { delete this; }…
Kamil_H
  • 501
  • 1
  • 5
  • 12
0
votes
0 answers

GCC9 compiler slower than GCC6? What is possible solution for the same?

GCC9 compiler slower than GCC6? What is possible solution for the same? Normally it was taking 5 minutes for compilation but now after upgrading to GCC9 it's taking 20 minutes for compilation. Can anyone suggest the soultion?
0
votes
1 answer

Why does using "constexpr" give primary expression error in codeblocks

I am getting expected primary expression before constexpr in codeblocks only. Is there a way to fix this? This is the code I am trying to test. I have set c++ 17 as the compiler. I am using GNU GCC Compiler. GCC (MinGW.org GCC-6.3.0-1) 6.3.0. I am…
Ghost001
  • 43
  • 7
0
votes
0 answers

Error while upgrading Ubuntu from 16.04 to 18.04, GCC-6-base

I'm trying to upgrade my Ubuntu from 16.04 to 18.04, while doing sudo apt update & sudo apt upgrade and keep getting The following packages have been kept back: GCC-6-base I tried to install, upgrade and remove this package but keep getting The…
0
votes
1 answer

Wrong result for atan2 with glibc / libm and float32

I am currently developing the firmware for a medical device where a lot of difficult mathematical operations is involved. The target processor supports floating point operation in hardware, but only float32 (aka single). To simulate the behavior and…
Binarus
  • 4,005
  • 3
  • 25
  • 41
0
votes
2 answers

error using static method in lambda

I have a static method my_method_1() in my_class, and I am trying to use it in a lambda: static void my_method_1(el); void my_class::my_method_2() { std::for_each(my_list_.begin(), my_list_.end(), [](auto& element) { …
AlexM
  • 111
  • 4
0
votes
1 answer

Upgrade from gcc 5.4 to gcc 6.3 std::thread std:ref issue

I recently upgraded to gcc 6.3 from gcc 5.4. C++ code that used to compile and run just fine stopped compiling and I'm not experienced enough to deduce what is going wrong. The code is in an object that I created to spawn windows using sfml. It…
Raydude
  • 199
  • 2
  • 8
0
votes
1 answer

Unable to compile with gsl on Mac

I am trying to implement gsl_rng.h on a Montecarlo simulation on my MacBook Pro (13-inch, Mid 2012). The simulation is all written in C. My problem is that gcc-6 complains it cannot find the gsl library despite the compilation flags which I think…
Maganna Dev
  • 189
  • 1
  • 11
0
votes
1 answer

How to install gcc 6.4.0 on Cygwin

I have installed cygwin then I ran setup-x86_64.exe -q -P wget -P gcc-g++ and that installed gcc 5.4.0 But how can I install gcc 6.4.0 on cygwin?
FFMG
  • 1,208
  • 1
  • 10
  • 24
0
votes
3 answers

gcc -fPIC -fPIE: difference betweenn gcc-4 and gcc-6

Preamble: this question is not about Oracle, instead I'd like to understand the fundamental difference between gcc-4 and gcc-6 in the handling of Position Independent Code. So I have decided to try an Oracle 12c installation on a Debian…
broeni
  • 97
  • 1
  • 8
0
votes
0 answers

error: reinterpret_cast from integer to pointer

The following code fails to compile with GCC 6 and 32bit-mode (on a amd64 host). class foo { static constexpr const char* ptr = reinterpret_cast(0xff); }; int main() { return 0; } Compilation command: g++ -m32 test.cc Error…
gerion
  • 345
  • 2
  • 9
0
votes
0 answers

Doxygen 1.8.11 build fails with gcc620

I have seen all the required packages and their versions for doxygen , but building with gcc620 fails with this error: [ 26%] [BISON][constexp] Building parser with bison 3.0.4 cd…
Ijaz Ahmad
  • 11,198
  • 9
  • 53
  • 73
0
votes
2 answers

atomic load/save on c struct (gcc) questions

trying my luck in making lock-free singly linked list implementation. typedef _Atomic struct _node { void *data; struct _node *next; } Node; does this make all members of struct with _Atomic atomic as well? void add_head ( Linked_list*…
nkvnkv
  • 914
  • 2
  • 12
  • 25