bugGNUstep - Bugs: bug #58172, Precompiled header test broken...

Group
 
 

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

Submitter:  Yavor Doganov <yavor>
Submitted:  Tue 14 Apr 2020 11:17:13 AM UTC
   
 
Category:  Makefiles Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  FredKiefer
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Jun 2020 05:02:21 PM UTC, comment #2: 

Thanks.  It looks like this is a Debian-specific modification to GCC; sorry for the misleading information.

Yavor Doganov <yavor>
Sat 09 May 2020 05:05:51 PM UTC, comment #1: 

I committed your patch although it did not make any difference for me with gcc 9.3.1.

Fred Kiefer <FredKiefer>
Group Member
Tue 14 Apr 2020 11:17:13 AM UTC, original submission:  

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.

Yavor Doganov <yavor>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by yavor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-09 FredKiefer StatusNone Fixed
        Assigned toNone FredKiefer
        Open/ClosedOpen Closed
    2020-04-14 yavor Attached File- Added 0001-Amend-precompiled-header-test-so-that-it-works-with-.patch, #48832

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code