[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/30171] New: Building gold fails under MinGW-W64/MSYS2 on Windo
From: |
jdx at o2 dot pl |
Subject: |
[Bug gold/30171] New: Building gold fails under MinGW-W64/MSYS2 on Windows 10 |
Date: |
Sat, 25 Feb 2023 17:24:46 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30171
Bug ID: 30171
Summary: Building gold fails under MinGW-W64/MSYS2 on Windows
10
Product: binutils
Version: 2.41 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: jdx at o2 dot pl
CC: ian at airs dot com
Target Milestone: ---
Host: x86_64-w64-mingw32
I got the following error when I tried to build master (95ebc6fd):
make[4]: Entering directory '/d/Works/xcomp/binutils-build/gold'
CXX archive.o
CXX attributes.o
CXX binary.o
CXX common.o
CXX compressed_output.o
CXX copy-relocs.o
CXX cref.o
CXX defstd.o
CXX descriptors.o
CXX dirsearch.o
CXX dynobj.o
CXX dwarf_reader.o
CXX ehframe.o
CXX errors.o
YACC yyscript.c
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y:45.1-12:
warning: POSIX Yacc does not support %pure-parser [-Wyacc]
45 | %pure-parser
| ^~~~~~~~~~~~
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y:45.1-12:
warning: deprecated directive: ‘%pure-parser’, use ‘%define api.pure’
[-Wdeprecated]
45 | %pure-parser
| ^~~~~~~~~~~~
| %define api.pure
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y:52.1-14:
warning: POSIX Yacc does not support %error-verbose [-Wyacc]
52 | %error-verbose
| ^~~~~~~~~~~~~~
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y:52.1-14:
warning: deprecated directive: ‘%error-verbose’, use ‘%define parse.error
verbose’ [-Wdeprecated]
52 | %error-verbose
| ^~~~~~~~~~~~~~
| %define parse.error verbose
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y: warning:
6 shift/reduce conflicts [-Wconflicts-sr]
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y: warning:
1 reduce/reduce conflict [-Wconflicts-rr]
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y: note:
rerun with option '-Wcounterexamples' to generate conflict counterexamples
/d/Works/xcomp/binutils-build/gold/../../../binutils/gold/yyscript.y: warning:
fix-its can be applied. Rerun with option '--update'. [-Wother]
updating yyscript.h
CXX expression.o
CXX fileread.o
CXX gc.o
CXX gdb-index.o
CXX gold.o
CXX gold-threads.o
CXX icf.o
CXX incremental.o
CXX int_encoding.o
CXX layout.o
../../../binutils/gold/layout.cc: In member function 'void
gold::Layout::create_build_id()':
../../../binutils/gold/layout.cc:3474:38: error: cast between incompatible
function types from 'FARPROC' {aka 'long long int (*)()'} to 'UuidCreateFn'
{aka 'long int (*)(GUID*)'} [-Werror=cast-function-type]
3474 | UuidCreateFn uuid_create = reinterpret_cast<UuidCreateFn>(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3475 | GetProcAddress(rpc_library, "UuidCreate"));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus.exe: all warnings being treated as errors
make[4]: *** [Makefile:1144: layout.o] Error 1
make[4]: Leaving directory '/d/Works/xcomp/binutils-build/gold'
make[3]: *** [Makefile:1167: all-recursive] Error 1
make[3]: Leaving directory '/d/Works/xcomp/binutils-build/gold'
make[2]: *** [Makefile:907: all] Error 2
make[2]: Leaving directory '/d/Works/xcomp/binutils-build/gold'
make[1]: *** [Makefile:6898: all-gold] Error 2
make[1]: Leaving directory '/d/Works/xcomp/binutils-build'
make: *** [Makefile:1017: all] Error 2
Tested for arm-eabi and mips-elf. Binutils 2.40 is built without problems.
Configuration command:
../../binutils/configure --prefix=/ --target=arm-eabi --disable-nls
--enable-gold --enable-gprofng --enable-lto --disable-shared --enable-static
--disable-threads --with-system-zlib --with-pkgversion='GNU Toolchain for the
ARM Architecture [Built by jdx]'
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/30171] New: Building gold fails under MinGW-W64/MSYS2 on Windows 10,
jdx at o2 dot pl <=