[Clfs-support] 回复: build error because gcc configure option is misplaced

陈冬晓 selah at outlook.com
Thu Jan 23 05:54:06 PST 2014


>in the capter 6.10:
>during the make cc1 link libcloog-isl.so an error occur:
>error add symbols: file in wrong format
 
>the .so file in the cross-tools dir and have the abi of build machine. i think the correct .so shold be the one located in the tools dir.

After some changes in the gcc-build/Makefile chapter 6.10 had been completed.

There are 6(or 5, HOST_ISL_LIBS is not exist) variables in the gcc-build/Makefile setting by sed script.
HOST_CLOOGLIBS, HOST_ISLLIBS, HOST_GMPLIBS - /cross-tools/lib
HOST_CLOOGINC, HOST_ISLINC, HOST_GMPINC - /cross-tools/include

but the following 6(or 5) variables have problem:

GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \ # should /tools/lib
GMPINC="$(HOST_GMPINC)"; export GMPINC; \ # remain the /cross-tools/include
ISLINC="$(HOST_ISLINC)"; export ISLINC; \ # remain the /cross-tools/include
CLOOGLIBS="$(HOST_CLOOGLIBS)"; export CLOOGLIBS; \ # should /tools/lib
CLOOGINC="$(HOST_CLOOGINC)"; export CLOOGINC; \ # remain the /cross-tools/include

Maybe it's a gcc bug? the following the HOST_* variables have on effect but the * take place.
If not change the *LIBS variable, during the linking of cc1, the linker will link the libs in the /cross-tools/lib,
which will cause a wrong symbol error.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20140123/f07c3c1b/attachment-0001.htm>


More information about the Clfs-support mailing list