Web lists-archives.com

Re: setup.exe problem in wine




On Fri, Jun 30, 2017 at 5:44 AM, Richard Z <rz@xxxxxxxxxxxxxx> wrote:
>> read in various places that it should work, but I get
>> "Cygwin is not supported on this Windows version" running
>> from both wineconsole or bash.
>
> got somewhat farther with "--allow-unsupported-windows"
> and also need "--site" because mirror list is empty no matter
> what connection method I specify.

Surrender, Dorothy!  :-)

I've tried this periodically over the years.  It's a moving target,
and as soon as one batch of problems is fixed, another pops up.
See https://bugs.winehq.org/buglist.cgi?quicksearch=cygwin
(many of the older ones are fixed, so pay more attention to recent ones).

But heck, maybe you're using old wine, and new wine works better,
so I installed the latest dev version on Ubuntu 17.04 by following
https://www.winehq.org/pipermail/wine-devel/2017-March/117104.html
i.e.
$ wget https://dl.winehq.org/wine-builds/Release.key
$ sudo apt-key add Release.key
$ sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
$ sudo apt update
$ sudo apt install winehq-devel
$ PATH=/opt/wine-devel/bin:$PATH

I then got a fresh .wine directory:
$ cd $HOME
$ mv -f .wine .wine.beforecygwin

And for grins, checked versions by doing
$ wine --version
$ winecfg
and verifying that wine reported "wine-2.11" (nice and fresh)
and observing that winecfg's gui said wine is emulating win7.
I then quite winecfg and did

$ wget https://cygwin.com/setup-x86_64.exe
$ wine setup-x86_64.exe

That reported "setup.exe version 2.880 (64 bit)".

The first glitch was that the prompt for Local Package Directory
defaulted to my home directory (Z:\home\dank)!  I changed
that to c:\cygpkgs64 like I usually do and continued.

There were lots of complaints from setup.exe (not wine) of the sort
AddAccessAllowedAceEx(C:\cygwin64/etc/setup, group) failed: 1337
but those can probably be ignored.

Default install seemed to go quite well, at least until the
postinstall scripts ran;
each one of them complained about a stack overflow, but the gui continued:

running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"
fixme:ntdll:NtSetInformationToken unimplemented class 4
fixme:ntdll:NtQueryInformationProcess (process=0xffffffffffffffff)
Unimplemented information class: ProcessSessionInformation
fixme:advapi:LsaOpenPolicy ((null),0x1802d1f40,0x00000001,0xffffc2f8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:netapi32:NetUserGetInfo Level 3 is not implemented
err:seh:setup_exception stack overflow 1840 bytes in thread 003d eip
000000007bc96ded esp 00000000ffe00ee0 stack
0xffe00000-0xffe01000-0x100000000
running: C:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash"
fixme:ntdll:NtSetInformationToken unimplemented class 4
fixme:ntdll:NtQueryInformationProcess (process=0xffffffffffffffff)
Unimplemented information class: ProcessSessionInformation
fixme:advapi:LsaOpenPolicy ((null),0x1802d1f40,0x00000001,0xffffc2f8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:netapi32:NetUserGetInfo Level 3 is not implemented
err:seh:setup_exception stack overflow 1840 bytes in thread 003f eip
000000007bc96ded esp 00000000ffe00ee0 stack
0xffe00000-0xffe01000-0x100000000
running: C:\cygwin64\bin\bash.exe --norc --noprofile
"/etc/postinstall/000-cygwin-post-install.sh"
fixme:ntdll:NtSetInformationToken unimplemented class 4
fixme:ntdll:NtQueryInformationProcess (process=0xffffffffffffffff)
Unimplemented information class: ProcessSessionInformation
fixme:advapi:LsaOpenPolicy ((null),0x1802d1f40,0x00000001,0xffffc2f8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:netapi32:NetUserGetInfo Level 3 is not implemented
err:seh:setup_exception stack overflow 1840 bytes in thread 0041 eip
000000007bc96ded esp 00000000ffe00ee0 stack
0xffe00000-0xffe01000-0x100000000
running: C:\cygwin64\bin\bash.exe --norc --noprofile
"/etc/postinstall/coreutils.sh"
...
running: C:\cygwin64\bin\bash.exe --norc --noprofile
"/etc/postinstall/zp_man-db.sh"
fixme:ntdll:NtSetInformationToken unimplemented class 4
fixme:ntdll:NtQueryInformationProcess (process=0xffffffffffffffff)
Unimplemented information class: ProcessSessionInformation
fixme:advapi:LsaOpenPolicy ((null),0x1802d1f40,0x00000001,0xffffc2f8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:netapi32:NetUserGetInfo Level 3 is not implemented
err:seh:setup_exception stack overflow 1840 bytes in thread 0051 eip
000000007bc96ded esp 00000000ffe00ee0 stack
0xffe00000-0xffe01000-0x100000000
Changing gid to Administrators
fixme:ntdll:NtSetInformationToken unimplemented class 5
SetTokenInformation() failed: 1
AddAccessAllowedAceEx(, group) failed: 1337
AddAccessAllowedAceEx(, group) failed: 1337
AddAccessAllowedAceEx(, group) failed: 1337
AddAccessAllowedAceEx(, group) failed: 1337
note: Installation Complete
Ending cygwin install
AddAccessAllowedAceEx(, group) failed: 1337
AddAccessAllowedAceEx(, group) failed: 1337

I even got an Ubuntu crash dialog for that once.  Anyway, setup
finished, so I tried getting a cygwin session:

dank@thinky:~$ wine cmd /c 'c:\cygwin64\cygwin.bat'
fixme:ntdll:NtSetInformationToken unimplemented class 4
fixme:ntdll:NtQueryInformationProcess (process=0xffffffffffffffff)
Unimplemented information class: ProcessSessionInformation
fixme:advapi:LsaOpenPolicy ((null),0x1802d1f40,0x00000001,0xffffc2f8) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:netapi32:NetUserGetInfo Level 3 is not implemented
Cygwin WARNING:
  Couldn't compute FAST_CWD pointer.  This typically occurs if you're using
  an older Cygwin version on a newer Windows.  Please update to the latest
  available Cygwin version from https://cygwin.com/.  If the problem persists,
  please see https://cygwin.com/problems.html

err:seh:setup_exception stack overflow 1840 bytes in thread 0030 eip
000000007bc96ded esp 00000000ffe00ee0 stack
0xffe00000-0xffe01000-0x100000000

Well, shoot.  So I tried again with WINEDEBUG=+relay to get a log of
system calls,
Wading through the noise, I saw two interesting things:

0030:Starting process L"C:\\cygwin64\\bin\\bash.exe" (entryproc=0x100401000)
...
0030:Call KERNEL32.CreateFileW(600008028
L"\\\\.\\pipe\\cygwin-e022582115c10879-lpc",c0000000,00000003,18027c3e0,75646f4d00000003,656c646e00020000,00000000)
ret=18015fa5f
0030:Ret  KERNEL32.CreateFileW() retval=ffffffffffffffff ret=18015fa5f
0030:Call KERNEL32.GetLastError() ret=18015fb05
0030:Ret  KERNEL32.GetLastError() retval=00000002 ret=18015fb05

Gee, I hope Wine's pipes are up to snuff.

And:

0030:Call KERNEL32.GetModuleHandleA(180243568 "ntdll.dll") ret=1800df8dc
0030:Ret  KERNEL32.GetModuleHandleA() retval=7bc20000 ret=1800df8dc
0030:Call KERNEL32.GetProcAddress(7bc20000,180243572
"RtlGetCurrentDirectory_U") ret=1800df8f7
0030:Ret  KERNEL32.GetProcAddress() retval=7bc2e3f4 ret=1800df8f7
0030:Call KERNEL32.GetProcAddress(7bc20000,18024358b
"RtlEnterCriticalSection") ret=1800df909
0030:Ret  KERNEL32.GetProcAddress() retval=7bc49500 ret=1800df909
0030:Call KERNEL32.GetLastError() ret=18011fa9b
0030:Ret  KERNEL32.GetLastError() retval=00000000 ret=18011fa9b
0030:Call KERNEL32.GetStdHandle(fffffff4) ret=1801202d0
0030:Ret  KERNEL32.GetStdHandle() retval=00000008 ret=1801202d0
0030:Call KERNEL32.WriteFile(00000008,ffff8ab0,00000125,ffff8aa4,00000000)
ret=1801202ec
Cygwin WARNING:
  Couldn't compute FAST_CWD pointer.  This typically occurs if you're using
  an older Cygwin version on a newer Windows.  Please update to the latest
  available Cygwin version from https://cygwin.com/.  If the problem persists,
  please see https://cygwin.com/problems.html

Well, that's funny.  RtlGetCurrentDirectory_U is implemented in Wine;
I wonder why Cygwin doesn't like it.  That seems worth investigating.

Gotta go (I have to get some new tires on the car before we head off
on vacation),
but at least that gives you a peek at the state of things.
Maybe somebody else can get further.
- Dan

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple