Newbie: building libgomp
Amittai Aviram
amittai.aviram@yale.edu
Mon Nov 1 20:21:00 GMT 2010
I want to create a modified version of libgomp and test it in my native environment, using gcc but my modified libgomp. I have run into many issues just getting started, and would appreciate some help from this group. First of all, I want to build GCC so as to build libgomp along the way. Then, I can modify the libgomp source code, recompile, and use the resulting *.so or *.a file for testing. Is there a better way? Anyway, here are the issues I have encountered:
1. I cannot build GCC. I have downloaded gcc-4.5.1 and extracted the tar.gz archive. I created an object directory (gcc_obj-4.5.1) and an install directory (gcc_install-4.5.1) alongside the gcc-4.5.1 directory and entered
$ cd gcc_object-4.5.1
$ ../gcc-4.5.1/configure
Configuration finished without error. However, note that the top-level Makefile had identified host and target as x86_64-unknown-linux-gnu. Is that what it should be? My system has 12 64-bit AMD CPUs and is running under Ubuntu Linux 10.04.1 Why does it say "unknown"?
Anyway, then I entered
$ make
The build process seemed to go fine for ~1 hour (?), but ended this way:
checking for suffix of object files... configure: error: in `/home/afa9/gcc_obj-4.5.1/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/afa9/gcc_obj-4.5.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/afa9/gcc_obj-4.5.1'
make: *** [all] Error 2
What am I supposed to look for in config.log? And how am I supposed to address this issue?
2. Meanwhile, there is no libgomp.a or libgomp.so anywhere in my gcc_obj-4.5.1 directory subtree. Again, is there any way that I can just build these separately?
Thank you!
Amittai
Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com
More information about the Gcc-help
mailing list