[Barrelfish-users] Barrelfιsh build errors after update

Kornilios Kourtis kornilios.kourtis at inf.ethz.ch
Tue Mar 6 15:57:05 CET 2012


Hi Georgios,

On Tue, Mar 06, 2012 at 02:50:05PM +0000, Georgios Varisteas wrote:
[snip]
> /home/georgios/barrelfish/build/../src/lib/newlib/newlib/libc/locale/ldpart.c:102: undefined reference to `open'
> /home/georgios/barrelfish/build/../src/lib/newlib/newlib/libc/locale/ldpart.c:108: undefined reference to `fstat'
> /home/georgios/barrelfish/build/../src/lib/newlib/newlib/libc/locale/ldpart.c:133: undefined reference to `read'
> /home/georgios/barrelfish/build/../src/lib/newlib/newlib/libc/locale/ldpart.c:135: undefined reference to `close'
> /home/georgios/barrelfish/build/../src/lib/newlib/newlib/libc/locale/ldpart.c:164: undefined reference to `close'
> collect2: ld returned 1 exit status
[snip]

> My app's Hakefile is the following, where I assume that I'm missing a
> library from addLibrary as a consequence of moving to newlib. Any
> hints?
> 
>   build application {
> 		target = "bb_alignment",
> 		cFiles = ["bots/alignment/alignment.c","bots/alignment/sequence.c","bots/common/bots_main.c","bots/common/bots_common.c"],
> 		addCFlags = ["-D__BOTS_APP_ALIGNMENT","-DWOOL_ROOT","-D__BF_BIAS__"],addLinkFlags = [ "-Xlinker --undefined=vfs_dummy"],
> 		omitCFlags = ["-nostdinc","-Wmissing-prototypes","-Werror"],addLibraries = libDeps[ "biasusr_root","vfs","m" ]}

AFAICT your application is using locales, which requires open() and
friends. These are included in the posixcompat library. Adding a
"posixcompat" in libDeps should do the trick.

cheers,
Kornilios.

-- 
Kornilios Kourtis



More information about the Barrelfish-users mailing list