Closed Bug 1414794 Opened 2 years ago Closed 2 years ago

Building Spidermonkey with clang/lld is broken

Categories

(Firefox Build System :: General, defect)

defect
Not set

Tracking

(firefox58 fixed)

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: bbouvier, Assigned: Sylvestre)

Details

Attachments

(1 file)

STR:

- clone repo, say the resulting directory is $REPO
- make a build directory
- from this directory, run the following:

CC="clang" \
CXX="clang++" \
$REPO/js/src/configure \
    --disable-debug \
    --enable-optimize \
    --with-ccache \
    --without-intl-api \
    --enable-linker=lld

Observed at link time:


Executing: /usr/bin/ccache /home/ben/.files/private/bin/clang++ -std=gnu++11 -Qunused-arguments -Qunused-arguments -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wloop-analysis -Wc++11-compat-pedantic -Wc++14-compat -Wc++14-compat-pedantic -Wc++1z-compat -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wformat -Wno-gnu-zero-variadic-macro-arguments -Wformat-security -Wno-noexcept-type -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -O3 -fno-omit-frame-pointer -o TestAtomics /home/ben/mozilla/builds/r64/mfbt/tests/tmpOySZ97.list -lpthread -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,--build-id - f u s e - l d = l l d -Wl,-rpath-link,/home/ben/mozilla/builds/r64/dist/bin -Wl,-rpath-link,/usr/local/lib -lm -ldl
/home/ben/mozilla/builds/r64/mfbt/tests/tmpOySZ97.list:
    INPUT("TestAtomics.o")
    INPUT("../Compression.o")
    INPUT("../Decimal.o")
    INPUT("../Unified_cpp_mfbt0.o")
    INPUT("../Unified_cpp_mfbt1.o")

clang: error: -E or -x required when input is from standard input
clang: error: no such file or directory: 'f'
clang: error: no such file or directory: 'u'
clang: error: no such file or directory: 's'
clang: error: no such file or directory: 'e'
clang: error: -E or -x required when input is from standard input
clang: error: no such file or directory: 'l'
clang: error: no such file or directory: 'd'
clang: error: no such file or directory: '='
clang: error: no such file or directory: 'l'
clang: error: no such file or directory: 'l'
clang: error: no such file or directory: 'd'


I am using clang and LLD 5.0.1 and ccache 3.2.4. Removing the line that enables the lld linker makes the issue disappear.

Please let me know if you need further information.
F U N! 
Thanks
Assignee: nobody → sledru
Comment on attachment 8925500 [details]
Bug 1414794 - Unbreak the lld usage by providing the right data structure

https://reviewboard.mozilla.org/r/196640/#review201882
Attachment #8925500 - Flags: review?(nfroyd) → review+
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d2a961ced3a0
Unbreak the lld usage by providing the right data structure r=froydnj
https://hg.mozilla.org/mozilla-central/rev/d2a961ced3a0
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.