Hello guys,

       I am actually attempting to compile protocol buffer source on
AIX 5.3 and xlC 3.55 .
It seems that I am able to compile it correctly but when it tried to
use created protoc compiler it fails.
So following it the snapshot of what happens when I do make. basically
it can not replace ./$^ with appropriate prerequisites

bash-3.00$ make
        make  all-recursive
Making all in .
Target "all-am" is up to date.
Making all in src
        ./ -I. --cpp_out=.
/bin/sh: ./: 0403-006 Execute permission denied.
make: 1254-004 The error code from the last command is 126.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.


While when I do gmake it works but then it goes in to infinite loop
some where

bash-3.00$ gmake
gmake  all-recursive
gmake[1]: Entering directory `/work/vpatil/protobuf-2.1.0'
Making all in .
gmake[2]: Entering directory `/work/vpatil/protobuf-2.1.0'
gmake[2]: Leaving directory `/work/vpatil/protobuf-2.1.0'
Making all in src
gmake[2]: Entering directory `/work/vpatil/protobuf-2.1.0/src'
./protoc google/protobuf/test.proto -I. --cpp_out=.


* test.proto is the the simplest proto file we can have

test.proto :

package testPackage;

// option optimize_for = SPEED;

message TestAllTypes {
  optional    uint32 optional_int32    =  1;

}



I created this simplest proto file to check whether it works fine. But
when I tried tocompile it with create protoc binary ( .libs/lt-
protoc ) it blocked in infinite loop.

But with "option" uncommented it creates coredump

./src/.libs/lt-protoc src/google/protobuf/test.proto -I. --cpp_out=.
Assertion failed: f == NULL || dynamic_cast<To>(f) != NULL, file  ./
google/protobuf/stubs/common.h, line 282
IOT/Abort trap (core dumped)


In dbx I found following things

File: userid=1104, groupid=1000
pthread_kill(??, ??) at 0xd01246b4
_p_raise(??) at 0xd0124124
raise.raise(??) at 0xd0375b28
abort() at 0xd03d3e78
__assert_c99(??, ??, ??, ??) at 0xd03ded6c
down_cast__Q3_6google8protobuf8internalHPQ3_6google8protobuf19UninterpretedOptionQ3_6google8protobuf7Message_PQ3_6google8protobuf7Message_PQ3_6google8protobuf19UninterpretedOption
(0x2000edb8) at 0xd1d08844
ParseOptionAssignment__Q4_6google8protobuf8compiler6ParserFPQ3_6google8protobuf7Message
(0x2ff223b8, 0x2000dd58) at 0xd1d08ad0
ParseOption__Q4_6google8protobuf8compiler6ParserFPQ3_6google8protobuf7Message
(0x2ff223b8, 0x2000dd58) at 0xd1d09090
ParseTopLevelStatement__Q4_6google8protobuf8compiler6ParserFPQ3_6google8protobuf19FileDescriptorProto
(0x2ff223b8, 0x2ff22450) at 0xd1d0f1e0
Parse__Q4_6google8protobuf8compiler6ParserFPQ4_6google8protobuf2io9TokenizerPQ3_6google8protobuf19FileDescriptorProto
(0x2ff223b8, 0x2ff22368, 0x2ff22450) at 0xd1d0f7d0
FindFileByName__Q4_6google8protobuf8compiler28SourceTreeDescriptorDatabaseFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__PQ3_6google8protobuf19FileDescriptorProto
(0x2ff22678, 0x2000b5c8, 0x2ff22450) at 0xd1d25c28
TryFindFileInFallbackDatabase__Q3_6google8protobuf14DescriptorPoolCFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__
(0x2ff2269c, 0x2000b5c8) at 0xd1b34004
FindFileByName__Q3_6google8protobuf14DescriptorPoolCFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__
(0x2ff2269c, 0x2000b5c8) at 0xd1b34344
Import__Q4_6google8protobuf8compiler8ImporterFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__
(0x2ff22678, 0x2000b5c8) at 0xd1d24144
Run__Q4_6google8protobuf8compiler20CommandLineInterfaceFiPCPCc
(0x2ff22880, 0x4, 0x2ff22a24) at 0xd1755294
main(0x4, 0x2ff22a24) at 0x10002730


while gdb shows up

bash-3.00$ gdb src/.libs/lt-protoc core
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "powerpc-ibm-aix4.3.2.0"...(no debugging
symbols found)...
Core was generated by `lt-protoc'.
Program terminated with signal 6, Aborted.
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...
#0  0xd01246b4 in pthread_kill () from /usr/lib/libpthreads.a
(shr_xpg5.o)
(gdb) where
#0  0xd01246b4 in pthread_kill () from /usr/lib/libpthreads.a
(shr_xpg5.o)
#1  0xd0124128 in _p_raise () from /usr/lib/libpthreads.a(shr_xpg5.o)
#2  0xd0375b2c in raise () from /usr/lib/libc.a(shr.o)
#3  0xd03d3e7c in abort () from /usr/lib/libc.a(shr.o)
#4  0xd03ded70 in __assert_c99 () from /usr/lib/libc.a(shr.o)
#5  0xd1d08848 in google::protobuf::compiler::Parser::RecordLocation
() from /work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a
(libprotobuf.so.4)
#6  0xd1d08ad4 in
google::protobuf::compiler::Parser::ParseOptionAssignment () from /
work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a(libprotobuf.so.4)
#7  0xd1d09094 in google::protobuf::compiler::Parser::ParseOption ()
from /work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a
(libprotobuf.so.4)
#8  0xd1d0f1e4 in
google::protobuf::compiler::Parser::ParseTopLevelStatement () from /
work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a(libprotobuf.so.4)
#9  0xd1d0f7d4 in google::protobuf::compiler::Parser::Parse () from /
work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a(libprotobuf.so.4)
#10 0xd1d25c2c in
FindFileByName__Q4_6google8protobuf8compiler28SourceTreeDescriptorDatabaseFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc
()
   from /work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a
(libprotobuf.so.4)
#11 0xd1b34008 in
TryFindFileInFallbackDatabase__Q3_6google8protobuf14DescriptorPoolCFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__
()
   from /work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a
(libprotobuf.so.4)
#12 0xd1b34348 in
FindFileByName__Q3_6google8protobuf14DescriptorPoolCFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__
()
   from /work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a
(libprotobuf.so.4)
#13 0xd1d24148 in
Import__Q4_6google8protobuf8compiler8ImporterFRCQ2_3std12basic_stringXTcTQ2_3std11char_traitsXTc_TQ2_3std9allocatorXTc__
()
   from /work/vpatil/protobuf-2.1.0/src/.libs/libprotobuf.a
(libprotobuf.so.4)
#14 0xd1755298 in
google::protobuf::compiler::CommandLineInterface::Run () from /work/
vpatil/protobuf-2.1.0/src/.libs/libprotoc.a(libprotoc.so.4)
#15 0x10002734 in main ()
#16 0x100001c4 in __start ()

So assertion failed in r::Parser::ParseOptionAssignment ();

Please provide some inputs on this one.

Thanks & Regards,
Vikram



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to