public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: haverkam@de.ibm.com To: gcc-gnats@gcc.gnu.org Cc: doehler@de.ibm.com Subject: c/3001: option -fprofile-arcs does not work with my powerpc-linux-gcc Date: Wed, 30 May 2001 07:46:00 -0000 [thread overview] Message-ID: <20010530144132.3746.qmail@sourceware.cygnus.com> (raw) >Number: 3001 >Category: c >Synopsis: option -fprofile-arcs does not work with my powerpc-linux-gcc >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed May 30 07:46:02 PDT 2001 >Closed-Date: >Last-Modified: >Originator: haverkam@de.ibm.com >Release: gcc version 2.95.2 19991030 (2.95.3 prerelease/franzo) >Organization: >Environment: The hostsystem is based on Redhat 7.1 The crosscompiler which caused the error was compiled with the following options in the RPM-specfile: ./configure \ --host=$my_arch \ --target=powerpc-linux \ --prefix=%{ROOT}/$my_arch/local \ --enable-shared \ --enable-languages="c,c++,f77" \ --with-headers=%{ROOT}/%{TARGET}/include \ --with-libs=%{ROOT}/%{TARGET}/lib \ --with-cpu=403 --without-fp and should produce code for a PowerPC 405GP. We applied 2 Patches: gcc-2.95.2-franz.patch gcc-powerpc-fpu.patch The compiler works fine and compiles the linuxkernel and the libraries without any problems. >Description: I tried to get gcov and gprof running on my crosscompiling environment. Unfortunatly I got some errors compiling my testprogram for the target. The host gcc works fine and causes no problems with the same options and sources. 1. gprof ======= My powerpc-linux-gprof tool seems to work, only my compiler is a bit strange. Trying the -a option to enable basic block counting I got: powerpc-linux-gcc -Wall -g -c -o test.o test.c -a -pg cc1: warning: `-a' option (basic block profile) not supported but I got at least a working test program and could manage to run it on the walnut. The comparision of the gprof output on the host and on the walnut was ok. 2. gcov ======= Trying to compile test.c with support for coverage testing I got the following errors: powerpc-linux-gcc -Wall -g -O2 -fprofile-arcs -ftest-coverage -c -o test.o test.c powerpc-linux-gcc: Internal compiler error: program cc1 got fatal signal 11 The complete output was: /opt/fsp/i586-pc-linux-gnu/local/bin/powerpc-linux-gcc -v -save-temps -Wall -g -O2 -fprofile-arcs -ftest-coverage -c -o test.o test.c Reading specs from /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/specs gcc version 2.95.2 19991030 (2.95.3 prerelease/franzo) /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__ -D__PPC -D__powerpc -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -g -Wall -D_CALL_SYSV -D_SOFT_FLOAT -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine(bigendian) -D_ARCH_PPC -D__unix__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem(unix) -Asystem(posix) test.c test.i GNU CPP version 2.95.2 19991030 (2.95.3 prerelease/franzo) (PowerPC GNU/Linux) #include "..." search starts here: #include <...> search starts here: /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/include /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/../../../../powerpc-linux/sys-include End of search list. The following default directories have been omitted from the search path: /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/../../../../include/g++-3 /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/../../../../powerpc-linux/include End of omitted list. /opt/fsp/i586-pc-linux-gnu/local/lib/gcc-lib/powerpc-linux/2.95.2/cc1 test.i -quiet -dumpbase test.c -g -O2 -Wall -version -fprofile-arcs -ftest-coverage -o test.s GNU C version 2.95.2 19991030 (2.95.3 prerelease/franzo) (powerpc-linux) compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.1 2.96-81). powerpc-linux-gcc: Internal compiler error: program cc1 got fatal signal 11 make: *** [test.o] Error 1 >How-To-Repeat: via email to haverkam@de.ibm.com If you cannot make it work it would be a great help for me to know what the reason for the error was, and when it will be fixed. If you need more information please let me know. Thanks! >Fix: Sorry I have not the knowledge to fix it - I hope you will find the bug - good luck. >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2001-05-30 7:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20010530144132.3746.qmail@sourceware.cygnus.com \ --to=haverkam@de.ibm.com \ --cc=doehler@de.ibm.com \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).