[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 04:29:25 +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 04:29:41 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99
  • Thread-index: AQHT06QTkh7b+gLJn0aR3f9tdvMCnKQANaYAgAGgVYCAA+fVgIAAC/rAgAACKrCAABQlAIAAAVgwgAAGjACAAAth4A==
  • Thread-topic: [Minios-devel] [Unikraft] Static Libraries not being linked properly

I think currently the answer is ‘YES’. We could not link libc.a

directly in Unikraft. Libc.a requires some dependencies that

unikraft doesn’t provide.

 

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

 

Ok Wei, got it ...

So, I added "/usr/lib/x86_64-linux-gnu/libc.a" also in "APPCOREMARK_OBJS-y", but the linking errors still persist.

I now assume that pre-compiled static libc.a CANNOT be added into unikraft, right?

 

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

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: 2018418 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?

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.




--

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®.