Alternatives for outdated assembler (AS)?
Jeffrey Walton
noloader at gmail.com
Fri Apr 10 01:41:10 PDT 2015
On Fri, Apr 10, 2015 at 4:28 AM, René J.V. <rjvbertin at gmail.com> wrote:
> On Friday April 10 2015 09:09:53 Chris Jones wrote:
>
>>What about trying to just use a more modern compiler, such as clang 3.4
>>as provided by the macports port ?
>
> port:clang-3.5 is available in binary form even for OS X 10.6, which brings you on par with the version in Xcode 6 (except for details like build speed).
>
I tried Clang 3.6, but it was not helpful:
$ export CXX=/usr/local/bin/clang++
$ $CXX --version
clang version 3.6.0 (tags/RELEASE_360/final)
Target: x86_64-apple-darwin12.6.0
$ cd cryptopp
$ make static
I also tried with the Xcode 5.1 toolchain:
$ export CXX=/Applications/Xcode.app/Contents/Developer//Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
$ export AS=/Applications/Xcode.app/Contents/Developer//Toolchains/XcodeDefault.xctoolchain/usr/bin/as
$ cd cryptopp
$ make static
Both result in (its the Crypto++ library, and it only uses CXX (and not CC)):
/usr/local/bin/clang++ -DNDEBUG -g3 -Os -fPIC -stdlib=libc++ -Wall
-Wno-tautological-compare -Wno-unused-value -Wno-unused-variable
-Wno-unused-parameter -Wno-unused-function -pipe -c gcm.cpp
gcm.cpp:746:3: error: invalid instruction mnemonic 'prefix'
ASL(1)
^
./cpu.h:224:17: note: expanded from macro 'ASL'
#define ASL(x) GNU_ASL(x)
^
./cpu.h:218:26: note: expanded from macro 'GNU_ASL'
#define GNU_ASL(x) "\n" #x ":"
^
<scratch space>:29:2: note: expanded from here
"1"
^
<inline asm>:2:1467: note: instantiated into assembly here
...rcx, 16;sub rdx, 1;jnz 1b;movdqa [rsi], xmm0;.att_syntax prefix;
More information about the macports-users
mailing list