Questions tagged [gcc5]

Version 5.x of GCC (GNU Compiler Collection).

76 questions
2
votes
1 answer

enable fpu support for aarch64 (armv8-a) on gcc version 5.0.1

I am measuring the GFLOPS performance of the Cortex-a57 with the HPLinpack benchmarks and it barely achieves 1 FP/cycle (considering ~2.4 GFLOPS @ 2.4 GHz). Since the old compiler (gcc 4.9.1) complained with several version of the -mfpu= option, I…
2
votes
1 answer

incomplete type for std::unordered_set compiling error in g++5, compiles in clang++

Consider the code related to a previous SO question C++ cyclic dependency confusion with adjacency list representation #include #include class Node; class Hash { public: std::size_t operator()(const Node &node)…
vsoftco
  • 55,410
  • 12
  • 139
  • 252
1
vote
1 answer

nvcc (cuda8, gcc 5.3) no longer compiles with -O1 on Ubuntu 22.04

I have a CUDA-8 program which compiled (nvcc) well 7 months ago on Ubuntu 22.04, following this procedure, the underlying compiler being gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413. After (not sure when) I upgraded some packages on Ubuntu 22, the…
ferdymercury
  • 698
  • 4
  • 15
1
vote
2 answers

why does it compile error when i only #include

i upgrade gcc to 5.4, it seems to be ok except math.h when i write a hello.cpp like the following: #include int main(){return 0;} then i compile the above cpp with gcc 5.4, g++ 5.4 g++ hello.cpp errors happen In file included from…
wallace000
  • 21
  • 4
1
vote
0 answers

How to fix gcc include path search order problem (input/output error)?

One of our Ubuntu 16.04 systems (gcc 5.4.0) is failing a compilation that previously succeeded. The failure is: $ g++ -c -std=c++14 -Wall -pedantic -m64 -march=native -I../Kernel -I/net/simdata/Hudson_OpenSourceLibs/Boost/ -fpic -O3…
DavidA
  • 2,053
  • 6
  • 30
  • 54
1
vote
1 answer

std::thread weak when using -static-libstdc++, thus causing crash at runtime

I need to build a portable shared object, which is a plugin for another software on Linux. I did some amount of reading on the subject, came down to the conclusion, that I should build a sysrooted gcc (gcc 5.4.0 if it matters) with a decently old…
Rudolfs Bundulis
  • 11,636
  • 6
  • 33
  • 71
1
vote
1 answer

Using archive file for compiled object seems to break compilation

I have a large project with a custom Makefile building everything. This is for an ARM Cortex-M0. One of the steps is to compile a Newlib syscalls.c into syscalls.c.o. That gets dumped into an archive file newlib.a which in turn is linked to the…
Cameron Tacklind
  • 5,764
  • 1
  • 36
  • 45
1
vote
1 answer

error: 'log2' is not a member of 'std'

I'm not sure what I am seeing here. The test results below are from an old PowerMac G5 running OS X 10.5.8. Its still around for testing under the big-endian PowerPC cpu. The compiler is GCC 5.4, and its provided by MacPorts. The test program is…
jww
  • 97,681
  • 90
  • 411
  • 885
1
vote
1 answer

Can there be conflict between `-march` and instruction set switches?

I am compiling an example program with the following command: $ gcc -march=i386 -mtune=i386 -mmmx -msse4 -m3dnow -m32 -o hello.exe hello.c Questions: Why doesn't GCC complain that the switches for enabling MMX, SSE4 and 3DNow! are incompatible…
user7023624
  • 571
  • 5
  • 14
1
vote
0 answers

Homebrew GCC5 Installation error on Mac OSX 10.9.3

I'm trying to install gcc5 on OSX 10.9.3 (Mavericks) using homebrew (brew install gcc5 ) and getting the following errors. I'm able to install the same on OSX 10.11.1 (El Capitan) on a separate machine. However due to other software compatibility…
Pal
  • 989
  • 10
  • 23
1
vote
1 answer

gcc Compiler Segmentation Fault When Assigning from Value Captured Variable to Lambda Parameter

I was working on this answer and wrote the code: bool generate(vector& temp, int& target, const size_t width, const size_t i) { const auto replacement = temp[i]; const auto result = target > replacement; if (result) { …
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
1
vote
0 answers

Compiling LLVM 3.3 with GCC5, undefined references to c11 type signatures

I'm having trouble compiling my project to use LLVM 3.3* with GCC5. I get undefined references, such as `llvm::sys::getDefaultTargetTripleabi:cxx11' The abi tag indicates it's an issue of mismatched ABI with GCC5. I know there's something I can do…
edA-qa mort-ora-y
  • 30,295
  • 39
  • 137
  • 267
1
vote
1 answer

Install GCC 5.X on Xcode 6

I need to use/integrate GCC 5.X (in my case 5.3, and it is already installed) on Xcode 6.2. I've found a lot of outdated tutorials about GCC 4.X and Xcode 5 (or lower), but all of them are outdated and do not work anymore. I've also found this…
FiReTiTi
  • 5,597
  • 12
  • 30
  • 58
1
vote
1 answer

How to configure Qt to build all modules?

I am following the guide to build Qt from sources, but the build seems to be incomplete, I am building with the following configuration: configure -prefix E:\Qt57b_static_mingw5_64 -release -developer-build -opensource -c++std c++1z -static…
IvanB
  • 115
  • 8
1
vote
1 answer

Runtime error [abi:cxx11] when compile with g++-4.9 on Ubuntu 15.10

I recently updated Ubuntu from 15.04 to 15.10. One of the major differences between these versions is the update of the default gcc version from gcc-4.9 -> gcc-5. The library I'm developing has been written and compiled for gcc-4.9, and relies on…
Dreyrden
  • 11
  • 1
  • 2