bhelyer/SDC — Issue #32: MAC OS X compilation
Author: SerialVelocity
Created: 2012-02-05 12:16:31+00:00
State: open

When compiling on MAC OS X, these are the errors when trying to run make test. I only made one change and that was in makefile.common which was:

```makefile
LLVMDIR ?= "`llvm-config --libdir`"
```

```bash
SDC 0.0
Reading config file from ''.
Effective command line: '["./bin/sdc", "-Ilibs", "compiler_tests/test0.d", "-V"]'.
Parsing module 'test0'.
Parsing function 'main'.
Done parsing module 'test0'.
Creating LLVM module '4564462416' for module 'test0'.
Generating module 'test0'.
Adding function 'main' (4565536000) to LLVM module '4564462416'.
Generating import 'object'.
Parsing module 'object'.
Parsing attribute 'ExternC'.
Parsing function 'malloc'.
Parsing function 'realloc'.
Parsing function 'exit'.
Parsing function 'printf'.
Done parsing attribute 'ExternC'.
Parsing attribute 'ExternC'.
Parsing function '__d_assert'.
Done parsing attribute 'ExternC'.
Done parsing module 'object'.
Creating LLVM module '4564463296' for module 'object'.
Generating module 'object'.
Adding alias 'string' for char[].
Adding function 'exit' (4565604608) to LLVM module '4564463296'.
Adding function 'printf' (4565604096) to LLVM module '4564463296'.
Adding function '__d_assert' (4565603328) to LLVM module '4564463296'.
Adding alias 'size_t' for uint.
Adding alias 'ptrdiff_t' for int.
Adding function 'malloc' (4565602304) to LLVM module '4564463296'.
Adding function 'realloc' (4565642752) to LLVM module '4564463296'.
Done generating 'object'.
Done generating 'test0'.
Building function 'main'.
Done building function 'main'.
Module '110102B50' passes verification.
llc -march=x86 -o "/tmp/qP1mmwf88m6lc2VOjmu71i3q8k4uN5X7.s" "/tmp/cEULrBlW8MB6Z2vCKN1N9ccQSVZ58Dk4.bc"
gcc -m32 -c -o /tmp/g89Vczi7q1MFWZ61i557x16W1OxXY4Ox.o /tmp/qP1mmwf88m6lc2VOjmu71i3q8k4uN5X7.s
/tmp/qP1mmwf88m6lc2VOjmu71i3q8k4uN5X7.s:6:Unknown pseudo-op: .cfi_startproc
/tmp/qP1mmwf88m6lc2VOjmu71i3q8k4uN5X7.s:10:Unknown pseudo-op: .cfi_def_cfa_offset
/tmp/qP1mmwf88m6lc2VOjmu71i3q8k4uN5X7.s:10:Rest of line ignored. 1st junk character valued 56 (8).
/tmp/qP1mmwf88m6lc2VOjmu71i3q8k4uN5X7.s:16:Unknown pseudo-op: .cfi_endproc
gcc -m32 -o a.out "/tmp/g89Vczi7q1MFWZ61i557x16W1OxXY4Ox.o"
i686-apple-darwin11-llvm-gcc-4.2: /tmp/g89Vczi7q1MFWZ61i557x16W1OxXY4Ox.o: No such file or directory
i686-apple-darwin11-llvm-gcc-4.2: no input files
```