Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 23 Sep 2012 15:13:03 +0200
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
Subject: Re: OpenMP on OSX

On 23 Sep, 2012, at 13:58 , Solar Designer <solar@...nwall.com> wrote:

> On Sun, Sep 23, 2012 at 12:47:41PM +0200, magnum wrote:
>> I can't seem to build OMP on OSX 10.8 with xcode. It compiles but does not link. It ends like this:
>> 
>> Undefined symbols for architecture x86_64:
>>  "___builtin_object_size", referenced from:
> [...]
>> Are you getting the same? Anyone know what the problem is? Can we work around it?
> 
> Yes, see:
> 
> http://www.openwall.com/lists/john-users/2012/06/30/8
> http://www.openwall.com/lists/john-users/2012/07/02/11
> 
> I don't particularly like the workarounds, though.
> 
> It'd be nice if we could help Eric fix the LLVM bug for real.

Thanks, I forgot about that thread. With native (llvm) gcc and -fopenmp -D_FORTIFY_SOURCE=0, only one of the problems go away though - I still get the alloca problem:

Undefined symbols for architecture x86_64:
  "_alloca", referenced from:
      _crypt_all.omp_fn.0 in encfs_fmt_plug.o
      _crypt_all.omp_fn.0 in gpg_fmt_plug.o
      _crypt_all.omp_fn.0 in keyring_fmt_plug.o
      _crypt_all.omp_fn.0 in opencl_encfs_fmt.o
      _crypt_all.omp_fn.0 in opencl_gpg_fmt.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [../run/john] Error 1
make: *** [macosx-x86-64-opencl] Error 2

If I compile the lot with a proper gcc instead, I get other weird problems:

ld: warning: option -s is obsolete and being ignored
ld: warning: ignoring file DES_fmt.o, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): DES_fmt.o
ld: file is universal (2 slices) but does not contain a(n) x86_64 slice: /usr/lib/crt1.10.6.o for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [../run/john] Error 1
make: *** [macosx-x86-64-opencl] Error 2

This is with macports' gcc 4.7.

magnum

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ