Joachim Strömbergson <joac...@secworks.se> writes:

> I'm trying to get nettle to build in OSX but are having some problems.
> If i simply do the bootstrap-configure-make I get problems in the
> assembly phase:

I don't use osx myself, and I'm not very familiar with it.

> gcc -I.  -DHAVE_CONFIG_H -g -O2 -ggdb3 -Wall -W   -Wmissing-prototypes
> -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith
> -Wbad-function-cast -Wnested-externs -fPIC -MT gcm-hash8.o -MD -MP -MF
> gcm-hash8.o.d -fPIC -c gcm-hash8.s
> gcm-hash8.s:220:18: error: unexpected token in '.section' directive
>  .section .rodata

What does the assembler/linker expect? What do you get from a C file
containing

  static const uint16_t t[4] = {1,2,3,4};

?

> and as being:
> Apple Inc version cctools-846.2.4, GNU assembler version 1.38

That sounds like an ancient version of gas. Searching for it turns up
a fred fish CD from 1994. I most likely had it installed back in the
days. See
http://ftp.back2roots.org/back2roots/cds/fred_fish/freshfish_vol05_9407/gnu/src/baseline/

But it must have been patched heavily by Apple if it supports x86_64...

I'd strongly suggest first trying to build with modern gcc and binutils,
before trying to find workarounds for apple's tools.

/Niels


-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to