build on Mac OS X getting intel assembly error

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
11 years ago
7 months ago

People

(Reporter: ray, Unassigned)

Tracking

Trunk
x86
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

11 years ago
I have not seen this error before. I am having to, again, set up my mo development environment on my Mac OS X 10.4.11 system (MacBook Pro).

I have installed libidl and glib as per the mozdev page on prerequisites. I have the out of the box Xcode development environment set up. I did not install any of the SDK for other versions of Mac OS X. There may be something I missed in my setup.

I just wanted to log this error, as searching for this kind of error in other bugs does not return any results. When I find out what I missed I will update the bug so it may be findable in the future.

% cat browser_20080414_111452/mozilla/browser/config/mozconfig 
ac_add_options --enable-application=browser
ac_add_options --enable-debug
ac_add_options --enable-test
ac_add_options --enable-mochitest
ac_add_options --enable-libIDLtest
ac_add_options --enable-gtktest
ac_add_options --enable-glibtest
%

gcc -o os_Darwin_x86.o -fvisibility=hidden     -Wmost -fno-common -O -g -fPIC  -UNDEBUG -DDEBUG_ray  -DMOZILLA_CLIENT=1 -DDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -Di386=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1  -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/Users/ray/mo/browser_20080414_111452/mozilla/dist/include/nspr -I../../../../pr/include -I../../../../pr/include/private  -c os_Darwin_x86.s
os_Darwin_x86.s:47:Invalid mnemonic 'movl'
os_Darwin_x86.s:48:Invalid mnemonic 'movl'
os_Darwin_x86.s:49:Invalid mnemonic 'lock'
os_Darwin_x86.s:50:Invalid mnemonic 'xaddl'
os_Darwin_x86.s:51:Invalid mnemonic 'incl'
os_Darwin_x86.s:52:Invalid mnemonic 'ret'
os_Darwin_x86.s:64:Invalid mnemonic 'movl'
os_Darwin_x86.s:65:Invalid mnemonic 'movl'
os_Darwin_x86.s:66:Invalid mnemonic 'lock'
os_Darwin_x86.s:67:Invalid mnemonic 'xaddl'
os_Darwin_x86.s:68:Invalid mnemonic 'decl'
os_Darwin_x86.s:69:Invalid mnemonic 'ret'
os_Darwin_x86.s:81:Invalid mnemonic 'movl'
os_Darwin_x86.s:82:Invalid mnemonic 'movl'
os_Darwin_x86.s:83:Invalid mnemonic 'xchgl'
os_Darwin_x86.s:84:Invalid mnemonic 'ret'
os_Darwin_x86.s:96:Invalid mnemonic 'movl'
os_Darwin_x86.s:97:Invalid mnemonic 'movl'
os_Darwin_x86.s:98:Invalid mnemonic 'movl'
os_Darwin_x86.s:99:Invalid mnemonic 'lock'
os_Darwin_x86.s:100:Invalid mnemonic 'xaddl'
os_Darwin_x86.s:101:Invalid mnemonic 'addl'
os_Darwin_x86.s:102:Invalid mnemonic 'ret'
make[6]: *** [os_Darwin_x86.o] Error 1
make[5]: *** [export] Error 2
make[4]: *** [export] Error 2
make[3]: *** [export] Error 2
make[2]: *** [export] Error 2
make[1]: *** [tier_nspr] Error 2
make: *** [default] Error 2
(Reporter)

Comment 1

11 years ago
It was pointed out to me that I should not be seeing the following:

% as -V
+ /usr/libexec/gcc/darwin/ppc/as -V 

My as should be using i386 and not ppc. Now I just have to figure out how this got configured this way.
(Reporter)

Comment 2

11 years ago
Installed Xcode 2.5 and it gets farther, but different error. (sigh)

Ok, so perhaps this bug is just an example of 'here is an example of an error that you get when the setup is not correct'....

gcc -o xpidl -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -W -Wno-long-long -fno-strict-aliasing -fpascal-strings -fno-common -I/Developer/Headers/FlatCarbon -pipe  -DDEBUG -D_DEBUG -DDEBUG_ray -DTRACING -g -O2 -I/opt/local/include/libIDL-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   xpidl.o xpidl_idl.o xpidl_util.o xpidl_header.o xpidl_typelib.o xpidl_doc.o xpidl_java.o   -framework Cocoa         -Wl,-executable_path,../../../dist/bin -Wl,-dead_strip -L../../../dist/bin -L../../../dist/lib ../../../dist/lib/libxpt.a -L/opt/local/lib -lIDL-2 -lglib-2.0 -lintl -liconv      ^M
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libIDL-2.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)^M
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libglib-2.0.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)^M
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libintl.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)^M
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /opt/local/lib/libiconv.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)^M
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:^M
_IDL_file_get^M
_IDL_file_set^M
_IDL_inhibit_pop^M
_IDL_inhibit_push^M
and so on and so on...
(Reporter)

Comment 3

11 years ago
% port installed
The following ports are currently installed:
  expat @2.0.1_0 (active)
  gettext @0.17_3 (active)
  glib2 @2.16.3_0 (active)
  libiconv @1.12_0+darwin_8 (active)
  libidl @0.8.10_0 (active)
  ncurses @5.6_0 (active)
  ncursesw @5.6_1 (active)
  pkgconfig @0.23_0 (active)
(Reporter)

Comment 4

11 years ago
Rebuilt the above ports, after installing the new Xcode. Everything works again.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → WORKSFORME

Updated

7 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.