Error w libffi building Firefox 3.6 with address-sanitizer on 32-bit Ubuntu 10.4

RESOLVED INVALID

Status

()

Firefox
Untriaged
RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: tfrazier, Unassigned)

Tracking

3.6 Branch
x86_64
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 661769 [details]
FirefoxASAN_make_v14.txt

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

Steps to reproduce:

I am Building Firefox 3.6 with address-sanitizer on 32-bit Ubuntu 10.4
1. I followed Clang-Getting Started to build LLVM and address-sanitizer
2. I checked out mozilla-1.9.2 (Firefox 3.6) with Mercurial 
3. I am trying to build Firefox 3.6 with address-sanitizer on 32-bit Ubuntu 10.4. I am generally following https://developer.mozilla.org/en-US/docs/Building_Firefox_with_Address_Sanitizer though I have had to fix a number of bugs/issues along the way

I have an issue with 
error: invalid variant 'rel'   .long .LFB2@rel


Actual results:

During make -f client.mk

I am seeing: 

[...]
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/opt/192src/objdir-ff-asan/js/ctypes/libffi/man'
make[5]: Entering directory `/opt/192src/objdir-ff-asan/js/ctypes/libffi'
depbase=`echo src/x86/sysv.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/bash ./libtool   --mode=compile /opt/build/Debug+Asserts/bin/clang -DHAVE_CONFIG_H -I. -I/opt/192src/js/ctypes/libffi  -I. -I/opt/192src/js/ctypes/libffi/include -Iinclude -I/opt/192src/js/ctypes/libffi/src  -I. -I/opt/192src/js/ctypes/libffi/include -Iinclude -I/opt/192src/js/ctypes/libffi/src -faddress-sanitizer -Dxmalloc=myxmalloc -MT src/x86/sysv.lo -MD -MP -MF $depbase.Tpo -c -o src/x86/sysv.lo /opt/192src/js/ctypes/libffi/src/x86/sysv.S &&\
	mv -f $depbase.Tpo $depbase.Plo
 /opt/build/Debug+Asserts/bin/clang -DHAVE_CONFIG_H -I. -I/opt/192src/js/ctypes/libffi -I. -I/opt/192src/js/ctypes/libffi/include -Iinclude -I/opt/192src/js/ctypes/libffi/src -I. -I/opt/192src/js/ctypes/libffi/include -Iinclude -I/opt/192src/js/ctypes/libffi/src -faddress-sanitizer -Dxmalloc=myxmalloc -MT src/x86/sysv.lo -MD -MP -MF src/x86/.deps/sysv.Tpo -c /opt/192src/js/ctypes/libffi/src/x86/sysv.S  -fPIC -DPIC -o src/x86/sysv.o
/opt/192src/js/ctypes/libffi/src/x86/sysv.S:360:17: error: invalid variant 'rel'
 .long .LFB1@rel
                ^
/opt/192src/js/ctypes/libffi/src/x86/sysv.S:387:17: error: invalid variant 'rel'
 .long .LFB2@rel
                ^
make[5]: *** [src/x86/sysv.lo] Error 1



Expected results:

Should have had no error.

I also tried the command withOUT -faddress-sanitizer and the same error persisted. The ASAN folks suggested I try here.


-- What version of the product are you using? On what operating system?

Latest asan in LLVM

root@ubuntu:/opt/192src# uname -a
Linux ubuntu 2.6.32-42-generic #96-Ubuntu SMP Wed Aug 15 18:57:09 UTC 2012 i686 GNU/Linux
Firefox 3.6 is EOL
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.