Configuration problem with my gcc port
Posted: Sun Apr 08, 2018 10:07 am
Hello everyone,
I just successfully ported GCC 7.3.0 and binutils 2.30 to my OS and they seem to work fine. Only, I have some problems with them, probably configuration:
Problem #1: GCC does not find includes like stdio.h in usr/include: however, when I compile with the -v option, the usr/include folder is in the search list, but at the end And the folder /usr/local/include is empty but i can't delete it otherwise gcc complains about not finding the folder (that is useless) Problem #2: If I compile a program without include, at the time of the link, ld can't find crt0.o: ld looks for it in /lib/gcc/i686-haoudos/7.3.0/, where it finds crtend.o crtbegin.o libgcc.a ... but not crt0.o, which is in usr/lib/. But ld found libc.a libm.a ... in the same directory: it's gcc passing a bad absolute path.
Problem #3: When I compile with this command line "gcc /test.c" I get from ld this error : "option 'plugin not recognized": my solution is to add -fno-use-linker-plugin in the command line, but is there a way to include it directly in gcc this option?
Thank you in advance for your answer and if you need more information do not hesitate to ask
I just successfully ported GCC 7.3.0 and binutils 2.30 to my OS and they seem to work fine. Only, I have some problems with them, probably configuration:
Problem #1: GCC does not find includes like stdio.h in usr/include: however, when I compile with the -v option, the usr/include folder is in the search list, but at the end And the folder /usr/local/include is empty but i can't delete it otherwise gcc complains about not finding the folder (that is useless) Problem #2: If I compile a program without include, at the time of the link, ld can't find crt0.o: ld looks for it in /lib/gcc/i686-haoudos/7.3.0/, where it finds crtend.o crtbegin.o libgcc.a ... but not crt0.o, which is in usr/lib/. But ld found libc.a libm.a ... in the same directory: it's gcc passing a bad absolute path.
Problem #3: When I compile with this command line "gcc /test.c" I get from ld this error : "option 'plugin not recognized": my solution is to add -fno-use-linker-plugin in the command line, but is there a way to include it directly in gcc this option?
Thank you in advance for your answer and if you need more information do not hesitate to ask