Buildtool Tips and FAQ

What you find here

In this chapter you can find a collection of common problems you may run into if you are trying to compile applications with buildtool.

undefined reference to '__libc_start_main'

The Problem

This may occur if you use a Makefile that uses a $(CC) variable to compile stuff and you have not defined CC. It seems that in this case make uses the wrong compiler or libraries. I ran into the problem while trying to compile an application via compileShell.

Solution

add a CC=gcc when calling make , e.g.

  make all CC=gcc 

and everything should work fine

buildenv not building with gcc 4.0

The Problem

It seems that gcc 4.0 is not capable of building gcc 3.3.3. Unfortunatly there are a number of package sources right now, that refuse to build with a compiler newer than 3.4.

Solution

You need to install an additional compiler, normally you should be able to install gcc3.3 or gcc3.4 (at least for ubuntu and debian testing, this is true). After installing, edit make/MasterInclude.mk and set HOSTCC to your newly installed compiler:

HOSTCC=gcc-3.3

Adjust the line above to match whatever compiler actually comes with the package you installed (it might be called gcc33 or gcc-3.4 too, for example).