Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ld: symbol(s) not found for architecture x86_64

1,002 views
Skip to first unread message

Nomis101

unread,
Apr 22, 2011, 7:42:12 AM4/22/11
to
I normally build Thunderbird and Firefox with osxspell instead of
hunspell and since a few month with clang trunk. This has worked quite
nice until 15. April. Than I've decided to switch from mozilla-2.0 to
mozilla-aurora. I've applied all missing clang patches to the mozilla
repo. Since I've switched it doesn't build anymore. I've also tried
with mozilla-central and switched back to mozilla-2.0. But it doesn't
build anymore. I have no idea why. The only thing I've also did in
this timeframe is, I've updated from Xcode 4.0.1 to 4.0.2.

Normally it should say:

clang: warning: argument unused during compilation: '-pthread'
ld: warning: ignoring file /Developer/SDKs/MacOSX10.6.sdk/System/
Library/Frameworks//QuickTime.framework/QuickTime, missing required
architecture x86_64 in file
ld: warning: could not create compact unwind for _ffi_call_unix64:
does not use RBP or RSP based frame
chmod +x XUL
strip -x -S XUL
/Developer/temp/src/obj-x86_64-apple-darwin10.7.0/mozilla/config/
nsinstall -L /Developer/temp/src/obj-x86_64-apple-darwin10.7.0/mozilla/
toolkit/library -m 755 XUL ../../dist/lib

But now it stops everytime with:

clang: warning: argument unused during compilation: '-pthread'
ld: warning: ignoring file /Developer/SDKs/MacOSX10.6.sdk/System/
Library/Frameworks//QuickTime.framework/QuickTime, missing required
architecture x86_64 in file
ld: warning: could not create compact unwind for _ffi_call_unix64:
does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"mozOSXSpell::LoadDictionariesFromDir(nsIFile*)", referenced from:
vtable for mozOSXSpell in mozOSXSpell.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[5]: *** [XUL] Error 1
make[4]: *** [libs_tier_platform] Error 2
make[3]: *** [tier_platform] Error 2
make[2]: *** [default] Error 2
make[1]: *** [default] Error 2
make: *** [build] Error 2


I can only fix this if I build with hunspell. But osxspell was never a
problem, so I don't understand why this doesn't work anymore.

Nomis101

unread,
Apr 22, 2011, 4:28:59 PM4/22/11
to
OK, this has nothing to do with Clang, I get the same error with
gcc-4.2:

ld: warning: ignoring file /Developer/SDKs/MacOSX10.6.sdk/System/
Library/Frameworks//QuickTime.framework/QuickTime, missing required
architecture x86_64 in file
ld: warning: could not create compact unwind for _ffi_call_unix64:
does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"mozOSXSpell::LoadDictionariesFromDir(nsIFile*)", referenced from:

vtable for mozOSXSpellin mozOSXSpell.o


ld: symbol(s) not found for architecture x86_64

collect2: ld returned 1 exit status

Nomis101

unread,
Apr 22, 2011, 4:29:19 PM4/22/11
to
OK, this has nothing to do with Clang, I get the same error with
gcc-4.2:

ld: warning: ignoring file /Developer/SDKs/MacOSX10.6.sdk/System/
Library/Frameworks//QuickTime.framework/QuickTime, missing required
architecture x86_64 in file
ld: warning: could not create compact unwind for _ffi_call_unix64:
does not use RBP or RSP based frame
Undefined symbols for architecture x86_64:
"mozOSXSpell::LoadDictionariesFromDir(nsIFile*)", referenced from:

vtable for mozOSXSpellin mozOSXSpell.o


ld: symbol(s) not found for architecture x86_64

collect2: ld returned 1 exit status

Mark Banner

unread,
Apr 22, 2011, 5:51:22 PM4/22/11
to
On 22/04/2011 21:29, Nomis101 wrote:
> Undefined symbols for architecture x86_64:
> "mozOSXSpell::LoadDictionariesFromDir(nsIFile*)", referenced from:
> vtable for mozOSXSpellin mozOSXSpell.o
> ld: symbol(s) not found for architecture x86_64

Are you doing just a 64-bit build or a 32/64 bit universal?

If you're doing a universal build, then you may need to port this hack
to your .mozconfig:
http://hg.mozilla.org/build/buildbot-configs/rev/f1ac18c0cfe1

It basically comes down to an issue in the revised mozconfig.common
which is difficult to resolve, until we switch the way our build system
works.

Standard8

Nomis101

unread,
Apr 22, 2011, 7:38:37 PM4/22/11
to
On 22 Apr., 23:51, Mark Banner <bugzi...@invalid.standard8.plus.com>
wrote:

> On 22/04/2011 21:29, Nomis101 wrote:
>
> > Undefined symbols for architecture x86_64:
> >    "mozOSXSpell::LoadDictionariesFromDir(nsIFile*)", referenced from:
> >        vtable for mozOSXSpellin mozOSXSpell.o
> > ld: symbol(s) not found for architecture x86_64
>
> Are you doing just a 64-bit build or a 32/64 bit universal?

It's a 64bit-only build.

Now I've downloaded mozilla-aurora fresh, I've only enabled osxspell
and build FF with a very basic mozconfig. I get the same error. So it
isn't anything that has to do with Thunderbird, it isn't one of the
additional patches and it has nothing to do with Clang. It could be,
that there was a checkin after 14. April that breaked it or it has to
do with updating Xcode 4.0.1 to 4.0.2. Or anything else?

Nomis101

unread,
Apr 23, 2011, 11:21:58 AM4/23/11
to
OK, I'm near to a solution. It has to do with a change that is in
mozilla-aurora, but not in mozilla-2.0. And it is a change in /mozilla/
extensions/spellcheck. But there are a lot of differences.

Nomis101

unread,
Apr 23, 2011, 5:34:02 PM4/23/11
to
I found what the problem is, see Bug 652364.
0 new messages