From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#37852: Build failure on MSYS2 (undefined reference to _chk functions) Date: Mon, 21 Oct 2019 13:28:29 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d2476a05956ad380" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147450"; mail-complaints-to="usenet@blaine.gmane.org" To: 37852@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 21 14:30:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iMWpZ-000cDT-KV for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 14:30:37 +0200 Original-Received: from localhost ([::1]:40122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMWpY-00057Y-5e for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Oct 2019 08:30:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57728) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMWp8-00051A-0C for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMWp3-0006WO-0I for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:30:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMWp2-0006WF-TB for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMWp2-0002Hn-LH for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:30:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2019 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37852 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15716609448638 (code B ref -1); Mon, 21 Oct 2019 12:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Oct 2019 12:29:04 +0000 Original-Received: from localhost ([127.0.0.1]:55886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMWo3-0002FF-MH for submit@debbugs.gnu.org; Mon, 21 Oct 2019 08:29:04 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMWo1-0002Eo-4i for submit@debbugs.gnu.org; Mon, 21 Oct 2019 08:29:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57603) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMWnz-0004Xi-In for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:29:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMWny-0005s0-1t for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:28:59 -0400 Original-Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:34657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMWnx-0005qU-SZ for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2019 08:28:57 -0400 Original-Received: by mail-oi1-x231.google.com with SMTP id 83so10879991oii.1 for ; Mon, 21 Oct 2019 05:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/tQVkgPB1L58aUch6LkcHi9mUMsh5If58jtev3topL0=; b=HxOKsgz5ZqD/7ifedJTt2q/raq2u6zPuoN3r5kHPKeYgj/D61WG7qBFwyOH0SUmEOE gePqQ2wcY60SAW117SO/sfY2h+NsixfsFs6pqT1k1IS57NNDjEy0F6SbnLIX/odZSAng DGs6RktTvklnG8bJvcu929Ca4Iv5i3fQRsyHcYJbtRcPKEf0fc7Ts04+8rTtFCALnKeV 87TU4DcdL4PDvHL4WFdX9A1Zcl45Z0WX5PTiwmnH8/+EJKjQ1JGnGyaZL92nUMtWh7VB EQDwgjJSrLdhLF1yft8QlBiofI2h7fHcSY9VglrZNMtO5fsKwvPcS/Df/VJ477mXByHu qJcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/tQVkgPB1L58aUch6LkcHi9mUMsh5If58jtev3topL0=; b=gFYygqmCsR3xq5OmMzoLXtTkvNfdNR1jwPN+rVyGIWpJaoEwOWeAmA5hbXur/+KyUA GzjukRS1iF9zjwb4SKq0beW8O/9KooVuNbOokhWm/1th14g9pvsfI+Su82GXYwOZYf/N 7tkuXPI+UlMNAtJVPVVnDuEw/9UxpL1mse/ya/snnZQPtjMeGkaJLgIWPmHKzCC7xhMt 6bFOeOMpdOLIpcwXCVld5oSOenN88YWX8UZYIlRx9ZWiXNYMyCSKuXqfOpd3skp7g16y Yyf/ROlmnjjE2KRLx9XZe15DE7gl6xaC8vAQgIvjL8owUP4kuXFSTkhPIebtVW2RF8Ue aaHg== X-Gm-Message-State: APjAAAXIN7ubxvX7e0lrnLYg95O+60CtQ3+KFe8QKxOoi8/QNaMgYKyg FpO5DvXC8iGYgkwYGTjjXAQh5k4uWUAxSOr50LuMssPwoqo= X-Google-Smtp-Source: APXvYqxxBApqW0BA3/9B1Wbv3BiY1d6FCqJdqldEqxhPsKugkOZCxF0S9H1jFgLWguCG4udnCi0FxwmJCJUIU90xCJc= X-Received: by 2002:aca:df84:: with SMTP id w126mr19347883oig.79.1571660936397; Mon, 21 Oct 2019 05:28:56 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169904 Archived-At: --000000000000d2476a05956ad380 Content-Type: text/plain; charset="UTF-8" Linking auxiliary executables fails with undefined references to (FORTIFY_SOURCE?) functions __memcpy_chk and __memmove_chk. This is apparently caused by some change in MSYS2, because previously buildable commits now fail. Transcript below. + make V=1 -k make -C nt all make[1]: Entering directory '/c/projects/emacs/nt' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/c/projects/emacs/nt' make -C lib all make[1]: Entering directory '/c/projects/emacs/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/c/projects/emacs/lib' make -C lib-src all make[1]: Entering directory '/c/projects/emacs/lib-src' gcc -mtune=generic -fno-common -W[...] -I. -I../src -I../lib -I. -I./../src -I./../lib -mtune=generic -DUSE_CRT_DLL=1 -I /c/projects/emacs/nt/inc -O2 emacsclient.c \ ntlib.o ../lib/libgnu.a \ -lwsock32 -lcomctl32 -o emacsclient.exe C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\buster\AppData\Local\Temp\ccVJXdYZ.o:emacsclient.c:(.text+0xb4d): undefined reference to `__memmove_chk' collect2.exe: error: ld returned 1 exit status make[1]: *** [Makefile:395: emacsclient.exe] Error 1 gcc -mtune=generic -fno-common -W[...] -I. -I../src -I../lib -I. -I./../src -I./../lib -mtune=generic -DUSE_CRT_DLL=1 -I /c/projects/emacs/nt/inc -O2 emacsclient.res -mwindows emacsclient.c \ ../lib/libgnu.a \ -lwsock32 -lcomctl32 -o emacsclientw.exe C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\buster\AppData\Local\Temp\ccSZs6xf.o:emacsclient.c:(.text+0xb4d): undefined reference to `__memmove_chk' collect2.exe: error: ld returned 1 exit status make[1]: *** [Makefile:400: emacsclientw.exe] Error 1 gcc -mtune=generic -fno-common -W[...] -I. -I../src -I../lib -I. -I./../src -I./../lib -mtune=generic -DUSE_CRT_DLL=1 -I /c/projects/emacs/nt/inc -O2 make-docfile.c ntlib.o ../lib/libgnu.a -o make-docfile.exe C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\buster\AppData\Local\Temp\ccHhbMkg.o:make-docfile.c:(.text+0x166a): undefined reference to `__memcpy_chk' collect2.exe: error: ld returned 1 exit status make[1]: *** [Makefile:382: make-docfile.exe] Error 1 make[1]: Target 'all' not remade because of errors. make[1]: Leaving directory '/c/projects/emacs/lib-src' make: *** [Makefile:411: lib-src] Error 2 make info-real info-dir make[1]: Entering directory '/c/projects/emacs' make -C doc/lispref info make[2]: Entering directory '/c/projects/emacs/doc/lispref' make[2]: Nothing to be done for 'info'. make[2]: Leaving directory '/c/projects/emacs/doc/lispref' make -C doc/lispintro info make[2]: Entering directory '/c/projects/emacs/doc/lispintro' make[2]: Nothing to be done for 'info'. make[2]: Leaving directory '/c/projects/emacs/doc/lispintro' make -C doc/emacs info make[2]: Entering directory '/c/projects/emacs/doc/emacs' make[2]: Nothing to be done for 'info'. make[2]: Leaving directory '/c/projects/emacs/doc/emacs' make -C doc/misc info make[2]: Entering directory '/c/projects/emacs/doc/misc' make[2]: Nothing to be done for 'info'. make[2]: Leaving directory '/c/projects/emacs/doc/misc' make[1]: Nothing to be done for 'info-dir'. make[1]: Leaving directory '/c/projects/emacs' make: Target 'all' not remade because of errors. --000000000000d2476a05956ad380 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Linking auxiliary executables fails with undefined r= eferences to (FORTIFY_SOURCE?) functions=C2=A0 __memcpy_chk and __memmove_c= hk.=20 This is apparently caused by some change in MSYS2, because previously build= able commits now fail. Transcript below.

+ make V= =3D1 -k
make -C nt all
make[1]: Entering directory '/c/projects/e= macs/nt'
make[1]: Nothing to be done for 'all'.
make[1]: = Leaving directory '/c/projects/emacs/nt'
make -C lib all
make= [1]: Entering directory '/c/projects/emacs/lib'
make[1]: Nothing= to be done for 'all'.
make[1]: Leaving directory '/c/projec= ts/emacs/lib'
make -C lib-src all
make[1]: Entering directory = 9;/c/projects/emacs/lib-src'
gcc =C2=A0-mtune=3Dgeneric =C2=A0-fno-c= ommon -W[...] =C2=A0-I. -I../src -I../lib -I. -I./../src -I./../lib =C2=A0 = -mtune=3Dgeneric =C2=A0 -DUSE_CRT_DLL=3D1 -I /c/projects/emacs/nt/inc -O2 e= macsclient.c \
=C2=A0 =C2=A0ntlib.o ../lib/libgnu.a =C2=A0\
=C2=A0 = =C2=A0-lwsock32 =C2=A0-lcomctl32 -o emacsclient.exe
C:/msys64/mingw64/bi= n/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld= .exe: C:\Users\buster\AppData\Local\Temp\ccVJXdYZ.o:emacsclient.c:(.text+0x= b4d): undefined reference to `__memmove_chk'
collect2.exe: error: ld= returned 1 exit status
make[1]: *** [Makefile:395: emacsclient.exe] Err= or 1
gcc =C2=A0-mtune=3Dgeneric =C2=A0-fno-common -W[...] =C2=A0-I. -I..= /src -I../lib -I. -I./../src -I./../lib =C2=A0 -mtune=3Dgeneric =C2=A0 -DUS= E_CRT_DLL=3D1 -I /c/projects/emacs/nt/inc -O2 emacsclient.res -mwindows ema= csclient.c \
=C2=A0 =C2=A0../lib/libgnu.a =C2=A0\
=C2=A0 =C2=A0-lwsoc= k32 =C2=A0-lcomctl32 -o emacsclientw.exe
C:/msys64/mingw64/bin/../lib/gc= c/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Us= ers\buster\AppData\Local\Temp\ccSZs6xf.o:emacsclient.c:(.text+0xb4d): undef= ined reference to `__memmove_chk'
collect2.exe: error: ld returned 1= exit status
make[1]: *** [Makefile:400: emacsclientw.exe] Error 1
gc= c =C2=A0-mtune=3Dgeneric =C2=A0-fno-common -W[...] =C2=A0-I. -I../src -I../= lib -I. -I./../src -I./../lib =C2=A0 -mtune=3Dgeneric =C2=A0 -DUSE_CRT_DLL= =3D1 -I /c/projects/emacs/nt/inc -O2 make-docfile.c ntlib.o ../lib/libgnu.a= =C2=A0-o make-docfile.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-m= ingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\buster\App= Data\Local\Temp\ccHhbMkg.o:make-docfile.c:(.text+0x166a): undefined referen= ce to `__memcpy_chk'
collect2.exe: error: ld returned 1 exit status<= br>make[1]: *** [Makefile:382: make-docfile.exe] Error 1
make[1]: Target= 'all' not remade because of errors.
make[1]: Leaving directory = '/c/projects/emacs/lib-src'
make: *** [Makefile:411: lib-src] Er= ror 2
make info-real info-dir
make[1]: Entering directory '/c/pro= jects/emacs'
make -C doc/lispref info
make[2]: Entering directory= '/c/projects/emacs/doc/lispref'
make[2]: Nothing to be done for= 'info'.
make[2]: Leaving directory '/c/projects/emacs/doc/l= ispref'
make -C doc/lispintro info
make[2]: Entering directory &#= 39;/c/projects/emacs/doc/lispintro'
make[2]: Nothing to be done for = 'info'.
make[2]: Leaving directory '/c/projects/emacs/doc/li= spintro'
make -C doc/emacs info
make[2]: Entering directory '= /c/projects/emacs/doc/emacs'
make[2]: Nothing to be done for 'in= fo'.
make[2]: Leaving directory '/c/projects/emacs/doc/emacs'= ;
make -C doc/misc info
make[2]: Entering directory '/c/projects/= emacs/doc/misc'
make[2]: Nothing to be done for 'info'.
m= ake[2]: Leaving directory '/c/projects/emacs/doc/misc'
make[1]: = Nothing to be done for 'info-dir'.
make[1]: Leaving directory &#= 39;/c/projects/emacs'
make: Target 'all' not remade bec= ause of errors.

--000000000000d2476a05956ad380--