Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.gnustep.bug > #4369

[bug #58172] Precompiled header test broken with GCC >= 9

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Yavor Doganov <INVALID.NOREPLY@gnu.org>
Newsgroups gnu.gnustep.bug
Subject [bug #58172] Precompiled header test broken with GCC >= 9
Date Tue, 14 Apr 2020 07:17:15 -0400 (EDT)
Lines 65
Approved bug-gnustep@gnu.org
Message-ID <mailman.236.1586863040.3066.bug-gnustep@gnu.org> (permalink)
References <20200414-141713.sv47215.43154@savannah.gnu.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain;charset=UTF-8
X-Trace usenet.stanford.edu 1586863041 19090 209.51.188.17 (14 Apr 2020 11:17:21 GMT)
X-Complaints-To action@cs.stanford.edu
To Yavor Doganov <yavor@gnu.org>, bug-gnustep@gnu.org
Envelope-to bug-gnustep@gnu.org
X-PHP-Originating-Script 1001:sendmail.php
X-Savane-Server savannah.gnu.org:443 [209.51.188.72]
X-Savane-Project gnustep
X-Savane-Tracker bugs
X-Savane-Item-ID 58172
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
X-Apparently-From 46.10.101.102 (Savane authenticated user yavor)
In-Reply-To
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 209.51.188.72
X-BeenThere bug-gnustep@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNUstep programming environment <bug-gnustep.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-gnustep>
List-Post <mailto:bug-gnustep@gnu.org>
List-Help <mailto:bug-gnustep-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-gnustep>, <mailto:bug-gnustep-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200414-141713.sv47215.43154@savannah.gnu.org>
Xref csiph.com gnu.gnustep.bug:4369

Show key headers only | View raw


URL:
  <https://savannah.gnu.org/bugs/?58172>

                 Summary: Precompiled header test broken with GCC >= 9
                 Project: GNUstep
            Submitted by: yavor
            Submitted on: Tue 14 Apr 2020 02:17:13 PM EEST
                Category: Makefiles
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The script config-precomp-test/run-test.sh puts $LIBS before the program which
makes it fail with GCC 9 or later (where -Wl,--as-needed is implied):


$ LC_ALL=C gcc-8 -lobjc config-precomp-test.m
$ LC_ALL=C gcc-9 -lobjc config-precomp-test.m
/usr/bin/ld: /tmp/cczUhnH0.o: in function `main':
config-precomp-test.m:(.text+0x24): undefined reference to `objc_get_class'
/usr/bin/ld: config-precomp-test.m:(.text+0x36): undefined reference to
`objc_msg_lookup'
/usr/bin/ld: /tmp/cczUhnH0.o: in function `__objc_gnu_init':
config-precomp-test.m:(.text+0x59): undefined reference to
`__objc_exec_class'
collect2: error: ld returned 1 exit status
$ LC_ALL=C gcc-9 config-precomp-test.m -lobjc
$


Patch attached.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 14 Apr 2020 02:17:13 PM EEST  Name:
0001-Amend-precompiled-header-test-so-that-it-works-with-.patch  Size: 3KiB  
By: yavor

<http://savannah.gnu.org/bugs/download.php?file_id=48832>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58172>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/

Back to gnu.gnustep.bug | Previous | Next | Find similar


Thread

[bug #58172] Precompiled header test broken with GCC >= 9 Yavor Doganov <INVALID.NOREPLY@gnu.org> - 2020-04-14 07:17 -0400

csiph-web