Skip to content

Instantly share code, notes, and snippets.

@jungle-boogie
Created August 22, 2015 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jungle-boogie/3eac24667253560f344b to your computer and use it in GitHub Desktop.
Save jungle-boogie/3eac24667253560f344b to your computer and use it in GitHub Desktop.
make -C dsls put_dsl_parse.o
clang -o lemon lemon.c
lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static preprocess_input(char *z){
~~~~~~ ^
lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
lemon.c:2863:6: warning: use of out-of-scope declaration of 'access'
if (access(buf,004)==0) {
^
lemon.c:2758:13: note: previous declaration is here
extern int access();
^
lemon.c:2865:13: warning: use of out-of-scope declaration of 'access'
} else if (access(templatename,004)==0) {
^
lemon.c:2758:13: note: previous declaration is here
extern int access();
^
lemon.c:3085:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
5 warnings generated.
./lemon put_dsl_parse.y
mv put_dsl_parse.c put_dsl_parse.c.tmp
sed -e 's/ParseTrace/put_dsl_ParseTrace/g' -e 's/ParseTokenName/put_dsl_ParseTokenName/g' -e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' -e 's/lemon_parser_free/put_dsl_lemon_parser_free/g' -e 's/lemon_parser_parse_token/put_dsl_lemon_parser_parse_token/g' -e 's/yy_destructor/put_dsl_yy_destructor/g' put_dsl_parse.c.tmp > put_dsl_parse.c
rm -f put_dsl_parse.c.tmp
clang -I.. -O3 -c -std=gnu99 put_dsl_parse.c
make -C dsls put_dsl_lexer.o
flex --prefix=put_dsl_lexer_ --outfile=put_dsl_lexer.c --header-file=put_dsl_lexer.h put_dsl_lexer.l
clang -I.. -O3 -c -std=gnu99 put_dsl_lexer.c
make -C dsls put_dsl_wrapper.o
clang -Wall -I.. -O3 -c -std=gnu99 put_dsl_wrapper.c
put_dsl_wrapper.c:24:16: warning: implicit declaration of function 'put_dsl_lemon_parser_parse_token' is invalid in C99 [-Wimplicit-function-declaration]
parse_code = put_dsl_lemon_parser_parse_token(pvparser, lex_code, plexed_node, pasts);
^
put_dsl_wrapper.c:61:2: warning: implicit declaration of function 'put_dsl_lemon_parser_free' is invalid in C99 [-Wimplicit-function-declaration]
put_dsl_lemon_parser_free(pvparser, free);
^
2 warnings generated.
make -C dsls filter_dsl_parse.o
./lemon filter_dsl_parse.y
mv filter_dsl_parse.c filter_dsl_parse.c.tmp
sed -e 's/ParseTrace/filter_dsl_ParseTrace/g' -e 's/ParseTokenName/filter_dsl_ParseTokenName/g' -e 's/lemon_parser_alloc/filter_dsl_lemon_parser_alloc/g' -e 's/lemon_parser_free/filter_dsl_lemon_parser_free/g' -e 's/lemon_parser_parse_token/filter_dsl_lemon_parser_parse_token/g' -e 's/yy_destructor/filter_dsl_yy_destructor/g' filter_dsl_parse.c.tmp > filter_dsl_parse.c
rm -f filter_dsl_parse.c.tmp
clang -I.. -O3 -c -std=gnu99 filter_dsl_parse.c
make -C dsls filter_dsl_lexer.o
flex --prefix=filter_dsl_lexer_ --outfile=filter_dsl_lexer.c --header-file=filter_dsl_lexer.h filter_dsl_lexer.l
clang -I.. -O3 -c -std=gnu99 filter_dsl_lexer.c
make -C dsls filter_dsl_wrapper.o
clang -Wall -I.. -O3 -c -std=gnu99 filter_dsl_wrapper.c
filter_dsl_wrapper.c:23:16: warning: implicit declaration of function 'filter_dsl_lemon_parser_parse_token' is invalid in C99 [-Wimplicit-function-declaration]
parse_code = filter_dsl_lemon_parser_parse_token(pvparser, lex_code, plexed_node, past);
^
filter_dsl_wrapper.c:59:2: warning: implicit declaration of function 'filter_dsl_lemon_parser_free' is invalid in C99 [-Wimplicit-function-declaration]
filter_dsl_lemon_parser_free(pvparser, free);
^
2 warnings generated.
clang -std=gnu99 -I. -Wall -Werror -O3 *.c cli/*.c lib/*.c containers/*.c stream/*.c input/*.c mapping/*.c output/*.c ./dsls/put_dsl_parse.o ./dsls/put_dsl_lexer.o ./dsls/put_dsl_wrapper.o ./dsls/filter_dsl_parse.o ./dsls/filter_dsl_lexer.o ./dsls/filter_dsl_wrapper.o -lm -o mlr
clang -g -std=gnu99 -I. -Wall -Werror -D__TEST_MLRUTIL_MAIN__ lib/mlrutil.c lib/test_mlrutil.c -o test-mlrutil
clang -g -std=gnu99 -I. -Wall -Werror -D__TEST_LREC_MAIN__ lib/mlrutil.c lib/mlr_globals.c containers/lrec.c containers/header_keeper.c containers/sllv.c containers/slls.c containers/lhmslv.c input/file_reader_mmap.c input/file_reader_stdio.c input/lrec_reader_mmap_csv.c input/lrec_reader_stdio_csv.c input/lrec_reader_mmap_csvlite.c input/lrec_reader_stdio_csvlite.c input/lrec_reader_mmap_dkvp.c input/lrec_reader_stdio_dkvp.c input/lrec_reader_mmap_nidx.c input/lrec_reader_stdio_nidx.c input/lrec_reader_mmap_xtab.c input/lrec_reader_stdio_xtab.c containers/test_lrec.c -o test-lrec
clang -g -std=gnu99 -I. -Wall -Werror -D__TEST_STRING_BUILDER_MAIN__ lib/mlrutil.c lib/mlr_globals.c lib/string_builder.c lib/test_string_builder.c -o test-string-builder
clang -g -std=gnu99 -I. -Wall -Werror -D__TEST_JOIN_BUCKET_KEEPER_MAIN__ lib/mlrutil.c lib/mlr_globals.c mapping/context.c containers/lrec.c containers/sllv.c containers/slls.c containers/lhmslv.c containers/hss.c containers/mixutil.c containers/header_keeper.c containers/join_bucket_keeper.c input/lrec_reader_in_memory.c input/lrec_readers.c input/lrec_reader_mmap_csv.c input/lrec_reader_stdio_csv.c input/lrec_reader_mmap_csvlite.c input/lrec_reader_stdio_csvlite.c input/lrec_reader_mmap_dkvp.c input/lrec_reader_stdio_dkvp.c input/lrec_reader_mmap_nidx.c input/lrec_reader_stdio_nidx.c input/lrec_reader_mmap_xtab.c input/lrec_reader_stdio_xtab.c input/file_reader_mmap.c input/file_reader_stdio.c containers/test_join_bucket_keeper.c -o test-join-bucket-keeper
./test-mlrutil
TEST_MLRUTIL: ALL UNIT TESTS PASSED
Tests passed: 3 of 3
Assertions passed: 22 of 22
./test-lrec
Before rename:
field_count = 3
| phead: 0x8010070a0 | ptail 0x801007100
| prev: 0x0 curr: 0x8010070a0 next: 0x8010070d0 | key: 2 | value: b |
| prev: 0x8010070a0 curr: 0x8010070d0 next: 0x801007100 | key: 3 | value: c |
| prev: 0x8010070d0 curr: 0x801007100 next: 0x0 | key: 4 | value: d |
After rename:
field_count = 3
| phead: 0x8010070a0 | ptail 0x801007100
| prev: 0x0 curr: 0x8010070a0 next: 0x8010070d0 | key: u | value: b |
| prev: 0x8010070a0 curr: 0x8010070d0 next: 0x801007100 | key: 3 | value: c |
| prev: 0x8010070d0 curr: 0x801007100 next: 0x0 | key: 4 | value: d |
Before rename:
field_count = 3
| phead: 0x8010070a0 | ptail 0x801007100
| prev: 0x0 curr: 0x8010070a0 next: 0x8010070d0 | key: u | value: b |
| prev: 0x8010070a0 curr: 0x8010070d0 next: 0x801007100 | key: 3 | value: c |
| prev: 0x8010070d0 curr: 0x801007100 next: 0x0 | key: 4 | value: d |
After rename:
field_count = 2
| phead: 0x8010070a0 | ptail 0x8010070d0
| prev: 0x0 curr: 0x8010070a0 next: 0x8010070d0 | key: u | value: b |
| prev: 0x8010070a0 curr: 0x8010070d0 next: 0x0 | key: 4 | value: c |
TEST_LREC: ALL UNIT TESTS PASSED
Tests passed: 5 of 5
Assertions passed: 84 of 84
./test-string-builder
TEST_STRING_BUILDER: ALL UNIT TESTS PASSED
Tests passed: 1 of 1
Assertions passed: 9 of 9
./test-join-bucket-keeper
----------------------------------------------------------------
test00 enter
left records:
paired is null with rval="(eof)"; ok
unpaired length=0 with rval="(eof)"; ok:
test00 exit
----------------------------------------------------------------
test01 enter
left records:
paired is null with rval="0"; ok
unpaired is null with rval="0"; ok
paired is null with rval="(eof)"; ok
unpaired length=0 with rval="(eof)"; ok:
test01 exit
----------------------------------------------------------------
test0 enter
left records:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="(eof)"; ok
unpaired length=6 with rval="(eof)"; ok:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
test0 exit
----------------------------------------------------------------
test1 enter
left records:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="0"; ok
unpaired is null with rval="0"; ok
paired is null with rval="(eof)"; ok
unpaired length=6 with rval="(eof)"; ok:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
test1 exit
----------------------------------------------------------------
test2 enter
left records:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="6"; ok
unpaired length=6 with rval="6"; ok:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="(eof)"; ok
unpaired length=0 with rval="(eof)"; ok:
test2 exit
----------------------------------------------------------------
test3 enter
left records:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="0"; ok
unpaired is null with rval="0"; ok
paired length=2 with rval="1"; ok:
l=1,b=10
l=1,b=11
unpaired is null with rval="1"; ok
paired length=2 with rval="1"; ok:
l=1,b=10
l=1,b=11
unpaired is null with rval="1"; ok
paired is null with rval="(eof)"; ok
unpaired length=4 with rval="(eof)"; ok:
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
test3 exit
----------------------------------------------------------------
test4 enter
left records:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="2"; ok
unpaired length=2 with rval="2"; ok:
l=1,b=10
l=1,b=11
paired is null with rval="2"; ok
unpaired is null with rval="2"; ok
paired length=3 with rval="3"; ok:
l=3,b=12
l=3,b=13
l=3,b=14
unpaired is null with rval="3"; ok
paired is null with rval="(eof)"; ok
unpaired length=1 with rval="(eof)"; ok:
l=5,b=15
test4 exit
----------------------------------------------------------------
test5 enter
left records:
l=1,b=10
l=1,b=11
l=3,b=12
l=3,b=13
l=3,b=14
l=5,b=15
paired is null with rval="0"; ok
unpaired is null with rval="0"; ok
paired is null with rval="0"; ok
unpaired is null with rval="0"; ok
paired length=2 with rval="1"; ok:
l=1,b=10
l=1,b=11
unpaired is null with rval="1"; ok
paired length=2 with rval="1"; ok:
l=1,b=10
l=1,b=11
unpaired is null with rval="1"; ok
paired is null with rval="2"; ok
unpaired is null with rval="2"; ok
paired is null with rval="2"; ok
unpaired is null with rval="2"; ok
paired length=3 with rval="3"; ok:
l=3,b=12
l=3,b=13
l=3,b=14
unpaired is null with rval="3"; ok
paired length=3 with rval="3"; ok:
l=3,b=12
l=3,b=13
l=3,b=14
unpaired is null with rval="3"; ok
paired is null with rval="4"; ok
unpaired is null with rval="4"; ok
paired is null with rval="4"; ok
unpaired is null with rval="4"; ok
paired length=1 with rval="5"; ok:
l=5,b=15
unpaired is null with rval="5"; ok
paired length=1 with rval="5"; ok:
l=5,b=15
unpaired is null with rval="5"; ok
paired is null with rval="6"; ok
unpaired is null with rval="6"; ok
paired is null with rval="6"; ok
unpaired is null with rval="6"; ok
paired is null with rval="(eof)"; ok
unpaired length=0 with rval="6"; ok:
test5 exit
TEST_JOIN_BUCKET_KEEPER: ALL UNIT TESTS PASSED
Tests passed: 8 of 8
Assertions passed: 62 of 62
DONE
./test/run
make: exec(./test/run) failed (No such file or directory)
*** Error code 1
Stop.
make: stopped in /home/jungle/bin/miller/c
@johnkerl
Copy link

The warnings in c/dsls come from Lemon code I didn't write; it is a low-pri to-do item to clean up those warnings.
The actual problem is the missing file ./test/run -- how did it disappear from your checkout? It should be there; maybe it was manually removed?
https://github.com/johnkerl/miller/blob/master/c/test/run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment