Difficulty building gcc 4.4.0 -- builds but fails abi_check


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Difficulty building gcc 4.4.0 -- builds but fails abi_check
# 1  
Old 07-06-2009
Difficulty building gcc 4.4.0 -- builds but fails abi_check

I'm trying to build gcc 4.4.0 in 64-bit (x86_64) Ubuntu 9.04, but make check fails. Specifically, make -k check-target gives (after many other pages of output):
Code:
Running /home/charles/Desktop/gccsrc/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ...
FAIL: abi_check
Running /home/charles/Desktop/gccsrc/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ...
XPASS: 26_numerics/headers/cmath/c99_classification_macros_c.cc (test for excess errors)

        === libstdc++ Summary ===

# of expected passes        5841
# of unexpected failures    1
# of unexpected successes    1
# of expected failures        80
# of unsupported tests        333
make[3]: *** [check-DEJAGNU] Error 1
make[3]: Leaving directory `/home/charles/Desktop/gcc-4.4.0/x86_64-unknown-linux-gnu/libstdc++-v3/testsuite'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/charles/Desktop/gcc-4.4.0/x86_64-unknown-linux-gnu/libstdc++-v3/testsuite'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/charles/Desktop/gcc-4.4.0/x86_64-unknown-linux-gnu/libstdc++-v3'
make: *** [check-target-libstdc++-v3] Error 2

Any idea what's wrong? On a related note: gcc -dumpversion only gives the version number. Is there a way to see what options are compiled in? In particular I'd like to see if a given binary has the Graphite optimizations or not.
# 2  
Old 07-06-2009
This is very very gcc specific. I'd post this to the gcc developers mailing list.
Quote:
Is there a way to see what options are compiled in? In particular I'd like to see if a given binary has the Graphite optimizations or not.
If you know what functions are in the Graphite library, and the gcc executable is not stripped, you can find them this way:
Code:
nm -g | grep graphite_function

will result in some output if graphite_function is referenced.
# 3  
Old 07-06-2009
Quote:
Is there a way to see what options are compiled in?
Code:
gcc -dumpspecs
gcc -###

# 4  
Old 07-07-2009
otheus: Unfortunately my binary is stripped, so that doesn't help. I'll go to the gcc developer community only after I check more carefully to make sure the problem isn't too dumb.

fpmurphy: Thanks! I didn't see those in my look through the gcc manpage -- but it's long enough that this is no real surprise. Smilie

Can I assume that since
Code:
gcc -dumpspecs | grep graphite
gcc -### | grep graphite

both come up dry, that my version doesn't have the graphite/CLooG optimizations?
# 5  
Old 07-07-2009
Quote:
that my version doesn't have the graphite/CLooG optimizations?
I think the gcc -### line here is key -- that tells you how gcc was configured. If the GLooG optimizations require a specific configure option, then it is almost certain your static image doesn't have them.

But wait, I thought you were compiling gcc. You will have a non-static version in the compilation output directory.
# 6  
Old 07-07-2009
Quote:
Originally Posted by otheus
But wait, I thought you were compiling gcc. You will have a non-static version in the compilation output directory.
I am. I was interested in finding if the binary I already had was compiled with those optimizations. In other words, is my compilation going to give me just the changes since 4.3, or will it give me the changes since 4.3 plus Graphite?

Quote:
Originally Posted by otheus
I think the gcc -### line here is key -- that tells you how gcc was configured. If the GLooG optimizations require a specific configure option, then it is almost certain your static image doesn't have them.
Actually, gcc doesn't require a configure option for that! It just autodetects CLooG and PPL. (Graphite has been merged, so it doesn't require that separately anymore.)
# 7  
Old 07-07-2009
Quote:
I was interested in finding if the binary I already had was compiled with those optimizations.
As I thought you meant originally. You should find in the build directory that gcc puts the binary in before doing the strip/install. If you can't find it, remove the binary from the build directory and alias the command "strip" to "true" like:
Code:
alias strip=true

Then do the make again. Then search through the binary with the nm command.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Selenium Integration in Builds

Hi All, I have this scenario in place: 1. I have checked in Selenium Java files (Test cases) into my usual build and they are getting compiled in .class files. 2. I also have a build.xml which is used to run these tests. It basically has this: RELEASE_ROOT this has been set to the Java... (11 Replies)
Discussion started by: ankur328
11 Replies

2. UNIX for Dummies Questions & Answers

mkdir: cannot create directory `/builds/somedir/': Permission denied

Hi, I am trying to run a shell script which contains an mkdir command as part of the execution. The script fails with the following error: mkdir: cannot create directory `/builds/somedir/': Permission denied The user running the script is 'harry' and belongs to group 'school'.... (5 Replies)
Discussion started by: Technext
5 Replies

3. Linux

Building a ppc476 enabled GCC cross compiler and tool chain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (1 Reply)
Discussion started by: raghuhb
1 Replies

4. UNIX for Advanced & Expert Users

Building a ppc476 enabled GCC cross compiler and tool chain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (1 Reply)
Discussion started by: raghuhb
1 Replies

5. Red Hat

Building a ppc476 enabled GCC cross compiler and toolchain

Building a ppc476 enabled GCC cross compiler and tool chain Hello, I am trying to build a cross GCC compiler for PPC476. I applied all the relevant patches. Cross compiler build was successful. When i try to compile the source code using the cross compiler i am getting the below error... (0 Replies)
Discussion started by: raghuhb
0 Replies

6. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

7. Solaris

Need help in building gcc on solaris.

We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is sailfish@st-kvar02 -> uname -a SunOS st-kvar02 5.10... (7 Replies)
Discussion started by: nalina.hv
7 Replies
Login or Register to Ask a Question