Announcement

Collapse
No announcement yet.

creating executables using gcc-3.4

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    creating executables using gcc-3.4

    I am trying to install tinyos on kubuntu following the instructions on:

    http://www.chadmetcalf.com/tinyos-1x-on-ubuntu/

    it is the mspgcc section where i got stuck:

    thus when i install ./build-mspgcc install command i get the following (i did this twice so second time
    all the downloaded packages were already present):
    ----------------------------------------------

    processing MSPGCC_CVS
    download MSPGCC_CVS: found archive/mspgcc-cvs.tar.gz, skipping download
    found build/mspgcc-cvs, skipping decompress
    found build/mspgcc-cvs/build-complete, skipping build
    installing MSPGCC_CVS

    processing BINUTILS
    download BINUTILS: found archive/binutils-2.17.tar.bz2, skipping download
    found build/binutils-2.17, skipping decompress
    building BINUTILS
    loading cache ./config.cache
    checking host system type... i686-pc-linux-gnulibc1
    checking target system type... msp430-unknown-none
    checking build system type... i686-pc-linux-gnulibc1
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether ln works... yes
    checking whether ln -s works... yes
    checking for gcc... gcc-3.4
    checking whether the C compiler (gcc-3.4 ) works... no
    configure: error: installation or configuration problem: C compiler cannot create executables.

    ------------------------

    as far as installation gcc it appears to be installed in adapt package manager for kubuntu, I even reinstalled it to make sure....

    is there any configuration required for c compiler to allow it to creat executables


    Many Thanks

    #2
    Re: creating executables using gcc-3.4

    The only thing I can think of is the package "build-essential". However, that would create a problem for you because the Dapper "build-essential" installs gcc4. The significance of this is that the Dapper version of libc6 may be different from what gcc 3.4 expects. I would have expected a problem with finding the appropriate headers rather than a statement that it couldn't create the executable.

    My only other thought is that you might have a permission problem of some kind. Try running the build as root. If that works, then you know you've got a permission problem.

    Comment


      #3
      Re: creating executables using gcc-3.4

      I know I've seen this problem and solved it. Trouble is I can't remember if it was at home on Kubuntu, at work on Fedora or how I solved it...

      Do you have g++ installed? If not try installing that.

      Comment


        #4
        Re: creating executables using gcc-3.4

        Would g++ work, if the C compiler can't create an executable? I would think that the code generation part of the compiler would be the same regardless of which language you input at the start of the process.

        Comment


          #5
          Re: creating executables using gcc-3.4

          Originally posted by askrieger
          Would g++ work, if the C compiler can't create an executable?
          Y'know, I really have no idea. The g++ suggestion was based on a vague memory and a quick bit of googling. Installing it, assuming it isn't already installed, can't make the situation worse at least!

          I wish I could remeber how I fixed the problem when I came accross it. Been buggin' me all evening.

          Comment

          Working...
          X