Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local stuff for 64 Bit GCC plugin support etcetc #19

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RosBE-Windows/Buildtoolchain/buildtoolchain-mingw32-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export MSYS=winsymlinks:nativestrict

# RosBE Setup Variables
rs_host_cc="gcc"
rs_host_cflags="-pipe -O2 -g0 -march=core2"
rs_host_cflags="-pipe -O2 -g0 -march=nocona"
rs_host_cxx="g++"
rs_host_cxxflags="$rs_host_cflags"
rs_needed_tools="as bzip2 find $CC $CXX grep help2man m4 makeinfo python tar" # GNU Make has a special check
Expand Down Expand Up @@ -196,7 +196,7 @@ if rs_prepare_module "gcc"; then
export CFLAGS_FOR_TARGET="$rs_target_cflags"
export CXXFLAGS_FOR_TARGET="$rs_target_cxxflags"

rs_do_command ../gcc/configure --prefix="$rs_archprefixdir" --target="$rs_target" --with-sysroot="$rs_archprefixdir" --with-pkgversion="RosBE-Windows" --enable-languages=c,c++ --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-shared --disable-multilib --disable-nls --disable-werror --disable-win32-registry --enable-sjlj-exceptions --disable-libstdcxx-verbose
rs_do_command ../gcc/configure --prefix="$rs_archprefixdir" --target="$rs_target" --with-sysroot="$rs_archprefixdir" --with-pkgversion="RosBE-Windows" --enable-languages=c,c++ --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-shared --disable-multilib --disable-nls --disable-werror --disable-win32-registry --enable-sjlj-exceptions --disable-libstdcxx-verbose --enable-plugin
rs_do_command $rs_makecmd -j $rs_cpucount all-gcc
rs_do_command $rs_makecmd install-gcc
rs_do_command $rs_makecmd install-lto-plugin
Expand Down
13 changes: 10 additions & 3 deletions RosBE-Windows/Buildtoolchain/buildtoolchain-mingw32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export MSYS=winsymlinks:nativestrict

# RosBE Setup Variables
rs_host_cc="gcc"
rs_host_cflags="-pipe -O2 -g0 -march=core2"
rs_host_cflags="-pipe -O2 -g0 -march=nocona"
rs_host_cxx="g++"
rs_host_cxxflags="$rs_host_cflags"
rs_needed_tools="as bzip2 find $CC $CXX grep help2man m4 makeinfo python tar" # GNU Make has a special check
Expand All @@ -71,7 +71,7 @@ rs_scriptdir="$PWD"
# Use the GCC with POSIX Thread Model! CMake uses C++11 threads, which are not supported in GCC's Win32 Thread Model (yet).
HOST_GCC_VERSION="gcc version 8.1.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project)"

MODULES="bison cmake binutils mingw_w64 gcc ninja"
MODULES="bison cmake binutils mingw_w64 gmp gcc ninja"

source "$rs_scriptdir/scripts/setuplibrary.sh"

Expand Down Expand Up @@ -222,6 +222,13 @@ if rs_prepare_module "mingw_w64"; then
rs_clean_module "mingw_w64"
fi

if rs_prepare_module "gmp"; then
rs_do_command ../gmp/configure --prefix="$rs_archprefixdir/$rs_target" --host="$rs_target" --build="$rs_target"
rs_do_command $rs_makecmd -j $rs_cpucount
rs_do_command $rs_makecmd install
rs_clean_module "gmp"
fi

if rs_prepare_module "gcc"; then
rs_extract_module gmp $PWD/../gcc
rs_extract_module mpc $PWD/../gcc
Expand All @@ -232,7 +239,7 @@ if rs_prepare_module "gcc"; then
export CFLAGS_FOR_TARGET="$rs_target_cflags"
export CXXFLAGS_FOR_TARGET="$rs_target_cxxflags"

rs_do_command ../gcc/configure --prefix="$rs_archprefixdir" --host="$rs_target" --build="$rs_target" --target="$rs_target" --with-sysroot="$rs_archprefixdir" --with-pkgversion="RosBE-Windows" --enable-languages=c,c++ --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-shared --disable-multilib --disable-nls --disable-werror --disable-win32-registry --enable-sjlj-exceptions --disable-libstdcxx-verbose
rs_do_command ../gcc/configure --prefix="$rs_archprefixdir" --host="$rs_target" --build="$rs_target" --target="$rs_target" --with-sysroot="$rs_archprefixdir" --with-pkgversion="RosBE-Windows" --enable-languages=c,c++ --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-shared --disable-multilib --disable-nls --disable-werror --disable-win32-registry --enable-sjlj-exceptions --disable-libstdcxx-verbose --enable-plugin
rs_do_command $rs_makecmd -j $rs_cpucount all-gcc
rs_do_command $rs_makecmd install-gcc
rs_do_command $rs_makecmd install-lto-plugin
Expand Down
2 changes: 1 addition & 1 deletion RosBE-Windows/Powershell/RosBE.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $global:BUILD_ENVIRONMENT = "MinGW"
$global:0 = $myInvocation.MyCommand.Definition
$global:_ROSBE_BASEDIR = [System.IO.Path]::GetDirectoryName($0)
$global:_ROSBE_PREFIX = $null
$global:_ROSBE_VERSION = "2.2.1"
$global:_ROSBE_VERSION = "2.3.0"
$global:_ROSBE_ROSSOURCEDIR = "$pwd"
$global:_ROSBE_SHOWTIME = 1
$global:_ROSBE_WRITELOG = 1
Expand Down
10 changes: 10 additions & 0 deletions RosBE-Windows/Root/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
*** Jun xxth, 2021 - RosBE 2.3.0 Released
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2021?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now you know how long this stuff way rotting already. Will be fixed later.


- Readded forgotten 7z.dll to setup. Fixes ROSBE-171 (Daniel Reimer)
- Fixed build problems of some testers by going from "core2" cpu optimize to "nocona" optimize. (Daniel Reimer)
- Added GMP as separate libs to RosBE's compiler suite. (Daniel Reimer)
- Added Windows experimental plugin support to RosBE's compiler suite.
Needed for Jérôme Gardou's x64 PSEH plugin support. (Daniel Reimer)

Needed patches for GCC, binutils and ninja can be found here: https://www.dreimer.de/?p=1582

*** Jun 05th, 2020 - RosBE 2.2.1 Released

- Updated CMake to 3.17.2-ReactOS (Colin Finck)
Expand Down
2 changes: 1 addition & 1 deletion RosBE-Windows/Root/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ReactOS Build Environment v2.2.1
ReactOS Build Environment v2.3.0

Various parts of the ReactOS Build Environment are under different license's, the license's are as follows.
(The complete text for each license is included in this document excluding Subversion)
Expand Down
Binary file modified RosBE-Windows/Root/README.odt
Binary file not shown.
Binary file modified RosBE-Windows/Root/README.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion RosBE-Windows/Root/RosBE.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if defined _ROSBE_CMAKE_DIFF (
set BUILD_ENVIRONMENT=MinGW
set _ROSBE_BASEDIR=%~dp0
set _ROSBE_BASEDIR=%_ROSBE_BASEDIR:~0,-1%
set _ROSBE_VERSION=2.2.1
set _ROSBE_VERSION=2.3.0
set _ROSBE_ROSSOURCEDIR=%CD%
set _ROSBE_SHOWTIME=1
set _ROSBE_WRITELOG=1
Expand Down
7 changes: 4 additions & 3 deletions RosBE-Windows/RosBE.nsi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Unicode true
!define PRODUCT_NAME "ReactOS Build Environment"
!define PRODUCT_VERSION "2.2.1"
!define PRODUCT_VERSION "2.3.0"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\RosBE.cmd"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKCU"
Expand All @@ -18,15 +18,15 @@ ShowUnInstDetails show
;;
;; Add version/product information metadata to the installation file.
;;
VIAddVersionKey /LANG=1033 "FileVersion" "2.2.1.0"
VIAddVersionKey /LANG=1033 "FileVersion" "2.3.0.0"
VIAddVersionKey /LANG=1033 "ProductVersion" "${PRODUCT_VERSION}"
VIAddVersionKey /LANG=1033 "ProductName" "${PRODUCT_NAME}"
VIAddVersionKey /LANG=1033 "Comments" "This installer was written by Peter Ward and Daniel Reimer using Nullsoft Scriptable Install System"
VIAddVersionKey /LANG=1033 "CompanyName" "ReactOS Foundation"
VIAddVersionKey /LANG=1033 "LegalTrademarks" "Copyright © 2020 ReactOS Foundation"
VIAddVersionKey /LANG=1033 "LegalCopyright" "Copyright © 2020 ReactOS Foundation"
VIAddVersionKey /LANG=1033 "FileDescription" "${PRODUCT_NAME} Setup"
VIProductVersion "2.2.1.0"
VIProductVersion "2.3.0.0"

CRCCheck force
SetDatablockOptimize on
Expand Down Expand Up @@ -152,6 +152,7 @@ Section -BaseFiles SEC01
SetOutPath "$INSTDIR\bin"
SetOverwrite try
File /r Components\bin\7z.exe
File /r Components\bin\7z.dll
File /r Components\bin\bison.exe
File /r Components\bin\buildtime.exe
File /r Components\bin\ccache.exe
Expand Down
12 changes: 6 additions & 6 deletions RosBE-Windows/Tools/config/x86/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ getConfigFileCMD()
}
else
{
if ((wcslen(filename) + wcslen(L"\\RosBE\\rosbe-options-2.2.1.cmd")) < MAX_PATH)
if ((wcslen(filename) + wcslen(L"\\RosBE\\rosbe-options-2.3.0.cmd")) < MAX_PATH)
{
wcscat(filename, L"\\RosBE\\rosbe-options-2.2.1.cmd");
wcscat(filename, L"\\RosBE\\rosbe-options-2.3.0.cmd");
}
}
}
Expand All @@ -80,7 +80,7 @@ getConfigFileCMD()
}
else
{
wcscpy(filename, L"rosbe-options-2.2.1.cmd");
wcscpy(filename, L"rosbe-options-2.3.0.cmd");
}
}
return filename;
Expand Down Expand Up @@ -110,9 +110,9 @@ getConfigFilePS1()
}
else
{
if ((wcslen(filename) + wcslen(L"\\RosBE\\rosbe-options-2.2.1.ps1")) < MAX_PATH)
if ((wcslen(filename) + wcslen(L"\\RosBE\\rosbe-options-2.3.0.ps1")) < MAX_PATH)
{
wcscat(filename, L"\\RosBE\\rosbe-options-2.2.1.ps1");
wcscat(filename, L"\\RosBE\\rosbe-options-2.3.0.ps1");
}
}
}
Expand All @@ -128,7 +128,7 @@ getConfigFilePS1()
}
else
{
wcscpy(filename, L"rosbe-options-2.2.1.ps1");
wcscpy(filename, L"rosbe-options-2.3.0.ps1");
}
}
return filename;
Expand Down
2 changes: 1 addition & 1 deletion RosBE-Windows/Tools/config/x86/options.exe.Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<assemblyIdentity
name="ReactOS.options"
processorArchitecture="x86"
version="2.2.1.0"
version="2.3.0.0"
type="win32"/>
<description>Config Tool</description>
<dependency>
Expand Down
8 changes: 4 additions & 4 deletions RosBE-Windows/Tools/config/x86/options.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ID_OPTICON ICON "options.ico"
1 24 "options.exe.Manifest"

VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,2,1,0
PRODUCTVERSION 2,2,1,0
FILEVERSION 2,3,0,0
PRODUCTVERSION 2,3,0,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -24,12 +24,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Marteen Bosma / Daniel Reimer / Pierre Schweitzer\0"
VALUE "FileDescription", "Config Tool for RosBE\0"
VALUE "FileVersion", "2.2.1.0\0"
VALUE "FileVersion", "2.3.0.0\0"
VALUE "InternalName", "options\0"
VALUE "LegalCopyright", "Copyright © Marteen Bosma / Daniel Reimer / Pierre Schweitzer 2020\0"
VALUE "OriginalFilename", "options.exe\0"
VALUE "ProductName", "Config Tool for RosBE\0"
VALUE "ProductVersion", "2.2.1.0\0"
VALUE "ProductVersion", "2.3.0.0\0"
END
END
BLOCK "VarFileInfo"
Expand Down