I try to compile serf 1.3.3 on Zyxel NSA310 but I'm failing:
Code:
root@nsa310:~/compile/serf-1.3.3-build# scons APR=/ffp APU=/ffp OPENSSL=/ffp PREFIX=/ffp/opt/serf-1.3.3 CC=/ffp/bin/gcc DEBUG=yes -Y /ffp/home/root/compile/serf-1.3.3
/ffp/bin/python: symbol 'BC': can't resolve symbol
/ffp/bin/python: symbol 'PC': can't resolve symbol
/ffp/bin/python: symbol 'UP': can't resolve symbol
/ffp/bin/python: symbol 'tgetnum': can't resolve symbol
/ffp/bin/python: symbol 'tgoto': can't resolve symbol
/ffp/bin/python: symbol 'tgetflag': can't resolve symbol
/ffp/bin/python: symbol 'tputs': can't resolve symbol
/ffp/bin/python: symbol 'tgetent': can't resolve symbol
/ffp/bin/python: symbol 'tgetstr': can't resolve symbol
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/ffp/bin/gcc -o context.o -c -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -pthread -DDEBUG -D_DEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/ffp/home/root/compile/serf-1.3.3 -I/ffp/include/apr-1 -I/ffp/include /ffp/home/root/compile/serf-1.3.3/context.c
gcc: error trying to exec 'as': execvp: No such file or directory
scons: *** [context.o] Error 1
scons: building terminated because of errors.
The problem is with /tmp directory (readonly for me) which is used for gcc instead of any of the environment vars: TMPDIR, TEMP, TMP.
I have this environement:
Code:
root@nsa310:~# uname -a
Linux nsa310 2.6.31.8 #2 Fri Aug 2 11:21:44 CST 2013 armv5tel GNU/Linux
HOME=/ffp/home/root
PATH=/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin:/ffp/opt/jdk1.8.0-full-cli/bin
TMPDIR=/usr/local/zy-pkgs/ffproot/ffp/tmp
TMP=/usr/local/zy-pkgs/ffproot/ffp/tmp
TEMP=/usr/local/zy-pkgs/ffproot/ffp/tmp
When executing the gcc command by myself this
force gcc to use TMPDIR or TEMP or TMP and everything is ok (context.o is produced):
Code:
/ffp/bin/gcc -o context.o -c -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -pthread -DDEBUG -D_DEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3 -I/ffp/include/apr-1 -I/ffp/include /usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3/context.c
But then when I try to execute again the initial
scons command it fails again with same error; I thought that would discover the context.o file and will go on:
Code:
root@nsa310:~/compile/serf-1.3.3-build# scons APR=/ffp APU=/ffp OPENSSL=/ffp PREFIX=/ffp/opt/serf-1.3.3 CC=/ffp/bin/gcc DEBUG=yes -Y /ffp/home/root/compile/serf-1.3.3
What should I do ?
PS: the below happens when executing gcc without having TMP, TEMP and TMPDIR; please see the line
as -mfloat-abi=soft -meabi=5 -o context.o /tmp/ccJ6fqXa.s
Code:
root@nsa310:~# /ffp/bin/gcc -o context.o -c -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -pthread -DDEBUG -D_DEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I. -I/usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3 -I/ffp/include/apr-1 -I/ffp/include -v /usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3/context.c
Using built-in specs.
COLLECT_GCC=/ffp/bin/gcc
COLLECT_LTO_WRAPPER=/usr/local/zy-pkgs/ffproot/ffp/bin/../libexec/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/lto-wrapper
Target: arm-ffp-linux-uclibcgnueabi
Configured with: ../gcc-4.6.2/configure --prefix=/ffp --with-local-prefix=/ffp --build=arm-ffp-linux-uclibcgnueabi --host=arm-ffp-linux-uclibcgnueabi --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-threads=posix --disable-multilib --with-system-zlib --enable-checking=release --with-float=soft
Thread model: posix
gcc version 4.6.2 (GCC)
COLLECT_GCC_OPTIONS='-o' 'context.o' '-c' '-std=c90' '-Wdeclaration-after-statement' '-Wmissing-prototypes' '-Wall' '-g' '-pthread' '-D' 'DEBUG' '-D' '_DEBUG' '-D' 'LINUX' '-D' '_REENTRANT' '-D' '_GNU_SOURCE' '-D' '_LARGEFILE64_SOURCE' '-I' '.' '-I' '/usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3' '-I' '/ffp/include/apr-1' '-I' '/ffp/include' '-v' '-mfloat-abi=soft'
/usr/local/zy-pkgs/ffproot/ffp/bin/../libexec/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/cc1 -quiet -v -I . -I /usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3 -I /ffp/include/apr-1 -I /ffp/include -iprefix /usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/ -D_REENTRANT -D DEBUG -D _DEBUG -D LINUX -D _REENTRANT -D _GNU_SOURCE -D _LARGEFILE64_SOURCE /usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3/context.c -quiet -dumpbase context.c -mfloat-abi=soft -auxbase-strip context.o -g -Wdeclaration-after-statement -Wmissing-prototypes -Wall -std=c90 -version -o /tmp/ccJ6fqXa.s
GNU C (GCC) version 4.6.2 (arm-ffp-linux-uclibcgnueabi)
compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/../../../../arm-ffp-linux-uclibcgnueabi/include"
ignoring duplicate directory "/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/../../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/include"
ignoring duplicate directory "/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/../../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/include-fixed"
ignoring nonexistent directory "/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/../../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/../../../../arm-ffp-linux-uclibcgnueabi/include"
ignoring duplicate directory "/ffp/include/"
ignoring duplicate directory "/ffp/include"
as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
.
/usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3
/ffp/include/apr-1
/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/include
/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/include-fixed
/ffp/include
End of search list.
GNU C (GCC) version 4.6.2 (arm-ffp-linux-uclibcgnueabi)
compiled by GNU C version 4.6.2, GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: ca6306324b14eb2bf7ddfeb74bf1a155
COLLECT_GCC_OPTIONS='-o' 'context.o' '-c' '-std=c90' '-Wdeclaration-after-statement' '-Wmissing-prototypes' '-Wall' '-g' '-pthread' '-D' 'DEBUG' '-D' '_DEBUG' '-D' 'LINUX' '-D' '_REENTRANT' '-D' '_GNU_SOURCE' '-D' '_LARGEFILE64_SOURCE' '-I' '.' '-I' '/usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3' '-I' '/ffp/include/apr-1' '-I' '/ffp/include' '-v' '-mfloat-abi=soft'
as -mfloat-abi=soft -meabi=5 -o context.o /tmp/ccJ6fqXa.s
COMPILER_PATH=/usr/local/zy-pkgs/ffproot/ffp/bin/../libexec/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/:/usr/local/zy-pkgs/ffproot/ffp/bin/../libexec/gcc/
LIBRARY_PATH=/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/:/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/:/usr/local/zy-pkgs/ffproot/ffp/bin/../lib/gcc/arm-ffp-linux-uclibcgnueabi/4.6.2/../../../:/ffp/lib/
COLLECT_GCC_OPTIONS='-o' 'context.o' '-c' '-std=c90' '-Wdeclaration-after-statement' '-Wmissing-prototypes' '-Wall' '-g' '-pthread' '-D' 'DEBUG' '-D' '_DEBUG' '-D' 'LINUX' '-D' '_REENTRANT' '-D' '_GNU_SOURCE' '-D' '_LARGEFILE64_SOURCE' '-I' '.' '-I' '/usr/local/zy-pkgs/ffproot/ffp/home/root/compile/serf-1.3.3' '-I' '/ffp/include/apr-1' '-I' '/ffp/include' '-v' '-mfloat-abi=soft'