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

Georgios Varisteas yorgos at kth.se
Wed Mar 7 11:43:35 CET 2012


Thanks I will try that later. I used libDeps and thought it should be enough. Am am indeed using ahci and it is functioning well, speeding up everything inside qemu and other emulators.

cheers,
Georgios

________________________________________
From: Kornilios Kourtis [kornilios.kourtis at inf.ethz.ch]
Sent: Wednesday, March 07, 2012 11:39
To: barrelfish-users at lists.inf.ethz.ch
Subject: Re: [Barrelfish-users] Barrelfιsh    build errors after update

Hi Georgios,

On Wed, Mar 07, 2012 at 10:10:37AM +0000, Georgios Varisteas wrote:
> Hi again,
>
> The patch fixed that error only to stumble upon another one...
>
> gcc -g -O2 ./x86_64/lib/crt0.o ./x86_64/lib/crtbegin.o -fno-builtin -nostdlib -Wl,-z,max-page-size=0x1000
> -Wl,--build-id=none -m64 -Xlinker --undefined=vfs_dummy -o ./x86_64/sbin/bb_floorplan
> ./x86_64/usr/woolapps/_for_app_bb_floorplan/bots/floorplan/floorplan.o
> ./x86_64/usr/woolapps/_for_app_bb_floorplan/bots/common/bots_main.o
> ./x86_64/usr/woolapps/_for_app_bb_floorplan/bots/common/bots_common.o ./x86_64/lib/libbiasusr_root.a
> ./x86_64/lib/libtimer.a ./x86_64/lib/libvfs.a ./x86_64/lib/libnfs.a ./x86_64/lib/libahci.a ./x86_64/lib/liblwip.a
> ./x86_64/lib/libcontmng.a ./x86_64/lib/libprocon.a ./x86_64/lib/libposixcompat.a ./x86_64/lib/libbarrelfish.a
> ./x86_64/errors/errno.o ./x86_64/lib/libnewlib.a ./x86_64/lib/crtend.o ./x86_64/lib/libcollections.a
> ./x86_64/lib/libvfs.a(fopen.o): In function `vfs_fopen_init':
> /home/georgios/barrelfish/build/../src/lib/vfs/fopen.c:264: undefined reference to `vfsfd_lseek'
> /home/georgios/barrelfish/build/../src/lib/vfs/fopen.c:264: undefined reference to `vfsfd_close'
> /home/georgios/barrelfish/build/../src/lib/vfs/fopen.c:264: undefined reference to `vfsfd_write'
> /home/georgios/barrelfish/build/../src/lib/vfs/fopen.c:264: undefined reference to `vfsfd_read'
> /home/georgios/barrelfish/build/../src/lib/vfs/fopen.c:264: undefined reference to `vfsfd_open'
> collect2: ld returned 1 exit status
> make: *** [x86_64/sbin/bb_floorplan] Error 1
>
> floorplan app uses vfs and ahci thus has all those added... Any hints for this one?

In this case the linker can't find the vfsfd library, and I can't see it
in the gcc command line. If were using the libDeps function, it should
had added it. In any case, I think just adding the library in the
dependencies should fix the problem this time.

Note #1: If you add the library dependency manually, note that ordering
matters. I would try putting vfsfd after vfs.

Note #2: Are you using ahci to access files on disks?

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