[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unikraft stock project helloworld-cpp not compiling


  • To: Malte Münch <mamu@xxxxxxxxxxxxx>
  • From: "Jung, Alexander" <a.jung@xxxxxxxxxxxxxxx>
  • Date: Fri, 29 May 2020 13:14:01 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=lancaster.ac.uk; dmarc=pass action=none header.from=lancaster.ac.uk; dkim=pass header.d=lancaster.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J8OZ4SCPSxeiIi5WwOLwVIZJ0KTGXH/4gRcPNHf6mEc=; b=ByRakGaqbfOmvYRuAl75VhxUHAjumQ0HoHbqr29ZC6ADw1zWKX4+HPLUQOKbsWZnwceoZX82eLaykXCAfHaUcEr/otGqoLZoe5y8R01Yc4Pz5JhG2d/4NNOxWbnX/U0RK/C3pWTCy7PRPbPb7tmIqwkozIMiB0vtF4fXAJj4X62RXInWc2Uw4ZmkiZBbYYwQ85Lj6gPOGEyJvhWsxkUE8KOqq/YfsdEbPIQ+3I2tKWomj4Kp4ZlWqr6P7sZdGsRqSE2FSsAH1ZPv/vj7YBGaubrwyun9phtP4UCPRRqnVgq9Wc2AESJ6nGT5LzpTltmnHDv8Xl1WquzXWggv9ZtevQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C39PhtWPe4mAch9y8km6EW6Epzv1tYTwV5szwsq7PW0tX5ua+oXPV2H6MxtIcVhQUki9L18IzYN8aHeNgpQQF0gFZNFh5F54GnVwe9Su4XPI3EM3ab4b3lkL42oY332HneTz6P2ICO7gk/XB/2o7FZyiPJK+LClTpfREk2bLKi++t//CTn9i3maPYDoKei3vzkNlhsPBVgllgV+2/QYqVVUeu98Rpyz45nSj5Gra1yZzhng6NXgT9S2Gb7n/fbpv+TTeEhM7FocJw1wX2GSmuyDEZ5Hfr3otCKqb3GF5JXDbXdvq03SJ3vHpvtPw6Uus8V94NBsCOaelIF02lFdmmQ==
  • Authentication-results: stablerock.de; dkim=none (message not signed) header.d=none;stablerock.de; dmarc=none action=none header.from=lancaster.ac.uk;
  • Cc: "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>, Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
  • Delivery-date: Fri, 29 May 2020 13:14:08 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHWNbsFZEf0zzGex0qTad1x6F/hng==
  • Thread-topic: Unikraft stock project helloworld-cpp not compiling

Hi Malte,

Apologies for the delayed response!

I just tried this slightly verbose method myself:

```bash
$ pip3 install 
git+https://github.com/unikraft/kraft.git@99cdb90d76c73c74b3b66995ca64a8aad49e6b58
$ mkdir app-cpp
$ cd app-cpp
$ kraft init -a helloworld-cpp app-cpp
$ kraft configure -m x86_64 -p kvm
$ kraft build
```

And was able to re-create the same problem.  Looks like the configuration was 
set to Xen and not KVM.  There is a quick fix for this and that it is to delete 
the local `.config` and remove `xen: true` and `linuxu: true` from the 
kraft.yaml file. 

I'll have a look at why kraft is forcing a Xen configuration over a KVM 
selection and push an update as this should not be the default functionality.

However, when I force the change to KVM, it still get this error.  I am cc'ing 
Simon to have a look at this too.

Cheers,

Alexander

On 20.05.20, 18:15, "Minios-devel on behalf of Malte Münch" 
<minios-devel-bounces@xxxxxxxxxxxxxxxxxxxx on behalf of mamu@xxxxxxxxxxxxx> 
wrote:

Hello Unikraft-devs,

i am not able to compile the current 0.4 Verion of Unikraft with the
Hello-World example written in C++. Here is what i tried:

kraft up -m x86_64 -p kvm helloworld-cpp

The process crashes with the following error:

In file included from
/home/pg635/helloworldcpp/build/libcxx/origin/libcxx-7.0.0.src/include/iosfwd:90,
                 from
/home/pg635/helloworldcpp/build/libcxx/origin/libcxx-7.0.0.src/include/ios:215,
                 from
/home/pg635/helloworldcpp/build/libcxx/origin/libcxx-7.0.0.src/include/iostream:38,
                 from /home/pg635/helloworldcpp/helloworld.cpp:1:
/home/pg635/helloworldcpp/build/libcxx/origin/libcxx-7.0.0.src/include/wchar.h:119:15:
fatal error: wchar.h: no such file or directory
 #include_next <wchar.h>
               ^~~~~~~~~

kraft itself works and i am able to compile and run the Helloworld
application written in C.

Looking forward to your replies.

Best
Malte


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.