Skip to content

make abi-gcc fails on Mac OSX  #1

Description

@vschiavoni

Fails on Mac OSX 10.9.4.

CC version:

cc -v
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix

Error is the following:

make abi-gcc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C abi gcc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C gcc
cc -fPIC -I../../include -I../../src -DNDEBUG -U_FORTIFY_SOURCE -D_REENTRANT -I../../src/atomic_ops -DTM_GCC -I. -O2 -march=native -fno-strict-aliasing -fno-stack-protector -Wall -Wno-unused-function -Wno-unused-label -DDESIGN=WRITE_THROUGH -DCM=CM_SUICIDE -UEPOCH_GC -DTM_STATISTICS -UTM_STATISTICS2 -DIRREVOCABLE_ENABLED -UPTHREAD_WRAPPER -DTLS_COMPILER -UHYBRID_ASF -c -o abi.do ../abi.c
In file included from ../abi.c:36:
./libitm.h:132:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:135:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:138:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:141:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:147:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:151:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:154:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
./libitm.h:158:8: warning: unknown attribute 'transaction_pure' ignored [-Wattributes]
extern _ITM_TRANSACTION_PURE
       ^
./libitm.h:54:46: note: expanded from macro '_ITM_TRANSACTION_PURE'
#define _ITM_TRANSACTION_PURE __attribute__((transaction_pure))
                                             ^
In file included from ../abi.c:61:
In file included from ../../src/stm.c:35:
../../src/stm_internal.h:1355:10: warning: incompatible pointer types returning 'jmp_buf *' (aka 'int (*)[37]') from a function with result type 'sigjmp_buf *' (aka 'int (*)[38]')
      [-Wincompatible-pointer-types]
  return &tx->env;
         ^~~~~~~~
../../src/stm_internal.h:1523:10: warning: incompatible pointer types returning 'jmp_buf *' (aka 'int (*)[37]') from a function with result type 'sigjmp_buf *' (aka 'int (*)[38]')
      [-Wincompatible-pointer-types]
  return tx->nesting == 0 ? &tx->env : NULL;
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 warnings generated.
cc -I../../include -I../../src -DNDEBUG -U_FORTIFY_SOURCE -D_REENTRANT -I../../src/atomic_ops -DTM_GCC -I. -O2 -march=native -fno-strict-aliasing -fno-stack-protector -Wall -Wno-unused-function -Wno-unused-label -DDESIGN=WRITE_THROUGH -DCM=CM_SUICIDE -UEPOCH_GC -DTM_STATISTICS -UTM_STATISTICS2 -DIRREVOCABLE_ENABLED -UPTHREAD_WRAPPER -DTLS_COMPILER -UHYBRID_ASF -c -o arch.o arch.S
arch.S:4:3: error: This file is linux specific.
# error This file is linux specific.
  ^
1 error generated.
make[2]: *** [arch.o] Error 1
make[1]: *** [gcc] Error 2
make: *** [abi-gcc] Error 2

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions