Author Topic: stdio macros (NULL, FILE, etc.) not working with gcc-4.4  (Read 3827 times)

ml3196390801

  • New to the forum
  • *
  • Posts: 8
stdio macros (NULL, FILE, etc.) not working with gcc-4.4
« on: August 09, 2012, 06:55:11 PM »
I'm new to ML development, but from what I understand, ML uses its own custom stdio.c.

I'm also trying to use an official pre-packaged embedded-Debian arm toolchain, but the most recent version is for gcc-4.4.

So, I'm getting a lot of errors like this:

error: NULL undeclared (first use in this function)

Can the stdio-related macros be updated so that they will compile with an older version of gcc?

I've already compiled ML2.3 successfully using the arm toolchain for gcc-4.6.2, but as I mentioned, the most recent version of gcc for embedded Debian is gcc-4.4.

I think if Debian/Ubuntu people were able to easily install a pre-packaged Debian version of the arm toolchain, it might help spur development from that side of the aisle.

nanomad

  • Administrator
  • Hero Member
  • *****
  • Posts: 2918
  • All your websites are belong to us
Re: stdio macros (NULL, FILE, etc.) not working with gcc-4.4
« Reply #1 on: August 20, 2012, 04:25:33 PM »
Use this: https://launchpad.net/gcc-arm-embedded

Simply extract it somewhere and edit Makefile.inc accordingly
EOS 1100D | EOS 650 (No, I didn't forget the D) | Ye Olde Canon EF Lenses ('87): 50 f/1.8 - 28 f/2.8 - 70-210 f/4 | EF-S 18-55 f/3.5-5.6 | Metz 36 AF-5

ml3196390801

  • New to the forum
  • *
  • Posts: 8
Re: stdio macros (NULL, FILE, etc.) not working with gcc-4.4
« Reply #2 on: August 30, 2012, 08:12:37 PM »
Use this: https://launchpad.net/gcc-arm-embedded

Simply extract it somewhere and edit Makefile.inc accordingly
I've been using gcc-4.6 as compiled by the toolchain/summon-arm script.

But my original question was about gcc-4.4, and whether or not the stdio macros could be made compatible with gcc-4.4. (Maybe I'm misdiagnosing what the problem is.) The latest Debian/Ubuntu version available is gcc-4.4, which is the only reason I'm asking.

Is compilation with gcc-4.4 not supported?