DIGIT-ARC read-only archive · snapshot: July 23, 2026

gcc toolchain building error...

5 posts · originally from https://geek.digit.in/community/threads/gcc-toolchain-building-error.36088/

desmond_315
desmond_315 Original post #1
Sep 10, 2006 at 1:23 PM
i get the following error while building the toolchain

src/gcc-4.0-20060817/libiberty/regex.c:8242: error: dereferencing pointer to incomplete type
/src/gcc-4.0-20060817/libiberty/regex.c:8243: error: dereferencing pointer to incomplete type
/src/gcc-4.0-20060817/libiberty/regex.c:8244: error: dereferencing pointer to incomplete type
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/tmp/build/gcc/arm-elf/libiberty'
make: *** [all-target-libiberty] Error 2
make: Leaving directory `/tmp/build/gcc'


please help..
M
Sep 10, 2006 at 3:19 PM
What are you trying to compile there? I don't really know what the exact cause of the error is, but googling shows it is maybe due to using of different versions of gcc.
If you give more info on what is causing this error and which distro are you using, maybe it will be more helpful.
desmond_315
Sep 10, 2006 at 7:39 PM
i have got fedora core five installed on my comp...i want to build a toolchain for an arm kit..for that im followin the procedure given at
*ecos.sourceware.org/build-toolchain.html

but i have downloaded newer ver versions of binutils-2.16.92
gcc-core-4.0.tar
gcc-g++-4.0-20060817.tar
gdb-6.5.tar

i did this cause i was gettin errors usin the versions on the site n read somewhere that its cause fedora have a newer version of gcc...but im still gettin an errror when installin gcc.
M
Sep 10, 2006 at 8:42 PM
Well that's what I doubt. I think this toolchain for arm uses gcc 3.x. So, it requires gcc 3.x more specifically 3.2.x installed on your FC. Just install gcc 3.2.x that is available for FC 5. IMO, that should work for you.
J
Sep 11, 2006 at 2:11 PM
Hi,
Don't just download the newest tarballs and try to compile. They gave error always. Instead try to use a toolchain building tool like crosstool or so. They will download the matching tarball and then compile them.