Open
Bug 915960
Opened 12 years ago
Updated 3 years ago
Fall back to ar on PATH if AR is not defined, instead of ":"
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
NEW
People
(Reporter: gkw, Unassigned)
Details
Attachments
(1 file)
3.81 KB,
text/plain
|
Details |
Traceback (most recent call last):
File "/home/fuzz5lin/Desktop/js-dbg-32-linux-mozilla-central-146872-cdfeb4aaea9c-9zV77s/compilePath/js/src/config/expandlibs_exec.py", line 340, in <module>
main()
File "/home/fuzz5lin/Desktop/js-dbg-32-linux-mozilla-central-146872-cdfeb4aaea9c-9zV77s/compilePath/js/src/config/expandlibs_exec.py", line 321, in main
proc = subprocess.Popen(args, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make[1]: *** [libjs_static.a] Error 1
On a pandaboard, I compile using:
CC="gcc -mfloat-abi=softfp -B/usr/lib/gcc/arm-linux-gnueabi/4.7" CXX="g++ -mfloat-abi=softfp -B/usr/lib/gcc/arm-linux-gnueabi/4.7" sh ./configure --target=arm-linux-gnueabi --enable-optimize --enable-debug --enable-profiling --enable-gczeal --without-intl-api --enable-debug-symbols --enable-methodjit --enable-type-inference --disable-tests --with-ccache
but I hit this Python error, which doesn't seem like a compilation error with gcc, but perhaps something with expandlibs_exec.py?
I'm on Ubuntu Linux 12.10 Quantal, and this blocks fuzzing softfp js shells.
gps / ted, any ideas?
Flags: needinfo?(gps)
![]() |
Reporter | |
Comment 1•12 years ago
|
||
(for all I know, it may be something specific to my configuration, but I've already plunged too much time trying to debug this myself :( )
More specifically, I'm not sure how to debug *exactly* which file or directory is missing, to serve up the "No such file" error
Comment 2•12 years ago
|
||
You're missing "ar" (I wish Python's error message for this case was more useful.) From your log:
"--target libjs_static.a --extract -- : cr libjs_static.a"
I've never been sure why we fall back to ":" for AR:
http://mxr.mozilla.org/mozilla-central/source/build/autoconf/toolchain.m4#102
Flags: needinfo?(gps)
![]() |
Reporter | |
Comment 3•12 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #2)
> You're missing "ar" (I wish Python's error message for this case was more
> useful.) From your log:
>
> "--target libjs_static.a --extract -- : cr libjs_static.a"
>
> I've never been sure why we fall back to ":" for AR:
> http://mxr.mozilla.org/mozilla-central/source/build/autoconf/toolchain.m4#102
Adding a AR="ar" on my compile line made it work, thanks Ted! I shall morph this bug to enable the build system to fall back on ar on PATH (in my case /usr/bin/ar) if AR is not specified.
Summary: Trying to compile softfp binaries now throws a "No such file or directory" error when running expandlibs_exec.py → Fall back to ar on PATH if AR is not defined, instead of ":"
![]() |
Reporter | |
Updated•12 years ago
|
Assignee: general → nobody
QA Contact: general
Updated•10 years ago
|
Component: JavaScript Engine → Build Config
OS: Linux → All
Hardware: ARM → All
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•