Questions tagged [gcc9]

GCC 9 is a major release of the GNU Compiler collection first released in 2019.

Version 9.1 was released on 2019-05-03. Version 9.3 was released on 2020-03-12.

See also:

46 questions
0
votes
1 answer

Do ubuntu, gcc later version cover older versions?

My professor is using automated scoring program for my programming assignment. It is C programming handling some file stuff. He asks students to use Ubuntu version 18.xx and gcc 7.xx. and I asked him if I can use the later version of those, which…
hoo
  • 67
  • 4
0
votes
2 answers

Print a #define macro using std::cout

I am trying to do this #define _TEST_ test #include int main() { std::cout << "_TEST_" << std::endl; } As far as my understanding, I expect this output. test However, the output I get is _TEST_ Why am I doing wrong here?
0
votes
1 answer

CMake Release and Debug running different std::for_each single thread / multi thread c++17

Hello I'm executing a std::foreach like: std::for_each( std::execution::par_unseq, vector_of_int.begin(), vvector_of_int.end(), [&captured_variables](auto &v) { Execute(v, captured_variables); } ); when i build with DEBUG version…
user2559936
  • 97
  • 3
  • 6
0
votes
1 answer

Segfault when giving a function a struct pointer

I have a function that looks like this: int lexWhitespace(TokenizerOutput* input) { printf("he"); if (!(14 > input->toStillParse[0] > 8) && !(input->toStillParse[0] == 32)) { // checks if the first character in the toStillParse…
Brad Oo
  • 28
  • 4
0
votes
0 answers

error: 'asm' operand has impossible constraints (A53) - gcc 9.3.1

This is code to read 64bit address space. Issue showed up with gcc 9.3.1, did not have issue with earlier version of gcc static inline void write_to_64bit_address(uint64_t address, uint32_t data) { uint32_t address_upper =…
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

No performance difference in different variations of the same program

I copied glibc's implementation of binary search algorithm, then modified it a little bit to suit my needs. I decided to test it and other things I have learned about GCC (attributes and built-ins). The code looks as: int main() { uint_fast16_t…
0
votes
2 answers

Gcc not working on MacOS 10.15.4 Catalina?

I wanted to start writing c++ code again and I just realized that the homebrew version of gcc does not compile any c++, c, or even fortran programs. For example, I tried to compile the following simple hello_world.cpp…
cconsta1
  • 737
  • 1
  • 6
  • 20
0
votes
1 answer

GCC Native matrix operations libraries

I wonder there are any native matrices operation library that come with standard gcc/glibc/g++. installation. I see that there are many third party libraries boost, armadillo etc. provide implementations. But I am wondering with the newer gcc 9.2…
BhanuKiran
  • 2,631
  • 3
  • 20
  • 36
0
votes
0 answers

Installing GCC 9.2.0 using MSYS2 on Windows

After installing MSYS2 and updating all packages and installing gcc toolchain using pacman -Sy mingw-w64-x86_64-toolchain I have the 9.2.0 version as shown in the picture above. But when i run gcc.exe --version it says 8.1.0 What is causing this…
Crabzmatic
  • 115
  • 9
0
votes
1 answer

address-of-packed-member: Disable for specific function?

I've noticed this error raises every time I'm accessing member of packed struct How can I disable it specifically for functions that handle the misalignment? (safe_unaligned_val_16/32/64 - constructs the output by manually taking byte after byte…
Greg Doe
  • 1
  • 1
  • 2
0
votes
1 answer

Compilation error after upgrade to gcc 9 when using concepts with argument pack in if constexpr

I have a code that uses a concept with argument pack in if constexpr context. It used to compile and work in gcc 8 but breaks in gcc 9: #include #include template concept #if __GNUC__ <…
Vladimir
  • 117
  • 2
  • 8
0
votes
1 answer

Tensorflow skylake-avx512 compiled from source missing __cpu_model symbol

I am compiling tensorflow with skylake-avx512 from source as follows, my python is built like this: git clone https://github.com/python/cpython.git && cd cpython && git checkout 2.7 CXX="/usr/bin/g++" CXXFLAGS="-O3 -mtune=skylake-avx512…
jstrat
  • 11
  • 3
0
votes
1 answer

Error compiling GCC 9.2: libgotool.a: No such file

On a fresh install of Fedora 30 onto a VM (in the below yum gets gcc 9.1, and trying to use that to build gcc 9.2): sudo yum install make cmake gmp gmp-devel mpfr mpfr-devel libmpc libmpc-devel zlib-devel libgo libgo-devel go g++ wget…
Michael Malak
  • 628
  • 8
  • 19
0
votes
0 answers

-Wclass-memaccess warning with boost::endian and gcc

I'm getting a -Wclass-memaccess with gcc >= 8 and I would like to know if I can safely ignore the warning. Test case: #include #include int main() { …
jcm
  • 947
  • 7
  • 16