Mac build broken #446

Closed
davelab6 opened this Issue Mar 18, 2013 · 7 comments

Comments

Projects
None yet
4 participants
Owner

davelab6 commented Mar 18, 2013

http://fuuko.libferris.com/osx/packages/201303/19_0417/FontForge.app.zip will not run:

$ open /Applications/FontForge.app
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/FontForge.app.

and

Script started on Mon Mar 18 15:49:32 2013
(lldb) error: Aborting reading of commands after command #5: 'run' continued the target.
Executing commands in '/Applications/FontForge.app/Contents/MacOS/debug-script'.
(lldb)  version
LLDB-179.1
(lldb)  settings set frame-format "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name-with-args}{${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n"
(lldb)  target create /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge
Current executable set to '/Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge' (x86_64).
(lldb)  target select 0
Current targets:
* target #0: /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge ( arch=x86_64-apple-macosx, platform=localhost )
(lldb)  run
Process 36512 launched: '/Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge' (x86_64)
dyld: Library not loaded: /opt/local/lib/libczmq.1.dylib

  Referenced from: /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge

  Reason: image not found


�[KProcess 36512 stopped
* thread #1: tid = 0x1c03, 0x00007fff5fc0109d dyld`dyld_fatal_error + 1, stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
    "frame #0: 0x00007fff5fc0109d dyld`dyld_fatal_error + 1
"dyld`dyld_fatal_error + 1:
-> 0x7fff5fc0109d:  nop    

dyld`dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*):
   0x7fff5fc0109e:  pushq  %rbp
   0x7fff5fc0109f:  movq   %rsp, %rbp
   0x7fff5fc010a2:  pushq  %r15
(lldb) bt

* thread #1: tid = 0x1c03, 0x00007fff5fc0109d dyld`dyld_fatal_error + 1, stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
    "frame #0: 0x00007fff5fc0109d dyld`dyld_fatal_error + 1
"    "frame #1: 0x00007fff5fc02138 dyld`dyld::halt(char const*) + 79
"    "frame #2: 0x00007fff5fc059bd dyld`dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 2733
"    "frame #3: 0x00007fff5fc01397 dyld`dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 761
"    "frame #4: 0x00007fff5fc0105e dyld`_dyld_start + 54
"(lldb) exit


Script done on Mon Mar 18 15:49:41 2013

and

$  /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge 
dyld: Library not loaded: /opt/local/lib/libczmq.1.dylib
  Referenced from: /Applications/FontForge.app/Contents/Resources/opt/local/bin/fontforge
  Reason: image not found
Trace/BPT trap: 5

@ghost ghost assigned monkeyiq Mar 18, 2013

Owner

davelab6 commented Mar 18, 2013

@monkeyiq not sure why this happened

Owner

davelab6 commented Mar 18, 2013

Contributor

JoesCat commented Mar 19, 2013

According to the error message above, it can't find the zeromq library.
2 possibilities I can think of
(1) the computer you have, does not have zeromq but Ben's computer is compiling as if it exists because his machine has it.
(2) You might have zeromq, but your version is i686, while Ben is building for arch=x86_64.
If you look at the homebrew substitutions done in issue #431 you probably might want to change arch=x86_64 into arch=i686 inside the configure.ac file

Another thing that this brings-up is that maybe we need to consider lazy library builds since you are depending on Ben's zip build files - basically if the libray exists, use it, if not, don't use it, which is what George had in his older code.

George also had provided a separate program to install the requisite
libraries on Macs. Would an accessory like this be useful or even necessary
with the way we're currently building FontForge?

On Mon, Mar 18, 2013 at 8:20 PM, Joe notifications@github.com wrote:

According to the error message above, it can't find the zeromq library.
2 possibilities I can think of
(1) the computer you have, does not have zeromq but Ben's computer is
compiling as if it exists because his machine has it.
(2) You might have zeromq, but your version is i686, while Ben is building
for arch=x86_64.
If you look at the homebrew substitutions done in issue #431https://github.com/fontforge/fontforge/issues/431you probably might want to change arch=x86_64 into arch=i686 inside the
configure.ac file

Another thing that this brings-up is that maybe we need to consider lazy
library builds since you are depending on Ben's zip build files - basically
if the libray exists, use it, if not, don't use it, which is what George
had in his older code.


Reply to this email directly or view it on GitHubhttps://github.com/fontforge/fontforge/issues/446#issuecomment-15095413
.

Jason Pagura
zimbach at gmail dot com

Owner

davelab6 commented Mar 19, 2013

@ultrasquid no, the app bundle @monkeyiq has developed is complete self contained

@davelab6 davelab6 closed this Mar 19, 2013

@davelab6 davelab6 reopened this Mar 19, 2013

Contributor

monkeyiq commented Mar 20, 2013

The cron job used for the build is basically the three commands I use to do a manual build:

cd .../mac-build/categories/fontforge/
./force-rebuild.sh
./make-package.sh
./archive-and-upload.sh

I just tried all but the last command (the archive+upload) in a temporary cron job and it is doing something strange. I hope to isoloate that soon.

Contributor

monkeyiq commented Mar 20, 2013

This will be the first one made by a cron job. Right size & runs here when expanded and /opt/local (mac ports) is moved to another path...
http://fuuko.libferris.com/osx/packages/201303/20_1137/

@davelab6 davelab6 closed this Aug 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment