60 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
46
views
#error "Unable to determine type definition of intptr_t" with RX toolchain and PC-lint
I'm working on a Renesas RX project using the MinGW RX toolchain (GCC 8.3.0a) and running PC-lint for static analysis. During linting, I get the following error:
#error "Unable to determine type ...
0
votes
0
answers
105
views
Hide filesystem symbols used in a shared library from linking applications under gcc 8 WITHOUT specifying experimental filesystem linker flag
I have 3 cmake targets relevant to this problem in my project.
Executable - The thing giving me filesystem linker errors
Shared Library - Core library. Originally used filesystem directly before it ...
0
votes
1
answer
1k
views
installing gcc-8-base on debian-12
I'm buidling a docker image using debian-12 and I need to install gcc-8-base on it:
FROM debian:12
RUN apt-get update -y && apt-get -y --no-install-recommends install build-essential gcc-8-...
0
votes
0
answers
445
views
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 ...
1
vote
1
answer
334
views
gcc-8: command not found (while installing randomForest)
I'm trying to install "randomForest" on R 3.6.3 as below:
urlPackage <- "https://cran.r-project.org/src/contrib/Archive/randomForest/randomForest_4.6-14.tar.gz"
install.packages(...
2
votes
1
answer
1k
views
warning: ‘/name0’ directive output may be truncated writing 10 bytes into a region of size between 1 and 4096 [-Wformat-truncation=]
#DEFINE LENGTH 4096
warning: ‘/name0’ directive output may be truncated writing 10 bytes into a region
of size between 1 and 4096 [-Wformat-truncation=]
snprintf(head_list->cname, LENGTH, "%...
0
votes
1
answer
74
views
Does gcc-8 on arm64 debian ignores friend operator<?
I want to compare two sets of objects. For the same code I get 2 different outputs on different machines.
The code is compiled with two different compilers. On the x86-64 machine i used gcc-11, on the ...
0
votes
1
answer
495
views
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" \
...
0
votes
1
answer
801
views
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: /Users/user/.rvm/src/ruby-3.0.0
GEM_HOME=/Users/user/.rvm/gems/ruby-2.6.4
PATH=/usr/local/opt/...
0
votes
1
answer
296
views
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 ...
4
votes
0
answers
758
views
Question about GCC8's stack-clash-protection clashing with stack-check
I have some code running well under GCC7. It enables fstack-check flag. Now when I switch to GCC8 without code change, I encounter the following error:
c1plus: error: ‘-fstack-check=’ and ‘-fstack-...
Harper's user avatar
- 2,014
3
votes
1
answer
4k
views
How to disable devtoolset-8?
I have a bash script that executes the command
scl enable devtoolset-8 'echo -e "%__ld $(which ld)\n%__nm $(which nm)\n%__objcopy $(which objcopy)\n%__objdump $(which objdump)\n%__strip $(which ...
-1
votes
1
answer
369
views
How to get the structure field data type in the GCC compiler source code and modify it?
If I have such a structure:
struct test{
float c,
f,
ops;
};
How can I modify the GCC compiler source code to make it as follows:
struct test{
double c,
f,
...
1
vote
2
answers
1k
views
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),
...
4
votes
1
answer
4k
views
Building gcc 8.3 [Makefile:955: all] Error 2
I've been trying to build a specific version of GCC (8.3.0) on a new Ubuntu 20.04 machine. However, when I follow the steps at the following link: https://gcc.gnu.org/wiki/InstallingGCC I run into a ...