[Barrelfish-users] Forgive my intrusion, I have a problem in building Barrelfish

Kornilios Kourtis kornilios.kourtis at inf.ethz.ch
Mon Nov 3 09:55:04 CET 2014


On Sat, Nov 01, 2014 at 12:21:58AM +0800, Lord Lord wrote:
> Thanks very much, Kornilios! I modified the code as you said, and the
> error disappeared. But another error came out:
> 
> 
> Generating x86_64/usr/drivers/xeon_phi/_for_app_xeon_phi/domain.o.depend
> ../usr/drivers/xeon_phi/domain.c:21:39: fatal error: if/
> octopus_rpcclient_defs.h: No such file or directory
> compilation terminated.
> make: *** [x86_64/usr/drivers/xeon_phi/_for_app_xeon_phi/domain.o.depend] error
> 1
> 
> May the new error is caused by the similar issue as the previous one?
> Many thanks^_^

Indeed it is a similar issue. 

Can you please try the following patch:

--- a/usr/drivers/xeon_phi/Hakefile
+++ b/usr/drivers/xeon_phi/Hakefile
@@ -52,9 +52,13 @@
     ],
     flounderBindings = [
       "interphi",
+      "octopus",
       "xeon_phi",
       "xeon_phi_driver"
     ],
+    flounderExtraBindings = [
+      ("octopus", ["rpcclient"])
+    ],
     mackerelDevices = [ 
       "xeon_phi/xeon_phi_apic", 
       "xeon_phi/xeon_phi_boot", 


cheers,
Kornilios.


> 
> Yours, Sincerely
> Lu Di
> 
> On Fri, Oct 31, 2014 at 11:38 PM, Kornilios Kourtis <
> kornilios.kourtis at inf.ethz.ch> wrote:
> 
>     Hi,
> 
>     Apologies, I seem to have messed up the diff and sent the reverse patch.
> 
>     Can you please try replacing:
> 
>     >  flounderbindings = [ "dma" ],
> 
>     with:
>    
>     >  flounderbindings = [ "dma", "ioat_dma_mgr" ],
> 
>     in the Hakefile?
> 
>     cheers,
>     Kornilios.
> 
>     On Fri, Oct 31, 2014 at 11:28:05PM +0800, Lord Lord wrote:
>     > Hi Kornilios,
>     >     Many thanks for your precious advice and code. But I have checked my
>     > downloaded source code, the contents of the file (usr/drivers/ioat_dma/
>     > Hakefile) is:
>     >
>     >
>     --------------------------------------------------------------------------
>     > -- Copyright (c) 2014, ETH Zurich.
>     > -- All rights reserved.
>     > --
>     > -- This file is distributed under the terms in the attached LICENSE file.
>     > -- If you do not find this file, copies can be found by writing to:
>     > -- ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn:
>     Systems
>     > Group.
>     > --
>     > -- Hakefile for /usr/drivers/ioat_dma
>     > --
>     >
>     --------------------------------------------------------------------------
>     >
>     > [ build application {
>     >     target = "ioat_dma",
>     >     cFiles = [
>     >         "main.c",
>     >         "device.c",
>     >         "dma_service.c",
>     >         "ioat_mgr_service.c"
>     >     ],
>     >     flounderBindings = [ "dma" ],
>     >     mackerelDevices = [ "ioat_dma", "ioat_dma_chan" ],
>     >     addLibraries = libDeps [ "pci", "octopus", "dma", "dma_service" ],
>     >     architectures = [ "x86_64"]
>     >   }
>     > ]
>     >
>     > I found that flounderBindings = [ "dma" ], which doesn't need to be
>     modified.
>     > So, the problem still exists, and I don't know how to deal with it.
>     Please help
>     > me T_T. Thanks very much!
>     >
>     > PS: I got the latest source code by using:
>     >
>     > hg clone http://hg.barrelfish.org/barrelfish
>     >
>     >
>     >
>     >                                                     Yours, Sincerely
>     >                                                                Lu Di
>     >
>     >
>     >
>     > On Thu, Oct 30, 2014 at 4:13 PM, Kornilios Kourtis <
>     > kornilios.kourtis at inf.ethz.ch> wrote:
>     >
>     >     Hi there,
>     >
>     >     [Ccing barrelfish-users]
>     >
>     >     on thu, oct 30, 2014 at 03:38:34pm +0800, lord lord wrote:
>     >     > hi kornilios,
>     >     >       i am a ph. d. student from china, and prepare for doing some
>     >     research
>     >     > work on barrelfish these days. i have configured my building
>     environment
>     >     > according to the documents from the url: http://wiki.barrelfish.org
>     /
>     >     > getting_started. however, i encountered a fatal error when building
>     the
>     >     source
>     >     > code (when i run "make"):
>     >     >
>     >     > generating x86_64/usr/drivers/ioat_dma/_for_app_ioat_dma/
>     >     > ioat_mgr_service.o.depend
>     >     > in file included from ../usr/drivers/ioat_dma/
>     ioat_mgr_service.c:11:0:
>     >     > ../usr/drivers/ioat_dma/ioat_mgr_service.h:13:34: fatal error: if/
>     >     > ioat_dma_mgr_defs.h: no such file or directory
>     >     > compilation terminated.
>     >
>     >     This is caused by a dependency missing in the Hakefile
>     >
>     >     This patch should fix it:
>     >     diff --git a/usr/drivers/ioat_dma/hakefile b/usr/drivers/ioat_dma/
>     hakefile
>     >     index 6c20f28..2ab23fb 100644
>     >     --- a/usr/drivers/ioat_dma/hakefile
>     >     +++ b/usr/drivers/ioat_dma/hakefile
>     >     @@ -18,7 +18,7 @@
>     >              "dma_service.c",
>     >              "ioat_mgr_service.c"
>     >          ],
>     >     -    flounderbindings = [ "dma", "ioat_dma_mgr" ],
>     >     +    flounderbindings = [ "dma" ],
>     >          mackereldevices = [ "ioat_dma", "ioat_dma_chan" ],
>     >          addlibraries = libdeps [ "pci", "octopus", "dma", "dma_service"
>     ],
>     >          architectures = [ "x86_64"]
>     >
>     >
>     >     We have this fix in our tree, so it will be part of our next release
>     which
>     >     is
>     >     coming soon.
>     >
>     >     >
>     >     > i have googled for this issue, but few information can be found.
>     would
>     >     you
>     >     > please give me some advice on how to solve this prolem. thanks very
>     much!
>     >     >
>     >     > ps: my building environment:
>     >     > os: debian 7.7 installed in vmware
>     >     > gcc version: 4.7.2
>     >     > ghc version: 7.4.1
>     >     > barrelfish is the newest version
>     >
>     >
>     >     cheers,
>     >     Kornilios.
>     >
>     >     >
>     >     >                                                  yours, sincerely
>     >     >                                                            lu di
>     >
>     >     --
>     >     kornilios Kourtis
>     >
>     >
> 
>     --
>     Kornilios Kourtis
> 
> 

-- 
Kornilios Kourtis



More information about the Barrelfish-users mailing list