Git Product home page Git Product logo

Comments (25)

lexxmark avatar lexxmark commented on July 1, 2024 2

I have added XP support to appveyor script. The following artifact should support XP
https://ci.appveyor.com/api/buildjobs/ri8fcm5b4c0qgc68/artifacts/build%2Fwin_flex_bison-dev-2015-Win32-Release.zip

@a11apurva Please verify.

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024 1

Tried it on another XP system -

winBison1

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

Does it work with the current vs2015 artifact?
https://ci.appveyor.com/api/buildjobs/vg8v8c5ao4urbjqj/artifacts/build%2Fwin_flex_bison-dev-2015-Win32-Release.zip

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024

@GitMensch, I tried, but unfortunately it is threw the same error with this too.

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

As I remember under VS2015 we should explicitly enable XP support in project settings. I believe VS2019 doesn't support XP anymore.

You can try to build bison source code using VS2015 with proper settings but it might not compile because of outdated ะก++ compiler.

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

I think we should set the cmake up to let the VC2015 environment use the -xp toolset.
This way we can provide it (as long as VS2015 builds it the -xp toolset should do the same; and VC2015 is also the minimal version for the gnulib parts that handle VC, so it should be fine).

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

I don't have VS2015 to test it.
@GitMensch Could you test it?
There is definition of the build flag needed to support XP in VS2015 https://stackoverflow.com/questions/35664861/how-to-target-windows-xp-in-microsoft-visual-studio-c/35666906

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024

Hi @lexxmark, works as expected.

$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows 7 Enterprise
OS Version:                6.1.7601 Service Pack 1 Build 7601

$ bison --version
bison (GNU Bison) 3.7.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Thanks a lot! Closing the issue.

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

Hm, I think one last piece is missing:

  • potentially make a release that includes the Appveyor created XP version
  • document "somewhere" which version to use on XP

@lexxmark what do you think?

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

Hm, I think one last piece is missing:

Yes that makes sense.

OS Name: Microsoft Windows 7 Enterprise

@a11apurva why did you test on Windows7 system and not WindowsXP?

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024

@a11apurva why did you test on Windows7 system and not WindowsXP?

That was such a blunder. Apologies.

Same error on XP still -

$ systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft(R) Windows(R) XP Professional x64 Edition
OS Version:                5.2.3790 Service Pack 2 Build 3790
$ bison --version
bison: cannot execute: %1 is not a valid Win32 application.

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

Please directly cd to the place where the archive was extracted and use win_bison.exe --version - same message?

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

@lexxmark You set the VC var PLATFORMTOOLSET, but this is only honored by msbuild. My guess is that CMAKE_VS_PLATFORM_TOOLSET should be set from this variable.

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

You set the VC var PLATFORMTOOLSET, but this is only honored by msbuild. My guess is that CMAKE_VS_PLATFORM_TOOLSET should be set from this variable.

Can you try this?

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

@a11apurva Please verify that package https://ci.appveyor.com/api/buildjobs/s1nbkybjat8ysfiv/artifacts/build%2Fwin_flex_bison-dev-2015-Win32-Release.zip

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024

I haven't tested on XP yet as the machine is down, but it says Bison 3.7.4, is this the correct package?

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

yes, that's correct. I'm migrating to bison 3.7.4 if it works we can rollup windows XP fix for any version we need.

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024

I am afraid, still not working on XP -

image

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

It seems I have to manage to enforce Visual Studio to build project with v140_xp toolset.

The only problem still is that appveyor don't supply VS with such a toolset. Have to dig further.

from winflexbison.

a11apurva avatar a11apurva commented on July 1, 2024

We have moved all our systems to win10.

If there are no other takers for the Bison with XP support then you guys can park this for now.

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

OK, I'm going to remove VS2015 support and all XP stuff then.

I think VS2017/VS2019 support would be enough.

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

I initially was thinking that this is a bad idea, but came to the conclusion that this is fine - people can use an older version for old parsers. The question is: what is the latest release that actually has XP support? Maybe we can hand-craft a version and attach it to one of the releases, adding a release note "last with XP support"?

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

@GitMensch Are you talking about winflexbison3? I think the regular winflexbison2 last version has XP support.

Someone who will need XP support will help us determine exact winflexbison3 version supporting XP then. I hope no one needed XP support anymore.

from winflexbison.

GitMensch avatar GitMensch commented on July 1, 2024

I think the regular winflexbison2 last version has XP support.

I've jsut tested that with an old VM (Windows Version 5.1 XP SP3 32bit).

Yes, winflexbison2 last version works, winflexbison 2.5.22 (bison 3.5.0, flex 2.6.4) is the most current one that works, from 2.5.23 I see the same failures as here.

... this does make me wonder: what has changed in between?

from winflexbison.

lexxmark avatar lexxmark commented on July 1, 2024

this does make me wonder: what has changed in between?

My guess is that I just started to create releases by new version of Visual Studio which doesn't support XP any more.

from winflexbison.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.