This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
What a surprise.. Exact same situation here. I am doing exact same expts and exact same sequence of events happened to me. That is very strange. But I have not found any solution yet. What are you running your code on/ -linux_newbie --- Amy Smith <smith_amy1977@yahoo.com> wrote: > Hi, > > I am getting segmentation fault with > mcount@glibc-2.3.2 even when my program contains only > printf statement. I have sent this problem to > crossgcc. But no luck in getting back any reply. > > Anyways- I have two partitions cramfs and jffs2. When > i execute ./hello on cramfs, it exits with message > _mcleanup exits no permission, which makes sense > because cramfs is read only. So that means it executes > nicely till _mcleanup > > But on jffs2, which is READ/WRITE the program just > keep running untill i press enter. Then it displays > Segmentation Fault.. no core file nothing. > > Do you know if anybody has solved this problem? I have > seen many post stating same problem but no answer. > Maybe this does not interest you... > > thanks for your reply > regards, > Amy > > > > > --- Njuguna Njoroge <njuguna.njoroge@xilinx.com> > wrote: > > Dan Kegel wrote: > > > > > Njuguna Njoroge wrote: > > > > Hello Daniel, > > > > > > > > First of all, I would like to thank you for your > > resourceful website and > > > > tools. I have been using the crosstools to > > extract gprof that is > > > > crosscompiled for the powerpc-405. Since gprof > > is supposed to work on > > > > various formatted binaries, it is in the > > native_only list in the > > > > configure.in file (see this discussion: > > > > > > > http://sources.redhat.com/ml/sid/2002-q2/msg00039.html). > > However, we > > > > want a crosscompiled version (like the > > executables that have the > > > > powerpc-405 prefix) because we found that gprof > > on a linux x86 handles > > > > ppc elf files differently than gprof on a linux > > ppc405. > > > > > > What was the symptom? Did things generally work, > > or was native gprof > > > totally unable to process cross-profiles? I seem > > to recall it > > > just working when I tried using an x86 gprof with > > ppc405 binaries, > > > but then I might be forgetting something. > > > > x86 gprof will work on ppc405 binaries. However, we > > noticed that it doesn't work as well as ppc405 gprof > > on ppc405 binaries. For some reason, x86 gprof > > reports that some functions were called that were > > never called. > > Fortunately, these extra functions do not influence > > the real results because they typically "run" for < > > 1% of the total runtime. > > > > > > I followed the > > > > suggestions in the link above, but no such > > executable was generated. > > > > > > Heh. Looks like you need to change configure, not > > just configure.in. > > > (Unless you're regenerating configure from > > configure.in.) > > > I just tried it, and got > > powerpc-405-linux-gnu-gprof as ordered. > > > > > > > Thanks! I updated the configure file as well and > > this fixed it. > > > > > > > > > ... I'm sure there are some obvious steps I am > > overlooking. Nonetheless, if > > > > you could spare a few moments and provide some > > pointers, I would be > > > > grateful. Additionally/Alternatively, if you > > know of any discussion > > > > groups/e-mail lists to which I can post my > > questions, please refer them > > > > to me. > > > > > > I'm cc'ing this to the crossgcc list. > > > The binutils mailing list also comes to mind. > > > - Dan > > > > > > p.s. Here's a patch that does what the message > > suggested, but > > > does it to both files: > > > > > > --- binutils-2.15/configure.old 2004-07-21 > > 21:36:47.000000000 -0700 > > > +++ binutils-2.15/configure 2004-07-21 > > 21:37:08.000000000 -0700 > > > @@ -999,7 +999,7 @@ > > > > > > # Some tools are only suitable for building in a > > "native" situation. > > > # Remove these if host!=target. > > > -native_only="autoconf automake libtool fileutils > > find gawk gettext gzip hello indent m4 rcs recode > > sed shellutils tar textutils uudecode wdiff gprof > > target-groff guile perl time ash bash bzip2 prms > > gnuserv target-gperf" > > > +native_only="autoconf automake libtool fileutils > > find gawk gettext gzip hello indent m4 rcs recode > > sed shellutils tar textutils uudecode wdiff > > target-groff guile perl time ash bash bzip2 prms > > gnuserv target-gperf" > > > > > > # Similarly, some are only suitable for cross > > toolchains. > > > # Remove these if host=target. > > > --- binutils-2.15/configure.in.old 2004-07-21 > > 21:37:19.000000000 -0700 > > > +++ binutils-2.15/configure.in 2004-07-21 > > 21:37:34.000000000 -0700 > > > @@ -236,7 +236,7 @@ > > > > > > # Some tools are only suitable for building in a > > "native" situation. > > > # Remove these if host!=target. > > > -native_only="autoconf automake libtool fileutils > > find gawk gettext gzip hello indent m4 rcs recode > > sed shellutils tar textutils uudecode wdiff gprof > > target-groff guile perl time ash bash bzip2 prms > > gnuserv target-gperf" > > > +native_only="autoconf automake libtool fileutils > > find gawk gettext gzip hello indent m4 rcs recode > > sed shellutils tar textutils uudecode wdiff > > target-groff guile perl time ash bash bzip2 prms > > gnuserv target-gperf" > > > > > > # Similarly, some are only suitable for cross > > toolchains. > > > # Remove these if host=target. > > > > > > -- > > > My technical stuff: http://kegel.com > > > My politics: see http://www.misleader.org for > > examples of why I'm for regime change > > > begin:vcard > > n:Njoroge;Njuguna > > tel;work:(408) 879 4873 > > x-mozilla-html:FALSE > > adr:;;;;;; > > version:2.1 > > email;internet:nju.njoroge@xilinx.com > > title:Embedded Networking Engineering Intern > > fn:Njuguna Njoroge > > end:vcard > > > > > ------ > > Want more information? See the CrossGCC FAQ, > > http://www.objsw.com/CrossGCC/ > > Want to unsubscribe? Send a note to > crossgcc-unsubscribe@sources.redhat.com > > > > > > __________________________________ > Do you Yahoo!? > Vote for the stars of Yahoo!'s next ad campaign! > http://advision.webevents.yahoo.com/yahoo/votelifeengine/ > > ------ > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com > > __________________________________ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |