Closed Bug 898660 Opened 11 years ago Closed 6 years ago

Sqlite3 compilation error on Mac OS X 10.7 or newer w/ Xcode 4.5 or newer

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nhirata, Unassigned)

Details

Attachments

(1 file)

STR: 1. download b2g, try to compile on 10.7 or newer w/ Xcode 4.5 or newer

Expected: compiles
Actual: 
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make: *** [out/host/darwin-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3] Error 1

Note: 
1. solution from :  https://groups.google.com/forum/#!msg/android-building/yAfPyUqCsiQ/7zvICk4GWjYJ seems to work.
Note: /external/sqlite/dist/Android.mk needs to be modified w/ the patch.
Comment on attachment 781984 [details] [diff] [review]
fix_sqlite_error.patch

Mike, is this a repository we can patch?
Attachment #781984 - Flags: review?(mwu)
mwu, review ping?
Flags: needinfo?(mwu)
I ran into this today.  I'm guessing the patch would need to go into our /patches infrastructure to apply the patch after repo sync completes?
It looks like our patch support is only on a device-by-device basis.  There is no way at the moment to say "apply this patch for all devices".  So this patch would either need to be duplicated for each device or the patcher script would need to be updated to accept an additional "all" parameter for device.
(In reply to Ben Kelly [:bkelly] from comment #5)
> It looks like our patch support is only on a device-by-device basis.  There
> is no way at the moment to say "apply this patch for all devices".  So this
> patch would either need to be duplicated for each device or the patcher
> script would need to be updated to accept an additional "all" parameter for
> device.

Actually, I'm completely wrong here.  The script looks for a patches/all directory that applies to all devices.  Sorry for my confusion.
And talking to mwu the patch scripts that work off the gonk-patches repository is being deprecated.  Its also only for vendor patches.  So this can't go through that path.

From what mwu says, correct fix here is to fork the sqlite repo and it needs to be done in coordination with releng.
To note, the patch that I placed in here should be applied to the github repo that you have in the <project folder>/external/sqlite/

ie : 
cd <project folder>/external/sqlite
git checkout -b master (in case you need to revert)
git checkout -b sqlitefix
git apply fix_sqlite_error.patch

So the patch applying should be simple?  It hasn't seem to change as of yet.
Flags: needinfo?(mwu.code)
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: