From: Alexander Lakhin <exclusion@gmail.com>
To: Yannick Collette <yannickcollette@gmail.com>
Cc: mats.stenfeldt@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
Date: Wed, 10 Mar 2021 11:01:00 +0300
Message-ID: <b0b86279-d0fc-84a1-4521-3081069f1e84@gmail.com> (raw)
In-Reply-To: <CADTm7M-KMXiX_mW9-MZGvG7Ap-Pu3as3hiGtnWYNKTvEk5FPcA@mail.gmail.com>
References: <16774-5fc947628f64c057@postgresql.org>
<f12f0cba-f174-34e7-633b-793da6376a33@gmail.com>
<CADTm7M-KMXiX_mW9-MZGvG7Ap-Pu3as3hiGtnWYNKTvEk5FPcA@mail.gmail.com>
Hello Yannick,
08.03.2021 19:54, Yannick Collette wrote:
>
>
> Hello,
>
> I have the exact same problem with source code 11.11 using the
> following configuration. No errors at compilation. Tried your work
> around and still having same problem.
>
Please try the attached script. If it doesn't work for you, please
specify which Windows version you are using and I'll try to reproduce
your problem on my side. (Your complete script would be useful too.)
Best regards,
Alexander
Attachments:make_check11.txt (text/plain, 2.0K) download
SET bitness=64& SET platform=x86_64
SET MD=c:\test\msys64
cd /D c:\
mkdir %MD%
mkdir %MD%\var\src
@REM Prepare 7-zip for expanding msys
powershell -Command "((new-object net.webclient).DownloadFile('https://www.7-zip.org/a/7za920.zip', '%TEMP%\7z.zip'))"
powershell -Command "$shell = New-Object -ComObject Shell.Application; $zip_src = $shell.NameSpace('%TEMP%\7z.zip'); $zip_dest = $shell.NameSpace('%TEMP%'); $zip_dest.CopyHere($zip_src.Items(), 1044)"
@REM Download and extract msys
powershell -Command "((new-object net.webclient).DownloadFile('http://repo.msys2.org/distrib/msys2-%platform%-latest.tar.xz', '%TEMP%\msys.tar.xz'))"
%TEMP%\7za.exe x %TEMP%\msys.tar.xz -so | %TEMP%\7za.exe x -oc:\test\ -aoa -si -ttar >%TEMP%/7z-msys.log
@REM Output bash script contained in this CMD
@for /f "delims=:" %%a in ('findstr -n "^___" %0') do @set "DELIMLINE=%%a"
@for /f "skip=%DELIMLINE% tokens=* eol=_" %%a in ('type %0') do @echo %%a>> %MD%\var\src\make_check.sh
@REM First run is performed to setup the environment
%MD%\usr\bin\bash --login -i -c exit >%TEMP%\msys-setup.log 2>&1
%MD%\usr\bin\bash --login -i -c ^" ^
pacman --noconfirm -Sy ^" >>%TEMP%\msys-update.log 2>&1
%MD%\usr\bin\bash --login -i /var/src/make_check.sh
SET LEVEL=%ERRORLEVEL%
exit /b %LEVEL%
___BASH_SCRIPT___
set -e
echo "`date -Iseconds`: Starting shell... ";
pacman --noconfirm -S tar make diffutils patch perl git flex bison mingw-w64-x86_64-libxml2 mingw-w64-x86_64-openssl mingw-w64-x86_64-gcc
export PATH="/mingw64/bin:/usr/bin/core_perl:$PATH"
cd /var/src
git clone https://git.postgresql.org/git/postgresql.git
cd postgresql
git checkout REL_11_STABLE
gcc --version
CFLAGS="-D WINVER=0x0600 -D _WIN32_WINNT=0x0600" LIBS="-ladvapi32" ./configure --host=x86_64-w64-mingw32 --without-zlib --with-openssl --with-libxml --prefix=/c/postgresql/pg11/ >configure.log
make -j4 >make.log
make install >install.log
# make check
/c/postgresql/pg11/bin/initdb.exe -D /c/postgresql/db
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: exclusion@gmail.com, yannickcollette@gmail.com, mats.stenfeldt@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
In-Reply-To: <b0b86279-d0fc-84a1-4521-3081069f1e84@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox