Thread: Cross-compilation postgresql-8.4.1 error,please help me
plateform: CentOS-2.6.12 arm-linux-gcc version: 4.3.2 cross compilation postgresql-8.4.1 error [root@CentOS-jht postgresql-8.4.1]# ./configure --prefix=/home/eps/pgsql-8.4 --host=arm-linux --without-readline --disable-spinlocks --enable-depend --without-zlib CC="/usr/local/arm/4.3.2/bin/arm-linux-gcc" [root@CentOS-jht postgresql-8.4.1]#make arm-linux-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_GNU_SOURCE -DVAL_CONFIGURE="\"'--prefix=/home/eps/pgsql-8.4.1/' '--host=arm-linux' '--disable-spinlocks' '--enable-depend' '--without-readline' '--without-zlib' 'host_alias=arm-linux'\"" -DVAL_CC="\"arm-linux-gcc\"" -DVAL_CPPFLAGS="\"-D_GNU_SOURCE\"" -DVAL_CFLAGS="\"-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv\"" -DVAL_CFLAGS_SL="\"-fpic\"" -DVAL_LDFLAGS="\"-Wl,-rpath,'/home/eps/pgsql-8.4.1//lib'\"" -DVAL_LDFLAGS_SL="\"\"" -DVAL_LIBS="\"-lpgport -lcrypt -ldl -lm \"" -c -o pg_config.o pg_config.c -MMD -MP -MF .deps/pg_config.Po arm-none-linux-gnueabi-gcc: '--host=arm-linux': No such file or directory arm-none-linux-gnueabi-gcc: '--disable-spinlocks': No such file or directory arm-none-linux-gnueabi-gcc: '--enable-depend': No such file or directory arm-none-linux-gnueabi-gcc: '--without-readline': No such file or directory arm-none-linux-gnueabi-gcc: '--without-zlib': No such file or directory arm-none-linux-gnueabi-gcc: 'host_alias=arm-linux'": No such file or directory arm-none-linux-gnueabi-gcc: ": No such file or directory cc1: error: unrecognized command line option "-fwrapv"" make[3]: *** [pg_config.o] Error 1 make[3]: Leaving directory `/home/postgresql-8.4.1/src/bin/pg_config' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/postgresql-8.4.1/src/bin' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/postgresql-8.4.1/src' make: *** [all] Error 2 [root@CentOS-jht postgresql-8.4.1]# please help me,thanks huangyi |
On mÃ¥n, 2010-05-17 at 16:43 +0800, æ¯ é» wrote: > [root@CentOS-jht postgresql-8.4.1]# ./configure > --prefix=/home/eps/pgsql-8.4 --host=arm-linux --without-readline > --disable-spinlocks --enable-depend > --without-zlib CC="/usr/local/arm/4.3.2/bin/arm-linux-gcc" > [root@CentOS-jht postgresql-8.4.1]#make > arm-linux-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing > -fwrapv -I../../../src/include -D_GNU_SOURCE > -DVAL_CONFIGURE="\"'--prefix=/home/eps/pgsql-8.4.1/' > '--host=arm-linux' '--disable-spinlocks' '--enable-depend' > '--without-readline' '--without-zlib' 'host_alias=arm-linux'\"" > -DVAL_CC="\"arm-linux-gcc\"" -DVAL_CPPFLAGS="\"-D_GNU_SOURCE\"" > -DVAL_CFLAGS="\"-O2 -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing > -fwrapv\"" -DVAL_CFLAGS_SL="\"-fpic\"" > -DVAL_LDFLAGS="\"-Wl,-rpath,'/home/eps/pgsql-8.4.1//lib'\"" > -DVAL_LDFLAGS_SL="\"\"" -DVAL_LIBS="\"-lpgport -lcrypt -ldl -lm \"" > -c -o pg_config.o pg_config.c -MMD -MP -MF .deps/pg_config.Po > arm-none-linux-gnueabi-gcc: '--host=arm-linux': No such file or > directory > arm-none-linux-gnueabi-gcc: '--disable-spinlocks': No such file or > directory > arm-none-linux-gnueabi-gcc: '--enable-depend': No such file or > directory > arm-none-linux-gnueabi-gcc: '--without-readline': No such file or > directory > arm-none-linux-gnueabi-gcc: '--without-zlib': No such file or > directory > arm-none-linux-gnueabi-gcc: 'host_alias=arm-linux'": No such file or > directory > arm-none-linux-gnueabi-gcc: ": No such file or directory Is it possible that arm-linux-gcc or something that it calls is a shell script that does improper quoting of its arguments?