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

Re: [Minios-devel] [Unikraft] Static Libraries not being linked properly


  • To: Ajay Garg <ajaygargnsit@xxxxxxxxx>
  • From: Wei Chen <Wei.Chen@xxxxxxx>
  • Date: Wed, 18 Apr 2018 03:31:59 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wei.Chen@xxxxxxx;
  • Cc: "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 18 Apr 2018 03:32:14 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99
  • Thread-index: AQHT06QTkh7b+gLJn0aR3f9tdvMCnKQANaYAgAGgVYCAA+fVgIAAC/rAgAACKrCAABQlAIAAAVgw
  • Thread-topic: [Minios-devel] [Unikraft] Static Libraries not being linked properly

Hi Ajay,

 

I think we have to classify the static-pre-compiled libraries.

For instance, if the static-pre-compiled library is a math library.

It just does some Mathematical Computing and doesn’t depend on

Other libraries. I think this math library can be link to

Unikraft. Another instance, if the static-pre-compiled library

depends on other libraries. You have to guarantee the dependent

libraries are in the Unikraft library pool.

 

In your case, the /usr/lib/x86_64-linux-gnu/librt.a and /usr/lib/x86_64-linux-gnu/libpthread.a

would link to libc.a to solve their link dependencies. But the nolibc

In Unikraft is just a subset of libc.a

 

Regards,

Wei Chen

 

From: Ajay Garg <ajaygargnsit@xxxxxxxxx>
Sent: 2018
418 11:17
To: Wei Chen <Wei.Chen@xxxxxxx>
Cc: minios-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [Minios-devel] [Unikraft] Static Libraries not being linked properly

 

Hi Wei.

Thanks for the help.

Actually, my original query is how to link pre-compiled (static) libraries in unikraft?

I tried as per the documentation at
http://xenbits.xen.org/gitweb/?p=unikraft/unikraft.git;a=blob;f=doc/guides/developers-app.rst;h=45d9bd5b2bb10b3d04135d66b5162a59d54dc2b6;hb=HEAD#l163

but the libraries do not resolve linking problems.

Or am I understanding it incorrectly? Can pre-compiled static libraries be integrated/linked at all in unikraft?

 

 

On Wed, Apr 18, 2018 at 7:48 AM, Wei Chen <Wei.Chen@xxxxxxx> wrote:

But the clock_gettime hasn’t been implemented in nolibc or libtime.

If your application just uses this function to print timestampe, you

can implement a dummy function in your code in this time to pass the

linking.

 

 




--

Regards,
Ajay

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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