Closed
Bug 1513605
Opened 7 years ago
Closed 7 years ago
configuration with clang fails on aarch64 linux
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox64 wontfix, firefox66 wontfix, firefox67 fixed)
RESOLVED
FIXED
mozilla67
People
(Reporter: guillaume.gardet, Assigned: glandium)
References
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Steps to reproduce:
Try to build aarch64 linux with clang 6.0.1
Actual results:
Got this result error message:
[ 454s] 2:24.10 mozbuild.frontend.reader.BuildReaderError:
[ 454s] 2:24.10 ==============================
[ 454s] 2:24.10 FATAL ERROR PROCESSING MOZBUILD FILE
[ 454s] 2:24.10 ==============================
[ 454s] 2:24.10 The error occurred while processing the following file:
[ 454s] 2:24.10 /home/abuild/rpmbuild/BUILD/firefox-64.0/mozglue/misc/moz.build
[ 454s] 2:24.10 A moz.build file called the error() function.
[ 454s] 2:24.10 The error it encountered is:
[ 454s] 2:24.10 No TimeStamp implementation on this platform. Build will not succeed
[ 454s] 2:24.10 Correct the error condition and try again.
[ 455s] 2:24.39 *** Fix above errors and then restart with\
[ 455s] 2:24.39 "./mach build"
[ 455s] 2:24.39 gmake: *** [client.mk:115: configure] Error 1
It seems to be due to:
[ 395s] 1:24.33 checking for clock_gettime(CLOCK_MONOTONIC)... no
[ 395s] 1:24.60 checking for pthread_cond_timedwait_monotonic_np...
Expected results:
Building with clang should succeed as it does with GCC.
Updated•7 years ago
|
status-firefox64:
--- → affected
Component: Untriaged → General
Product: Firefox → Firefox Build System
| Assignee | ||
Comment 1•7 years ago
|
||
> [ 395s] 1:24.33 checking for clock_gettime(CLOCK_MONOTONIC)... no
What kind of Linux system are you using that doesn't have CLOCK_MONOTONIC?
| Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #1)
> > [ 395s] 1:24.33 checking for clock_gettime(CLOCK_MONOTONIC)... no
>
> What kind of Linux system are you using that doesn't have CLOCK_MONOTONIC?
It is an openSUSE system. The problem is CLOCK_MONOTONIC is supported. So, I do not understand why the test fails.
| Assignee | ||
Comment 3•7 years ago
|
||
Check config.log.
| Reporter | ||
Comment 4•7 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #3)
> Check config.log.
According to config.log, this is due to:
/usr/bin/ld: /tmp/conftest-f21630.o(.text.main+0xc): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'
/usr/bin/ld: final link failed: nonrepresentable section on output
clang-6.0.1: error: linker command failed with exit code 1 (use -v to see invocation)
Adding '-fPIC' to LD flags seems to make the config to pass.
| Assignee | ||
Comment 5•7 years ago
|
||
Interestingly, I've hit this problem on, not aarch64, but armhf and armel, with gold. Can you try to add:
ac_add_options --enable-linker=bfd
to your mozconfig?
| Assignee | ||
Comment 6•7 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #5)
> Interestingly, I've hit this problem
Well, not _exactly_ this problem, but a similar one.
| Reporter | ||
Comment 7•7 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #5)
> Interestingly, I've hit this problem on, not aarch64, but armhf and armel,
> with gold. Can you try to add:
>
> ac_add_options --enable-linker=bfd
>
> to your mozconfig?
Adding 'ac_add_options --enable-linker=bfd' does not help in my case.
But as mentionned in Comment#4, adding '-fPIC' helps.
| Assignee | ||
Comment 8•7 years ago
|
||
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/f6582e6dba4b
Add PIC flags when running the clock_gettime(CLOCK_MONOTONIC) check. r=dmajor
Comment 10•7 years ago
|
||
| bugherder | ||
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Updated•7 years ago
|
Assignee: nobody → mh+mozilla
Updated•6 years ago
|
status-firefox66:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•