Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Making GCC - Buffer overflow

Hi, folks!

I'm still trying to install GCC from the source code ('cause I need to make changes in it for my Master Science work). I followed this site:

http: // www alterawiki com/ wiki/ CrossGcc

When I call the "make" for the "Build and install the cross compiler" topic, it gives me a failure: buffer overflow - segmentation fault. It happens at nios2-elf-ar calling. The command and the parameters occupies 2.376 characters on buffer. I tried to reduce it creating a soft link (ln -s) for the libgcc/ directory, but I've got 1.928 bytes of characters on the buffer, still high.

I'm using Ubuntu 10.10.

Any light from you will be welcome.

Thanks!

Kiehn

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Do you know which program is generating the segmentation fault?

    Run 'ulimit -C unlimited' to enable the core dump - which you can then look at with gdb in order to get some hint as to the problem.

    I've built both versions of gcc from the instructions on the wiki, but not under ubuntu 10.10 (I'd have to look to see what I've used, probably includes SUSE 9).