[Barrelfish-users] Barrelfιsh build errors after update
Georgios Varisteas
yorgos at kth.se
Tue Mar 6 18:16:03 CET 2012
Hi Kornilios,
I thought of posixcompat myself, this existed with oldc also and if you check the actuall gcc command (included in my initial email) you can see that it is included. Is it possible that it is a library linking order problem? If I'm
not mistaken libs are linked in reverse order, right?
Anyway, posixcompat is included automatically and it is not the source of the error.
cheers,
Georgios Varisteas
________________________________________
From: Kornilios Kourtis [kornilios.kourtis at inf.ethz.ch]
Sent: Tuesday, March 06, 2012 15:57
To: barrelfish-users at lists.inf.ethz.ch
Subject: Re: [Barrelfish-users] Barrelfιsh build errors after update
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
_______________________________________________
Barrelfish-users mailing list
Barrelfish-users at lists.inf.ethz.ch
https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
More information about the Barrelfish-users
mailing list