Hello Islombek,
On Tue, Mar 03 2026, Islombek Ismoilov via Gcc wrote:
> Dear David Malcolm
>
> I would like to share my progress on building and modifying the GNU
> compiler from source.
>
> I successfully built GCC from the source code. During the process, I
> resolved dependency and configuration issues that arose.
>
> After the build was completed, I tested the compiled compiler using a
> simple test.c file.
>
> int main(){
>
> return 0;
>
> }
>
> The compilation and execution worked correctly, confirming that the build
> was functioning as expected.
>
> Then I started experimenting with modifications in the source code. I
> edited the file c-parser.cc , specifically the function
> "c_parser_translation_unit" and added the following line:
>
> warning (0, "Good Job");
>
> My goal was to introduce a warning that would appear during each
> compilation.
When I want to check that a code gets executed in the most simple way, I
just resort to fprintf. The trick is to direct the output to stderr.
Putting
fprintf (stderr, "Good job!\n");
at the beginning of c_parser_translation_unit does what you'd expect it
to do.
>
> However, after making the changes and rebuilding, the cc1 binary was not
> generated. The build process completes the configuration stage but fails to
> produce the main compiler binary. I restored c-parser.cc to its original
> state, yet the issue still persists , the build still finishes without
> generating cc1.
This is of course strange. What were the commands you issued (in which
directories) and what were the error messages? There should be no need
to re-run configuration after such small change. Did make exit with
exit code zero?
Did you disable bootstrap during the first configuration step?
>
> what do you advise?
I'm afraid we need more details, after you restore the file, all should
be as before, of course.
Good luck debugging this and with GSoC in general.
Martin