sicarul / rpostgresql

Automatically exported from code.google.com/p/rpostgresql
0 stars 0 forks source link

unknown clang argument during build, Xcode 5.1 incompatible #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. svn checkout http://rpostgresql.googlecode.com/svn/trunk/ 
rpostgresql-read-only
2. library(devtools) # install.packages('devtools') if needed
3. install('~/Downloads/rpostgresql-read-only/RPostgreSQL')

What is the expected output? What do you see instead?

Expected successful build, see instead:

(cd libpq; make CC="clang" CFLAGS="-Wall -mtune=core2 -g -O2 " -f 
Makefile.darwin)
clang -Wall -mtune=core2 -g -O2  -Kthread -kthread -pthread -pthreads  
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS  -DFRONTEND 
-DUNSAFE_STAT_OK -I. -I../src/include  -I../src/port -I../src/port 
-DSO_MAJOR_VERSION=5  -c -o fe-auth.o fe-auth.c
clang: error: unknown argument: '-Kthread'
clang: error: unknown argument: '-kthread'

What version of the product are you using? On what operating system?

Xcode 5.1
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

Please provide any additional information below.

Issue is in the makefile:

~/Downloads/rpostgresql-read-only/RPostgreSQL/src/libpq/Makefile.global.darwin

line 193:

PTHREAD_CFLAGS      =  -Kthread -kthread -pthread -pthreads  -D_REENTRANT 
-D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS

Original issue reported on code.google.com by gmon...@gmail.com on 6 Oct 2014 at 5:29