This is an archive of the discontinued LLVM Phabricator instance.

[SPEC2017] Add -fcommon to build ldecod in x264
ClosedPublic

Authored by chaosdefinition on Dec 8 2022, 11:45 AM.

Details

Summary

As stated in https://www.spec.org/cpu2017/Docs/benchmarks/525.x264_r.html#portability, building ldecod requires -fcommon as -fno-common is the default; otherwise linking errors like the following will occur.

/usr/bin/ld: .../525.x264_r/decoder_test.c.o:(.bss+0x0): multiple definition of `cfgparams'; .../525.x264_r/configfile.c.o:(.bss+0x0): first defined here
/usr/bin/ld: .../525.x264_r/config_common.c.o:(.bss+0x0): multiple definition of `cfgparams'; .../525.x264_r/configfile.c.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

Diff Detail

Repository
rT test-suite

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 11:45 AM
chaosdefinition requested review of this revision.Dec 8 2022, 11:45 AM
MatzeB accepted this revision.Dec 8 2022, 11:56 AM

makes sense.

This revision is now accepted and ready to land.Dec 8 2022, 11:56 AM
This revision was automatically updated to reflect the committed changes.