Forum Discussion

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

Corrupted .cdtbuild files

I've just been bitten badly by the NIOS IDE 'make manager' again.

A system library which I was using fine yesterday suddenly failed to compile - gcc failing with a "cannot specify -o with -c or -S and multiple compilations" error.

The generated makefile had a line reading "CFAGS = null ", and selecting the C/C++ build options for the system library properties dialog showed be a 'blank' page without any of the usual options.

Turns out the libraries '.cdtbuild' file had been trashed, and was missing vital sections. I had to manually copy them from another system library project.

The corrupted one looked like this:-

<?xml version="1.0" encoding="UTF-8"?>
<ManagedProjectBuildInfo>
    <target artifactName="My_syslib.a" cleanCommand="rm -rf"
        defaultExtension="a" id="My_syslib.nios2.lib.80040364"
        isAbstract="false" isTest="false" name="Nios II Library">
        <configuration id="nios2.lib.release.86196347" name="Release"/>
        <configuration id="nios2.lib.debug.1347398883" name="Debug"/>
    </target>
    <defaultConfig id="nios2.lib.debug.1347398883"/>
    <defaultTarget id="My_syslib.nios2.lib.80040364"/>
</ManagedProjectBuildInfo>

Any thoughts on how to avoid this? - Also, is this the right forum to post bug reports like this in??

- Roddy

1 Reply

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

    I ran into a similar problem a few days ago. What fixed it for me was to delete the project (but not the files) then re-import it into the IDE. Can&#39;t remember if I had to reset any values after that. I didn&#39;t analyze the corruption so I&#39;m not sure if it was more or less corrupted than your file.