Project

General

Profile

Actions

Bug #13635

closed

libast does not link with gcc4

Added by Andy Fiddaman 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

If gate is built using gcc4 as the primary compiler, libast does not link.

Undefined                       first referenced
 symbol                             in file
__sync_fetch_and_add_1              pics/aso/aso.o
__sync_fetch_and_add_2              pics/aso/aso.o
__sync_fetch_and_add_4              pics/aso/aso.o
__sync_fetch_and_add_8              pics/aso/aso.o
__sync_fetch_and_sub_1              pics/aso/aso.o
__sync_fetch_and_sub_2              pics/aso/aso.o
__sync_fetch_and_sub_4              pics/aso/aso.o
__sync_fetch_and_sub_8              pics/aso/aso.o
__sync_val_compare_and_swap_1       pics/aso/aso.o
__sync_val_compare_and_swap_2       pics/aso/aso.o
__sync_val_compare_and_swap_4       pics/aso/aso.o
__sync_val_compare_and_swap_8       pics/aso/aso.o
ld: fatal: symbol referencing errors. No output written to libast.so.1
collect2: ld returned 1 exit status
Actions #1

Updated by Andy Fiddaman 2 months ago

  • Description updated (diff)
Actions #2

Updated by Electric Monk 2 months ago

  • Gerrit CR set to 1341
Actions #3

Updated by Andy Fiddaman about 2 months ago

Tested by running a gate build with gcc7 primary and comparing workspaces with wsdiff.
I also did a gate build with a gcc4 primary which now works, with a clean mail_msg (although I didn't test boot it or do any further tests).

Actions #4

Updated by Electric Monk about 2 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit 9ecd05bdc59e4a1091c51ce68cce2028d5ba6fd1

commit  9ecd05bdc59e4a1091c51ce68cce2028d5ba6fd1
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   2021-03-20T10:12:40.000Z

    13635 libast does not link with gcc4
    Reviewed by: Jason King <jason.king@joyent.com>
    Reviewed by: Rich Lowe <richlowe@richlowe.net>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF