[Crash-utility] [PATCH] extensions: use -m32 for target=MIPS build of eppic

Dave Anderson anderson at redhat.com
Wed Jul 8 21:00:19 UTC 2015



----- Original Message -----
> Dave, Robin, the changes have been made for both MIPS and compiler warnings.
> Dave - I could not test with latest gcc 5.1 myself, but the missing
> prototypes are there and all works with my version of the compiler.
> 
> The eppic source is now hosted on github.
> Please apply the following patch.
> 
> $ git diff --staged --patch
> diff --git a/extensions/ eppic.mk b/extensions/ eppic.mk
> index de3ff4f..9a5eef8 100644
> --- a/extensions/ eppic.mk
> +++ b/extensions/ eppic.mk
> @@ -39,7 +39,7 @@ all:
> git clone "$(EPPIC_GIT_URL)" eppic; \
> else \
> if [ -n "$(GOOGLE)" ] ; then \
> - git clone https://code.google.com/p/eppic eppic; \
> + git clone https://github.com/lucchouina/eppic.git eppic; \
> fi; \
> fi; \
> else \
> 

Thanks Luc -- I was wondering about when you'd be making the switch
since code.google.com repository is going to be history.
 
Speaking of google, the patch above also needs to have the setting of 
$(GOOGLE) changed to ping github.com (and logically renamed $(GITHUB)),
but regardless of that, here's the output from the updated github sources:

# make extensions
... [cut] ...
Cloning into 'eppic'...
remote: Counting objects: 189, done.
remote: Compressing objects: 100% (102/102), done.
remote: Total 189 (delta 74), reused 185 (delta 74), pack-reused 0
Receiving objects: 100% (189/189), 185.64 KiB | 0 bytes/s, done.
Resolving deltas: 100% (74/74), done.
Checking connectivity... done.
cd eppic/libeppic && make
bison -peppic -v -t -d eppic.y
eppic.y: warning: 253 shift/reduce conflicts [-Wconflicts-sr]
eppic.y: warning: 20 reduce/reduce conflicts [-Wconflicts-rr]
cc -O0 -g -fPIC   -c -o eppic_util.o eppic_util.c
cc -O0 -g -fPIC   -c -o eppic_node.o eppic_node.c
cc -O0 -g -fPIC   -c -o eppic_var.o eppic_var.c
cc -O0 -g -fPIC   -c -o eppic_func.o eppic_func.c
cc -O0 -g -fPIC   -c -o eppic_str.o eppic_str.c
cc -O0 -g -fPIC   -c -o eppic_op.o eppic_op.c
cc -O0 -g -fPIC   -c -o eppic_num.o eppic_num.c
cc -O0 -g -fPIC   -c -o eppic_stat.o eppic_stat.c
cc -O0 -g -fPIC   -c -o eppic_builtin.o eppic_builtin.c
cc -O0 -g -fPIC   -c -o eppic_type.o eppic_type.c
cc -O0 -g -fPIC   -c -o eppic_case.o eppic_case.c
cc -O0 -g -fPIC   -c -o eppic_api.o eppic_api.c
cc -O0 -g -fPIC   -c -o eppic_member.o eppic_member.c
cc -O0 -g -fPIC   -c -o eppic_alloc.o eppic_alloc.c
cc -O0 -g -fPIC   -c -o eppic_define.o eppic_define.c
cc -O0 -g -fPIC   -c -o eppic_input.o eppic_input.c
cc -O0 -g -fPIC   -c -o eppic_print.o eppic_print.c
bison -peppicpp -v -t -d eppicpp.y
eppicpp.y: warning: 23 shift/reduce conflicts [-Wconflicts-sr]
cc -O0 -g -fPIC -c eppicpp.tab.c
cc -O0 -g -fPIC -c eppic.tab.c
flex -L -Peppic -t eppic.l > lex.eppic.c
cc -O0 -g -fPIC -c lex.eppic.c
flex -Peppicpp -t eppicpp.l  > lex.eppicpp.c
cc -O0 -g -fPIC -c lex.eppicpp.c
cc -O0 -g -fPIC -o mkbaseop mkbaseop.c
./mkbaseop > baseops.c
cc -O0 -g -fPIC -c baseops.c
ar ccurl libeppic.a eppic_util.o eppic_node.o eppic_var.o eppic_func.o eppic_str.o eppic_op.o eppic_num.o eppic_stat.o eppic_builtin.o eppic_type.o eppic_case.o eppic_api.o eppic_member.o eppic_alloc.o eppic_define.o eppic_input.o eppic_print.o eppicpp.tab.o eppic.tab.o lex.eppic.o lex.eppicpp.o baseops.o
ar: 'u' modifier ignored since 'D' is the default (see 'U')
gcc -g -Ieppic/libeppic -I../gdb-7.6/gdb -I../gdb-7.6/bfd -I../gdb-7.6/include -I../gdb-7.6/gdb/config -I../gdb-7.6/gdb/common -I../gdb-7.6 -nostartfiles -shared -rdynamic -o eppic.so eppic/applications/crash/eppic.c -fPIC -DX86_64 -DGDB_7_6 -Leppic/libeppic -leppic 
eppic/applications/crash/eppic.c: In function 'edit_cmd':
eppic/applications/crash/eppic.c:748:21: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
         while ((c = getopt(argcnt, args, "lf")) != EOF) {
                     ^
...

Thanks,
  Dave






More information about the Crash-utility mailing list