Code:
other@XYZ:~/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb$ make
ext_pfx=.clang
include gnu.mak
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/agedby.c.clang.o -c src/basic/agedby.c
In file included from include/basic/shared.h:5,
from include/basic/agedby.h:5,
from src/basic/agedby.c:1:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/branch.c.clang.o -c src/basic/branch.c
In file included from include/basic/shared.h:5,
from include/basic/branch.h:4,
from include/basic/_/_branch.h:3,
from src/basic/branch.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/buffer.c.clang.o -c src/basic/buffer.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from src/basic/buffer.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/defect.c.clang.o -c src/basic/defect.c
In file included from src/basic/defect.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/encode.c.clang.o -c src/basic/encode.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/encode.h:3,
from src/basic/encode.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/moment.c.clang.o -c src/basic/moment.c
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/pipefd.c.clang.o -c src/basic/pipefd.c
In file included from include/basic/pipeio.h:4,
from src/basic/pipefd.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/shared.c.clang.o -c src/basic/shared.c
In file included from include/basic/shared.h:5,
from src/basic/shared.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/thread.c.clang.o -c src/basic/thread.c
In file included from include/basic/thread.h:4,
from src/basic/thread.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/buffer/dints.c.clang.o -c src/basic/buffer/dints.c
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/buffer/voids.c.clang.o -c src/basic/buffer/voids.c
In file included from include/basic/shared.h:5,
from include/basic/buffer/voids.h:4,
from src/basic/buffer/voids.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/achs.c.clang.o -c src/basic/string/achs.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/achs.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/c16s.c.clang.o -c src/basic/string/c16s.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/c16s.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/c32s.c.clang.o -c src/basic/string/c32s.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/c32s.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/tchs.c.clang.o -c src/basic/string/tchs.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/tchs.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/text.c.clang.o -c src/basic/string/text.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/text.c:1:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/uchs.c.clang.o -c src/basic/string/uchs.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/uchs.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o src/basic/string/wchs.c.clang.o -c src/basic/string/wchs.c
In file included from include/basic/shared.h:5,
from include/basic/buffer.h:4,
from include/basic/_/_buffer.h:3,
from include/basic/_/_string.h:3,
from src/basic/string/wchs.c:2:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
cc -fPIC -shared -Wl,-rpath,. -fPIC -shared -o bin/libbasic.clang.so src/basic/agedby.c.clang.o src/basic/branch.c.clang.o src/basic/buffer.c.clang.o src/basic/defect.c.clang.o src/basic/encode.c.clang.o src/basic/moment.c.clang.o src/basic/pipefd.c.clang.o src/basic/shared.c.clang.o src/basic/thread.c.clang.o src/basic/buffer/dints.c.clang.o src/basic/buffer/voids.c.clang.o src/basic/string/achs.c.clang.o src/basic/string/c16s.c.clang.o src/basic/string/c32s.c.clang.o src/basic/string/tchs.c.clang.o src/basic/string/text.c.clang.o src/basic/string/uchs.c.clang.o src/basic/string/wchs.c.clang.o -l pthread -l dl -l m
cc -Wall -Wextra -fPIC -D _EXT_PFX=".clang" -D USING=gnu.mak -D _DIR="/home/other/temp/dragonbuilder-b2410d607f591fc40124f1f6075251ede82190bb" -o test/basic/main.c.clang.o -c test/basic/main.c
In file included from include/basic/thread.h:4,
from test/basic/main.c:1:
include/basic/defect.h:59: warning: "ECHO_CODE" redefined
59 | #define ECHO_CODE( OUT, X ) X
|
include/basic/defect.h:47: note: this is the location of the previous definition
47 | #define ECHO_CODE( OUT, X ) fprintf( OUT, LINEF "%s\n", LINEV, #X ); X
|
test/basic/main.c: In function ‘TestPseudoMutex’:
test/basic/main.c:17:14: error: ‘SRC’ undeclared (first use in this function)
17 | void *ud = (SRC*)act;
| ^~~
test/basic/main.c:17:14: note: each undeclared identifier is reported only once for each function it appears in
test/basic/main.c:17:18: error: expected expression before ‘)’ token
17 | void *ud = (SRC*)act;
| ^
test/basic/main.c:21:3: warning: implicit declaration of function ‘PauseThread’; did you mean ‘MakeThread’? [-Wimplicit-function-declaration]
21 | PauseThread();
| ^~~~~~~~~~~
| MakeThread
test/basic/main.c:24:2: warning: implicit declaration of function ‘GrabSiData’; did you mean ‘GrabMiData’? [-Wimplicit-function-declaration]
24 | GrabSiData( &global_sidata, src, stdout );
| ^~~~~~~~~~
| GrabMiData
test/basic/main.c:24:15: error: ‘global_sidata’ undeclared (first use in this function)
24 | GrabSiData( &global_sidata, src, stdout );
| ^~~~~~~~~~~~~
test/basic/main.c:24:30: error: ‘src’ undeclared (first use in this function)
24 | GrabSiData( &global_sidata, src, stdout );
| ^~~
test/basic/main.c:17:8: warning: unused variable ‘ud’ [-Wunused-variable]
17 | void *ud = (SRC*)act;
| ^~
test/basic/main.c: In function ‘HelloWorld’:
test/basic/main.c:36:14: error: ‘SRC’ undeclared (first use in this function)
36 | void *ud = (SRC*)act;
| ^~~
test/basic/main.c:36:18: error: expected expression before ‘)’ token
36 | void *ud = (SRC*)act;
| ^
test/basic/main.c:38:16: warning: implicit declaration of function ‘ThreadSeekRidsVoids’; did you mean ‘SeekRidsVoids’? [-Wimplicit-function-declaration]
38 | VOIDS *rids = ThreadSeekRidsVoids(act);
| ^~~~~~~~~~~~~~~~~~~
| SeekRidsVoids
test/basic/main.c:38:16: warning: initialization of ‘VOIDS *’ {aka ‘struct _BUFFER *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
test/basic/main.c:39:28: error: ‘top’ undeclared (first use in this function)
39 | ARGS *args = SeekThreadUD(top);
| ^~~
test/basic/main.c:42:35: error: expected expression before ‘)’ token
42 | args->stdout_rid = MakeRid( (SRC*)act, stdout );
| ^
test/basic/main.c:42:21: error: too few arguments to function ‘MakeRid’
42 | args->stdout_rid = MakeRid( (SRC*)act, stdout );
| ^~~~~~~
In file included from include/basic/thread.h:9,
from test/basic/main.c:1:
include/basic/buffer/voids.h:14:12: note: declared here
14 | BASIC uint MakeRid( void *ud, void *ptr );
| ^~~~~~~
test/basic/main.c:44:15: error: ‘global_sidata’ undeclared (first use in this function)
44 | GrabSiData( &global_sidata, src, stdout );
| ^~~~~~~~~~~~~
test/basic/main.c:44:30: error: ‘src’ undeclared (first use in this function)
44 | GrabSiData( &global_sidata, src, stdout );
| ^~~
test/basic/main.c:37:10: warning: unused variable ‘anchor’ [-Wunused-variable]
37 | THREAD *anchor = AnchorThread();
| ^~~~~~
test/basic/main.c:36:8: warning: unused variable ‘ud’ [-Wunused-variable]
36 | void *ud = (SRC*)act;
| ^~
test/basic/main.c: In function ‘main’:
test/basic/main.c:84:21: warning: passing argument 1 of ‘ExecThreads’ makes pointer from integer without a cast [-Wint-conversion]
84 | err = ExecThreads( true, HelloWorld );
| ^~~~
| |
| int
In file included from test/basic/main.c:1:
include/basic/thread.h:29:32: note: expected ‘void *’ but argument is of type ‘int’
29 | BASIC dint ExecThreads( void *ud, bool debug, Thread_cb Run );
| ~~~~~~^~
test/basic/main.c:84:2: warning: the address of ‘HelloWorld’ will always evaluate as ‘true’ [-Waddress]
84 | err = ExecThreads( true, HelloWorld );
| ^~~
test/basic/main.c:84:8: error: too few arguments to function ‘ExecThreads’
84 | err = ExecThreads( true, HelloWorld );
| ^~~~~~~~~~~
In file included from test/basic/main.c:1:
include/basic/thread.h:29:13: note: declared here
29 | BASIC dint ExecThreads( void *ud, bool debug, Thread_cb Run );
| ^~~~~~~~~~~
make: *** [gnu.mak:67: test/basic/main.c.clang.o] Error 1