develooper Front page | perl.perl5.porters | Postings from May 2015

Re: FILE structure internals issue building blead on WindowswithVisualStudio 2015 RC

Thread Previous | Thread Next
From:
bulk88
Date:
May 4, 2015 18:11
Subject:
Re: FILE structure internals issue building blead on WindowswithVisualStudio 2015 RC
Message ID:
BLU436-SMTP17974EE8771974E9806614EDFD20@phx.gbl
A. Sinan Unur wrote:
> Yes, I have already been working through the other problems.
> 
> I actually solved the linking issue by removing the `-nodefaultlib` option.
> 
> As for the problem in sv.c, removing the leading + sign from a certain
> field fixes the issue. I do not know if the + sign is needed for other
> environments.

IDK either, its from nclark commit 
http://perl5.git.perl.org/perl.git/commitdiff/889d28b2ea2c17517fae97cf4a92bd3563aaa74f 
"Reinstate space optimisations to SV body structures."

> For example:
> 
> diff --git a/sv.c b/sv.c
> index 2bb0346..ab8a74c 100644
> --- a/sv.c
> +++ b/sv.c
> @@ -980,25 +980,24 @@ static const struct body_details bodies_by_type[] = {
> 
>      { sizeof(XPV) - STRUCT_OFFSET(XPV, xpv_cur),
>        copy_length(XPV, xpv_len) - STRUCT_OFFSET(XPV, xpv_cur),
> -      + STRUCT_OFFSET(XPV, xpv_cur),
> +      STRUCT_OFFSET(XPV, xpv_cur),
>        SVt_PV, FALSE, NONV, HASARENA,
>        FIT_ARENA(0, sizeof(XPV) - STRUCT_OFFSET(XPV, xpv_cur)) },
> 
> etc etc.
> 

That is clearly a compiler bug, since it isn't broken on VC 2013. And VC 
2015 is still a beta product which could get bug fixes potentially. It 
would service alot more people to get it fixed by MS before VC 2015 gold 
is shipped.

> I have been trying to complete a build, and I was going address each
> of these separately once I got to that point. I think the make file
> and config_H.vc need some updating, but I am in the process of working
> through all of that.
> 
> With the _iobuf problem, I did not even know how to make any progress
> from that point. Anything I should try to look at, dig into?
> 
> Thanks,
> 
> -- Sinan


Is there any particular reason you are trying VC 2015 beta? I highly 
doubt P5P will add a new "platform" (VC version) during the code freeze 
(anyone else want to speak up?). Maybe for 5.22.1 VC 2015 support can be 
added but that is months away.


The FILE struct issue I will address later today. I am researching what 
MS changed for VC 2015 specifically and if its ISO C compliant.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About