[Barrelfish-users] Errors while building barrelfish.

Martynas Pumputis mpumputi at student.ethz.ch
Thu Sep 25 10:05:28 CEST 2014


Hi,

As a dirty workaround to this problem, I suggest you to run multiple
make jobs by using `make -j8`.

Best,
Martynas

On 09/25/2014 10:04 AM, Vamshi Krishna wrote:
> Hi Stefan,
> 
> I tried building only the header file but it did not help.
> I am still facing the same error!
> 
> In file included from ../lib/posixcompat/pty.h:16:0,
>                  from ../lib/posixcompat/write.c:18:
> ../include/term/server/server.h:23:37: fatal error:
> if/terminal_config_defs.h: No such file or directory
>  #include <if/terminal_config_defs.h>
>                                      ^
> compilation terminated.
> make: *** [x86_64/lib/posixcompat/_for_lib_posixcompat/write.o.depend]
> Error 1
> 
> 
> Then::
> --> I tried building the header files manually i.e by the below procedure.
> 
> ./tools/bin/flounder -i ../if/platform/x86_64.if -i ../if/arch/x86_64.if
> -i ../if/types.if --generic-header ../if/terminal.if
> ./x86_64/include/if/terminal_config_defs.h
> 
> This resolved the dependency problem but i am facing some errors later
> in the installation.
> 
> 1.) Please tell me if it is ok to build manually like i did?
> 2.) If yes What Flounder option should i mention to build the
> terminal_config_defs.h?  Is --generic-header fine?
> 
> Regards,
> -Vamshi.
> 
> On Sat, Sep 20, 2014 at 4:21 AM, Kästle Stefan
> <stefan.kaestle at inf.ethz.ch <mailto:stefan.kaestle at inf.ethz.ch>> wrote:
> 
>     This sounds like a build dependency problem. It's worth trying to
>     manually trigger flounder to generate the missing file:
> 
>     $ make ./x86_64/include/if/terminal_config_defs.h
> 
>     And then rebuild:
> 
>     $ make
> 
>     Ultimately, the problem is that libterm includes a file that is
>     generated by one of its dependencies. This is bad, because it
>     requires to specify this dependency everywhere the library is used
>     (in your case libposixcompat).
>     <https://mail.ethz.ch/owa/?ae=PreFormAction&a=Reply&t=IPM.Note&id=RgAAAABf%2bEk9yT%2fyTKqIqwuNs5ufBwB0zMe5vmNwQIrN1QwanZ9MAAABkAJNAACES0pGgACqRp4v1%2b76RudLAAAd4PA3AAAJ&pspid=_1411199770424_328436972#>
> 
>     Include files of libraries should be self-contained in the sense
>     that they only include headers that are either part of the library
>     itself or static external include files (such as system includes,
>     i.e. files that do _not_ have to be generated). More often than we
>     would like to, they are not ..
> 
>     Cheers,
>      Stefan
> 
>     ________________________________
>     From: Vamshi Krishna [vamshi4ms at gmail.com <mailto:vamshi4ms at gmail.com>]
>     Sent: Friday, September 19, 2014 8:59 PM
>     To: barrelfish-users at lists.inf.ethz.ch
>     <mailto:barrelfish-users at lists.inf.ethz.ch>
>     Subject: Re: [Barrelfish-users] Errors while building barrelfish.
> 
>     Hi all,
> 
>     I am trying to build the latest version of barrelfish on Linux-
>     ubuntu 14.04 64 bit. Architecture x86_64.
> 
>     I am facing the following error while building.
> 
>     Generating x86_64/lib/posixcompat/_for_lib_posixcompat/write.o.depend
>     In file included from ../lib/posixcompat/pty.h:16:0,
>                      from ../lib/posixcompat/write.c:18:
>     ../include/term/server/server.h:23:37: fatal error:
>     if/terminal_config_defs.h: No such file or directory
>      #include <if/terminal_config_defs.h>
>                                          ^
>     compilation terminated.
>     make: ***
>     [x86_64/lib/posixcompat/_for_lib_posixcompat/write.o.depend] Error 1
> 
>     I tried looking up in the code for the file but couldn't find.
>     Please help resolve this issue.
> 
>     Regards,
>     -Vamshi.
> 
> 
>     On Fri, Sep 19, 2014 at 1:39 AM, Stefan Kaestle
>     <stefan.kaestle at inf.ethz.ch
>     <mailto:stefan.kaestle at inf.ethz.ch><mailto:stefan.kaestle at inf.ethz.ch <mailto:stefan.kaestle at inf.ethz.ch>>>
>     wrote:
>     Hi Vamshi,
> 
>     As the error message suggests, you are missing parsec. On a typical
>     Debian/Ubuntu system, the required package is typically called
>     libghc-parsec2-dev
> 
>     For more information, read
>     http://wiki.barrelfish.org/Getting_Started and
>     http://hg.barrelfish.org/barrelfish/file/tip/README.
> 
>     Cheers,
>      Stefan
> 
> 
>     On 09/19/2014 10:29 AM, Vamshi Krishna wrote:
>     Hi all,
> 
>     I am trying to build the latest version of barrelfish on Linux-
>     ubuntu 14.04 64 bit. Architecture x86_64.
> 
>     I successfully built the makefile but while i try to build
>     barrelfish, i get below errors. Please help me resolve.
> 
>     touch ./x86_64/trace_definitions/.marker
>     mkdir -p ./x86_64/tools/asmoffsets
>     touch ./x86_64/tools/asmoffsets/.marker
>     mkdir -p ./x86_64/lib/posixcompat/_for_lib_posixcompat
>     touch ./x86_64/lib/posixcompat/_for_lib_posixcompat/.marker
>     ghc -i../tools/flounder -odir  ./tools/tools/flounder -hidir 
>     ./tools/tools/flounder -rtsopts=all --make 
>     ../tools/flounder/Main.lhs -o  ./tools/bin/flounder
> 
>     ../tools/pleco/Parser.hs:22:8:
>         Could not find module `Text.ParserCombinators.Parsec.Language'
>         Use -v to see a list of the files searched for.
>     make: *** [tools/bin/pleco] Error 1
>     make: *** Waiting for unfinished jobs....
> 
>     ../tools/flounder/Parser.hs:25:8:
>         Could not find module `Text.ParserCombinators.Parsec.Language'
>         Use -v to see a list of the files searched for.
>     make: *** [tools/bin/flounder] Error 1
> 
>     ../tools/hamlet/Parser.hs:21:8:
>         Could not find module `Text.ParserCombinators.Parsec.Language'
>         Use -v to see a list of the files searched for.
>     make: *** [tools/bin/hamlet] Error 1
> 
>     Regards,
>     -Vamshi.
> 
> 
> 
> 
>     _______________________________________________
>     Barrelfish-users mailing list
>     Barrelfish-users at lists.inf.ethz.ch
>     <mailto:Barrelfish-users at lists.inf.ethz.ch><mailto:Barrelfish-users at lists.inf.ethz.ch
>     <mailto:Barrelfish-users at lists.inf.ethz.ch>>
>     https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
> 
> 
> 
>     --
>     Stefan
>     http://people.inf.ethz.ch/skaestle/
> 
>     _______________________________________________
>     Barrelfish-users mailing list
>     Barrelfish-users at lists.inf.ethz.ch
>     <mailto:Barrelfish-users at lists.inf.ethz.ch><mailto:Barrelfish-users at lists.inf.ethz.ch
>     <mailto:Barrelfish-users at lists.inf.ethz.ch>>
>     https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
> 
> 
> 
> 
> 
> _______________________________________________
> 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