ConfigureStep() {
SetupCrossEnvironment
NACLPORTS_CPPFLAGS+=" -Dmain=nacl_main -D__GNU_LIBRARY__ -fPIC"
export LIBS+="${NACL_CLI_MAIN_LIB} -lppapi_simple -lnacl_io -lppapi -lpthread -l${NACL_CPP_LIB}"
DefaultConfigureStep
}
BuildStep() {
DefaultBuildStep
}
PublishStep() {
PublishByArchForDevEnv
}
gcc -g -O2 -DNDEBUG -export-dynamic -o gawk array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lsigsegv -lreadline -lmpfr -lgmp -ldl -lm -lm
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DNDEBUG -O2 -DNDEBUG -L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/newlib_x86_64/Release -o gawk.nexe array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lm -lm
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DNDEBUG -O2 -DNDEBUG -L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/newlib_x86_64/Release -o gawk.nexe array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lmpfr -lgmp -lm -lm
######################################################################Building gawk######################################################################chdir /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_glibcmake -j4make 'CFLAGS=-DNDEBUG -O2 -DNDEBUG' 'LDFLAGS=-L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/glibc_x86_64/Release -Wl,-rpath-link=/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/glibc_x86_64/Release' all-recursivemake[1]: Entering directory '/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_glibc'Making all in .make[2]: Entering directory '/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_glibc'/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT array.o -MD -MP -MF .deps/array.Tpo -c -o array.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/array.c/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT awkgram.o -MD -MP -MF .deps/awkgram.Tpo -c -o awkgram.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/awkgram.c/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT builtin.o -MD -MP -MF .deps/builtin.Tpo -c -o builtin.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/builtin.c/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT cint_array.o -MD -MP -MF .deps/cint_array.Tpo -c -o cint_array.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/cint_array.c
mv -f .deps/cint_array.Tpo .deps/cint_array.Po/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/command.cmv -f .deps/array.Tpo .deps/array.Po/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/debug.cmv -f .deps/command.Tpo .deps/command.Po/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -DNDEBUG -O2 -DNDEBUG -MT dfa.o -MD -MP -MF .deps/dfa.Tpo -c -o dfa.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.cIn file included from /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.c:92:/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h: In function ‘xnmalloc’:/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:132: error: ‘ptrdiff_t’ undeclared (first use in this function)/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:132: error: (Each undeclared identifier is reported only once/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:132: error: for each function it appears in.)In file included from /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.c:92:/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h: In function ‘xnrealloc’:/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:190: error: ‘ptrdiff_t’ undeclared (first use in this function)Makefile:683: recipe for target 'dfa.o' failedmake[2]: *** [dfa.o] Error 1make[2]: *** Waiting for unfinished jobs....mv -f .deps/builtin.Tpo .deps/builtin.Pomv -f .deps/awkgram.Tpo .deps/awkgram.Pomv -f .deps/debug.Tpo .deps/debug.Pomake[2]: Leaving directory '/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_glibc'Makefile:727: recipe for target 'all-recursive' failedmake[1]: *** [all-recursive] Error 1make[1]: Leaving directory '/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_glibc'Makefile:546: recipe for target 'all' failedmake: *** [all] Error 2naclports: Building gawk: failed.
<more output...>
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DNDEBUG -O2 -DNDEBUG -L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/newlib_x86_64/Release -o gawk.nexe array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lmpfr -lgmp -lm -lm
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/lib/../lib64/libcrt_common.a(lib_a-getopt.o): In function `getopt_long_only':getopt.c:(.text+0x1600): multiple definition of `getopt_long_only'getopt1.o:getopt1.c:(.text+0xa0): first defined here/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/lib/../lib64/libcrt_common.a(lib_a-getopt.o):(.bss+0x4): multiple definition of `optind'getopt.o:(.data+0x0): first defined here/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/lib/../lib64/libcrt_common.a(lib_a-getopt.o):(.data+0x0): multiple definition of `opterr'getopt.o:(.data+0x4): first defined here/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/lib/../lib64/libcrt_common.a(lib_a-getopt.o):(.data+0x4): multiple definition of `optopt'getopt.o:(.data+0x8): first defined here/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/lib/../lib64/libcrt_common.a(lib_a-getopt.o): In function `getopt_long':getopt.c:(.text+0x16c0): multiple definition of `getopt_long'getopt1.o:getopt1.c:(.text+0xe0): first defined here/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/lib/../lib64/libcrt_common.a(lib_a-getopt.o): In function `getopt':getopt.c:(.text+0x1780): multiple definition of `getopt'getopt.o:getopt.c:(.text+0x1e60): first defined herecollect2: ld returned 1 exit statusMakefile:643: recipe for target 'gawk.nexe' failedmake[2]: *** [gawk.nexe] Error 1make[2]: Leaving directory '/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_newlib'
Makefile:727: recipe for target 'all-recursive' failedmake[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_newlib'
Makefile:546: recipe for target 'all' failedmake: *** [all] Error 2naclports: Building gawk: failed.
./gawk.nexe: NaCl module load failed: Nexe crashed during startup
./gawk.nexe: NaCl module load failed: Nexe crashed during startup
[... more lines ...]
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DNDEBUG -O2 -DNDEBUG -Dmain=nacl_main -D__GNU_LIBRARY__ -I. -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/include -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_newlib/../gawk-4.1.1/ -o gawk.nexe array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lmpfr -lgmp -lm -lm -lppapi_simple -lnacl_io -lppapi -lpthread
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/bin/ld: cannot find -lppapi_simple
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/bin/ld: cannot find -lnacl_io
collect2: ld returned 1 exit status
naclports: Building gawk: failed.
Hi SamI've gone through the build process for gawk on Linux. While trying to understand why the default build didn't work, I revisited the log I gave you in my previous post. Here's what I've tried :(1) Changing the Makefile.amBecause gawk uses an autoconf build, so I tried changing the Makefile.am, since every final makefile on Linux was being made from this file. A change in the Makefile.am required however that I also downgrade my automake from 1.15 to 1.13, for which the original Makefile was intended. This however, caused a lot of issues with the files around in that folder. At this point, I'd like to ask you something : what is the standard procedure to modify Makefile.am for ports? I feel I've messed up something.
(2) Detailing build.sh with the build instructions I got from the logReading the log in my previous post, I found out that if I ran those bash commands again via build.sh in my port, then I might be able to build a gawk nexe, not to forget the idea that I could link my gawk build to ppapi, nacl_io at the least. So, I added those commands into my build.sh in an attempt (and it has been five days tinkering with it without any avail) to get a proper gawk executable. Here's the failure log
[... more lines ...]
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DNDEBUG -O2 -DNDEBUG -Dmain=nacl_main -D__GNU_LIBRARY__ -I. -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/include -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_newlib/../gawk-4.1.1/ -o gawk.nexe array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lmpfr -lgmp -lm -lm -lppapi_simple -lnacl_io -lppapi -lpthread
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/bin/ld: cannot find -lppapi_simple
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary/toolchain/linux_x86_newlib/bin/../lib/gcc/x86_64-nacl/4.4.3/../../../../x86_64-nacl/bin/ld: cannot find -lnacl_io
collect2: ld returned 1 exit status
naclports: Building gawk: failed.I fail to see why it cannot find the linked libraries, even though I included those. Is it the order of included files (-I*) or the order of linked libraries (-l*) ?
Apologies if anything I ask is way too basic,Regards & ThanksAshish
--
[... pre build, configure lines ...]
######################################################################
Building gawk
######################################################################
chdir /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/build_x86-64_newlib
CPPFLAGS=-I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include
CFLAGS= -Dmain=nacl_main -fPIC -DNDEBUG -O2
CXXFLAGS= -DNDEBUG -O2
LDFLAGS=-L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/newlib_x86_64/Release -Xlinker -uPSUserMainGet -lcli_main -lnacl_spawn -lppapi_simple -lnacl_io -lppapi -lstdc++
make -j4 LDFLAGS=-Dmain=nacl_main -D__GNU_LIBRARY__ -L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/newlib_x86_64/Release -Xlinker -uPSUserMainGet -lcli_main -lnacl_spawn -lppapi_simple -lnacl_io -lppapi -lstdc++ CFLAGS= -Dmain=nacl_main -fPIC -DNDEBUG -O2 gawk.nexe
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT array.o -MD -MP -MF .deps/array.Tpo -c -o array.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/array.c
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT awkgram.o -MD -MP -MF .deps/awkgram.Tpo -c -o awkgram.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/awkgram.c
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT builtin.o -MD -MP -MF .deps/builtin.Tpo -c -o builtin.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/builtin.c
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT cint_array.o -MD -MP -MF .deps/cint_array.Tpo -c -o cint_array.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/cint_array.c
mv -f .deps/cint_array.Tpo .deps/cint_array.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/command.c
mv -f .deps/array.Tpo .deps/array.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/debug.c
mv -f .deps/command.Tpo .deps/command.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT dfa.o -MD -MP -MF .deps/dfa.Tpo -c -o dfa.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.c
mv -f .deps/builtin.Tpo .deps/builtin.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT eval.o -MD -MP -MF .deps/eval.Tpo -c -o eval.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/eval.c
mv -f .deps/awkgram.Tpo .deps/awkgram.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT ext.o -MD -MP -MF .deps/ext.Tpo -c -o ext.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/ext.c
mv -f .deps/debug.Tpo .deps/debug.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT field.o -MD -MP -MF .deps/field.Tpo -c -o field.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/field.c
mv -f .deps/ext.Tpo .deps/ext.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT floatcomp.o -MD -MP -MF .deps/floatcomp.Tpo -c -o floatcomp.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/floatcomp.c
mv -f .deps/dfa.Tpo .deps/dfa.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT gawkapi.o -MD -MP -MF .deps/gawkapi.Tpo -c -o gawkapi.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/gawkapi.c
mv -f .deps/gawkmisc.Tpo .deps/gawkmisc.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/getopt.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT int_array.o -MD -MP -MF .deps/int_array.Tpo -c -o int_array.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/int_array.c
mv -f .deps/gawkapi.Tpo .deps/gawkapi.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT io.o -MD -MP -MF .deps/io.Tpo -c -o io.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/io.c
mv -f .deps/int_array.Tpo .deps/int_array.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/main.c
mv -f .deps/field.Tpo .deps/field.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT mpfr.o -MD -MP -MF .deps/mpfr.Tpo -c -o mpfr.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/mpfr.c
mv -f .deps/main.Tpo .deps/main.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT msg.o -MD -MP -MF .deps/msg.Tpo -c -o msg.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/msg.c
mv -f .deps/msg.Tpo .deps/msg.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT node.o -MD -MP -MF .deps/node.Tpo -c -o node.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/node.c
mv -f .deps/mpfr.Tpo .deps/mpfr.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT profile.o -MD -MP -MF .deps/profile.Tpo -c -o profile.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/profile.c
mv -f .deps/io.Tpo .deps/io.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT random.o -MD -MP -MF .deps/random.Tpo -c -o random.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/random.c
mv -f .deps/node.Tpo .deps/node.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT re.o -MD -MP -MF .deps/re.Tpo -c -o re.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/re.c
mv -f .deps/random.Tpo .deps/random.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT regex.o -MD -MP -MF .deps/regex.Tpo -c -o regex.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/regex.c
mv -f .deps/re.Tpo .deps/re.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT replace.o -MD -MP -MF .deps/replace.Tpo -c -o replace.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/replace.c
mv -f .deps/replace.Tpo .deps/replace.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT str_array.o -MD -MP -MF .deps/str_array.Tpo -c -o str_array.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/str_array.c
mv -f .deps/profile.Tpo .deps/profile.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT symbol.o -MD -MP -MF .deps/symbol.Tpo -c -o symbol.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/symbol.c
mv -f .deps/str_array.Tpo .deps/str_array.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT version.o -MD -MP -MF .deps/version.Tpo -c -o version.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/version.c
mv -f .deps/version.Tpo .deps/version.Po
mv -f .deps/symbol.Tpo .deps/symbol.Po
mv -f .deps/eval.Tpo .deps/eval.Po
mv -f .deps/regex.Tpo .deps/regex.Po
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc -Dmain=nacl_main -fPIC -DNDEBUG -O2 -Dmain=nacl_main -D__GNU_LIBRARY__ -L/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//lib/newlib_x86_64/Release -Xlinker -uPSUserMainGet -lcli_main -lnacl_spawn -lppapi_simple -lnacl_io -lppapi -lstdc++ -o gawk.nexe array.o awkgram.o builtin.o cint_array.o command.o debug.o dfa.o eval.o ext.o field.o floatcomp.o gawkapi.o gawkmisc.o getopt.o getopt1.o int_array.o io.o main.o mpfr.o msg.o node.o profile.o random.o re.o regex.o replace.o str_array.o symbol.o version.o -lmpfr -lgmp -lm -lm
[... post build lines ...]
gawk.nexe: warning: file `/home/user/a.txt': could not get fd flags: (fcntl F_GETFD: Function not implemented)
(2) How does building for GlibC work? I know (from bzip2) that I have to get all the important libraries somewhere into payload perhaps, but how do I test to see if my port is working?
(3) How do I get my code into naclports? Or maybe, I should get it to naclports after I've tried to build it for PNaCl and GlibC?
(4) Are there coding style guidelines for bash?
Thanks and RegardsAshish
Also, you should be away that one of the main missing features of nacl_io today is lack to support for unnamed pipes, so building piped command lines won't work in bash today.(2) How does building for GlibC work? I know (from bzip2) that I have to get all the important libraries somewhere into payload perhaps, but how do I test to see if my port is working?I would just start by trying to run it in devenv.(3) How do I get my code into naclports? Or maybe, I should get it to naclports after I've tried to build it for PNaCl and GlibC?You can use 'git cl upload' to upload your change for review and send it out to either brad or myself.(4) Are there coding style guidelines for bash?Nothing written down I'm afraid. Just try to match the local conventions. (80 column max, two space indentation, CamelCase for function names).
fcntl can be tricky. We probably need to do something with it generally (I've finally filled an issue: http://crbug.com/472155 ).Because it uses varargs, we don't have a runtime interception hook for it in our libcs, and instead rely on link order (which can be dicey in the face of different build systems).A workaround we've used in a few of the ports is this (patched into a port in front of a fcntl call site):#if defined(__native_client__)#include "nacl_io/kernel_intercept.h"#include "nacl_io/kernel_wrap.h"#include <stdarg.h>/** TODO(bradnelson): Drop this when fcntl is sorted out in nacl_io.* Explicitly use nacl_fcntl.* When built as a shared library, without this emacs seems to hit stubs.*/int nacl_fcntl(int fd, int cmd, ...) {va_list ap;va_start(ap, cmd);int rtn = ki_fcntl(fd, cmd, ap);va_end(ap);return rtn;}#define fcntl nacl_fcntl#endif
(2) Just as a newlib port (static) can thought of as successful when the singular nexe runs fine on Dev Environment, what should I do for a GlibC port? I remember the fact that GlibC is done usually before newlib, but here I've completed newlib first. How do I do a GlibC port from here? More importantly, how do I deem a port successful for GlibC? It's a dynamic build, so do I need all the files related on my Dev Environment (if it involves the devenv)?
(3) What about PNaCl? Does a pexe run on Dev Environment?
Even a pointer to any answer of the above would be useful.Thanks & RegardsAshish
--
$ bin/naclports --toolchain pnacl|newlib|glibc build gawk
# Copyright (c) 2014 The Native Client Authors. All rights reserved.# Use of this source code is governed by a BSD-style license that can be# found in the LICENSE file.
# define __GNU_LIBRARY__ because of issues with getopt# getopt.c and getopt1.c have been commented for buildNACLPORTS_CFLAGS+=" -D__GNU_LIBRARY__ -D__native_client__ -Dmain=nacl_main \ -fPIC"
export NACLPORTS_LDFLAGS+=" ${NACL_CLI_MAIN_LIB} -lppapi_simple -lnacl_io \ -lppapi -l${NACL_CPP_LIB}"
ConfigureStep() { DefaultConfigureStep}
BuildStep() { SetupCrossEnvironment
EXTRA_LIBS="" if [ "${NACL_LIBC}" = "glibc" ]; then # required for a dynamic build EXTRA_LIBS+=" -ldl " fi # including readline because it is not linked otherwise LogExecute make -j${OS_JOBS} LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \ LIBS="-lreadline ${EXTRA_LIBS} -lm -lm" gawk${NACL_EXEEXT} }
InstallStep() { return}
PublishStep() { PublishByArchForDevEnv}
[... more lines ...]
/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//toolchain/linux_x86_glibc/bin/x86_64-nacl-gcc -DDEFPATH='".:/naclports-dummydir/share/awk"' -DDEFLIBPATH="\"/naclports-dummydir/lib/gawk\"" -DSHLIBEXT="\"so"\" -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/naclports-dummydir/share/locale"' -I. -I/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1 -I/home/agaurav77/Programs/NaCl/nacl_sdk/pepper_canary//include -D__GNU_LIBRARY__ -D__native_client__ -Dmain=nacl_main -fPIC -DNDEBUG -O2 -MT dfa.o -MD -MP -MF .deps/dfa.Tpo -c -o dfa.o /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.c
In file included from /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.c:92:
/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h: In function ‘xnmalloc’:
/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:132: error: ‘ptrdiff_t’ undeclared (first use in this function)
/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:132: error: (Each undeclared identifier is reported only once
/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:132: error: for each function it appears in.)
In file included from /home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/dfa.c:92:
/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h: In function ‘xnrealloc’:
/home/agaurav77/Programs/NaCl/naclports/src/out/build/gawk/gawk-4.1.1/xalloc.h:190: error: ‘ptrdiff_t’ undeclared (first use in this function)
Makefile:683: recipe for target 'dfa.o'
failed
make: *** [dfa.o] Error 1
make: *** Waiting for unfinished jobs....
mv -f .deps/builtin.Tpo .deps/builtin.Po
mv -f .deps/awkgram.Tpo .deps/awkgram.Po
mv -f .deps/debug.Tpo .deps/debug.Po
naclports: Building gawk: failed.
(2) Sel_Ldr & nmf filesDo I need to add a TranslateAndWriteSelLdrScript, or create a .nmf for my final pexe and relevant nexes?
(3) Better Ways for TestingI know it has been told to me before that for testing purposes, people run a custom httpd python server and access the nexe/pexe as required. Unfortunately that trick didn't work for me. I think running a custom server will make the nexes/pexes available to Chrome, but how do I access them in devenv? It's a bit tiring uploading it somewhere and then downloading it on devenv with curl for testing.
Thanks & RegardsAshish
Hi allAfter a bit of playing around with build.sh to get the desired build, I finally got my port to pass the ./make_all.sh gawk test. Now gawk builds for all the four platforms x86_64 (glibc, newlib), i686 (clang-newlib, glibc, newlib), arm (clang-newlib, newlib) and pnacl. Thank you all for being patient with me.The only formality left I guess is to personally try the nexes through changes in devenv, or via SelLdr commands found in common.sh, before I submit my port for review (trying to be double sure). Wrapper questions -(1) I guess an .nmf might not be needed, since gawk is not really a kind of web based port. Possible uses include gawk being used as a command line utility in the devenv, rather than serving a webpage. Please correct me?
(2) Should I make custom tests using SelLdr (saw sqlite)?
(3) Also, it looks like its not possible for me to use the devenv provided in naclports. I'm on Arch Linux, so it requires me to have CHROME-DEVEL-SANDBOX. Can someone provide a download link? I couldn't find anything for downloads even after reading "https://code.google.com/p/chromium/wiki/LinuxSUIDSandbox". Currently using Webstore's devenv.
(4) Should I file a bug before I submit my code for review, even if its just adding a feature?
One more thing : what are CQ dry runs?
--