Comments (25)
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.
Tried it on another XP system -
from winflexbison.
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.
@GitMensch, I tried, but unfortunately it is threw the same error with this too.
from winflexbison.
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.
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.
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.
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.
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.
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 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.
Please directly cd
to the place where the archive was extracted and use win_bison.exe --version
- same message?
from winflexbison.
@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.
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.
@a11apurva Please verify that package https://ci.appveyor.com/api/buildjobs/s1nbkybjat8ysfiv/artifacts/build%2Fwin_flex_bison-dev-2015-Win32-Release.zip
from winflexbison.
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.
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.
I am afraid, still not working on XP -
from winflexbison.
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.
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.
OK, I'm going to remove VS2015 support and all XP stuff then.
I think VS2017/VS2019 support would be enough.
from winflexbison.
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.
@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.
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.
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)
- Bison-3.7.2 HOT 2
- Can not fix file via --update HOT 16
- Crash on invalid input HOT 6
- Visual Studio - win_bison creates tab.h file exceeding compiler limits HOT 8
- Update to bison 3.7.4 HOT 10
- Trouble compiling a *.l file using CMake HOT 7
- %option c++ is not compatible with %option noyywrap - linker error: multiple definition HOT 5
- Install guide lines? HOT 3
- Loss of data conversion in Flex scanner. HOT 5
- Update to Bison 3.8.1 HOT 11
- Missing LICENSE/COPYING file in repository toplevel HOT 6
- Cannot compile Bison input in C++ mode HOT 2
- Visual Studio dependencies and the provided CustomBuildRules HOT 3
- Could this project build with gcc HOT 2
- Runtime error when running multiple flex processes HOT 19
- D language support fixes reported upstream
- Using api.prefix{ ... } breaks yyerror()
- Chocolatey for 2.5.25 (Bison 3.8) HOT 1
- BSD license and GPL license missing from the binary package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winflexbison.