bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Yavor Doganov
Subject: [bug #58172] Precompiled header test broken with GCC >= 9
Date: Tue, 14 Apr 2020 07:17:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]