Skip to content

Unable to make this make in MSYS2 environment. #10

@LunaticLegacy

Description

@LunaticLegacy

The following are the recording of making my own make in Windows.

Leon Greek@LAPTOP-O7KSPF9L MINGW64 /d/CPP_Toolchain/make
$ ls
AUTHORS            NEWS            README.in             bootstrap.bat   doc            prepare_vms.com
Basic.mk.template  README.DOS      README.zOS            bootstrap.conf  gl             scripts
COPYING            README.OS2      TODO.private          build.cfg.in    maintMakefile  src
ChangeLog.1        README.VMS      autogen.sh            build.sh        make-gdb.py    tests
ChangeLog.2        README.W32      autopull.sh           build_w32.bat   makefile.com   vms_export_symbol_test.com
ChangeLog.3        README.customs  bootstrap             builddos.bat    mk
Makefile.am        README.git      bootstrap-funclib.sh  configure.ac    po

Leon Greek@LAPTOP-O7KSPF9L MINGW64 /d/CPP_Toolchain/make
$ ./bootstrap.bat
-- Downloading Gnulib modules
- Downloading lib\getloadavg.c
- Downloading lib\intprops.h
- Downloading lib\intprops-internal.h
-- Configuring the workspace
- Creating Basic.mk
- Creating src\mkconfig.h
- Creating src\gmk-default.h

Done.  Run build_w32.bat to build GNU Make.

Leon Greek@LAPTOP-O7KSPF9L MINGW64 /d/CPP_Toolchain/make
$ ./build_w32.bat

Creating GNU Make for Windows 9X/NT/2K/XP/Vista/7/8/10/11

- Enabling maintainer mode
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.14.18
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.44.35219 版
版权所有(C) Microsoft Corporation。保留所有权利。

用法: cl [ 选项... ] 文件名... [ /link 链接选项... ]

Checking for Guile 2.0
Checking for Guile 1.8
- No Guile found, building without Guile

Compiling .\WinRel version
已复制         1 个文件。
已复制         1 个文件。
已复制         1 个文件。
- Compiling src/ar.c
ar.c
lib\intprops.h(1): error C2059: 语法错误:“<”
src/ar.c(118): warning C4013: “TYPE_MAXIMUM”未定义;假设外部返回 int
src/ar.c(118): error C2275: “time_t”: 应为表达式而不是类型

Leon Greek@LAPTOP-O7KSPF9L MINGW64 /d/CPP_Toolchain/make
$ ^C

Leon Greek@LAPTOP-O7KSPF9L MINGW64 /d/CPP_Toolchain/make
$

Especially for these, after - Compiling src/ar.c was displayed.

lib\intprops.h(1): error C2059: 语法错误:“<”
src/ar.c(118): warning C4013: “TYPE_MAXIMUM”未定义;假设外部返回 int
src/ar.c(118): error C2275: “time_t”: 应为表达式而不是类型

Which meant (in English):

lib\intprops.h(1): error C2059: syntax error: '<'
src/ar.c(118): warning C4013: 'TYPE_MAXIMUM' undefined; assuming extern returning int
src/ar.c(118): error C2275: 'time_t': illegal use of type as expression

I tried to run the script bootstarp.bat, and what happened?! File intprops.h only shows me the following:

<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

What?! A HTML file instead of C file!

Oh my gosh... Somebody help me to make make!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions