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] |
Hi all. I only got one (unfortunately unhelpful) reply on this, and I'm still stuck with it, so I'm reposting. Can anyone point out the problem? Thanks. -- Miki Shapiro <mikis@aAladdin.com> Unixophilic Software Developer Aladdin Knowledge Systems --------------------------------------------- Tel: +972-(4)-8811433 ICQ: 3EE853 --------------------------------------------- God is real... unless declared an integer. ----- Forwarded by Miki Shapiro/HAF/AKS on 06/06/2002 01:18 PM ----- Hi, I'm trying to compile gcc3.1 on a SPARC/Solaris8 host that will produce SPARC/Solaris7 binaries. I have a main source tree in /usr/src/cross-sparc-sun-solaris2.7/gcc-3.1, am building into prefix /usr/local I've already compiled binutils-2.12 and now I configured gcc from subdirectory build/ with: ../configure --target=sparc-sun-solaris2.7 --prefix=/usr/local -v --with-headers=/usr/src/cross-sparc-sun-solaris2.7/sol7/include --with-libs=/usr/src/cross-sparc-sun-solaris2.7/sol7/lib --with-gnu-as --with-gnu-ld --with-gnu-ar (I copied headers and libraries from a SPARC/Solaris7 machine to /usr/src/cross-sparc-sun-solaris2.7/sol7 on this box. Yes, I know I can copy them directly to the destination in /usr/local/sparc-sun-solaris2.7/lib and /usr/local/sparc-sun-solaris2.7/sys-include subdirectories. I like doing it like this :-) ). During compilation, I get the following: ================ SNIP ===================== . . . make[2]: Leaving directory `/usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/intl' if [ -f specs.ready ] ; then \ true; \ else \ echo timestamp > specs.ready; \ fi if [ -f fixhdr.ready ] ; then \ true; \ else \ echo timestamp > fixhdr.ready; \ fi /usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/xgcc -B/usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/ -B/usr/local/sparc-sun-solaris2.7/lib/ -isystem /usr/local/sparc-sun-solaris2.7/include -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include \ -c ../../gcc/config/sparc/gmon-sol2.c -o gmon.o In file included from ../../gcc/system.h:50, from ../../gcc/config/sparc/gmon-sol2.c:36: /usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/include/stdio.h:36:31: sys/feature_tests.h: No such file or directory /usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/include/stdio.h:37:25: sys/va_list.h: No such file or directory /usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/include/stdio.h:39:24: stdio_impl.h: No such file or directory . . . ================ SNIP ===================== Now, AFAIK, "sys/feature_tests.h" is part of the SUNWhea (Sun Headers) package on the Solaris CDROM. 1. I *HAVE* this package installed on the Solaris8 host: #pkginfo |grep SUNWhea system SUNWhea SunOS Header Files 9:55|[May] mikisu:/usr/src/cross-sparc-sun-solaris2.7/gcc-3.1/build#ls -l /usr/include/sys/feature_tests.h -rw-r--r-- 1 root bin 5398 Jan 5 2000 /usr/include/sys/feature_tests.h 2. I *HAVE* this package installed on the SPARC/Solaris7 box from which I took the headers(and libs) from: (On the Sol7 Box:) 10:06|[December] mikisu:~#pkginfo |grep SUNWhea system SUNWhea SunOS Header Files (On the Sol8 host box:) #ls -l /usr/src/cross-sparc-sun-solaris2.7/sol7/include/sys/feature_tests.h -rw-r--r-- 1 bin bin 5227 Sep 1 1998 /usr/src/cross-sparc-sun-solaris2.7/sol7/include/sys/feature_tests.h [Possibly-Mistaken] Conclusion: *****They're all there***** 3. I don't know if I should or not, but I do *not* have it in gcc's private fixinclude'd stock, since fixinclude never makes a fixed version of this header file: ls /usr/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/include/sys audio_4231.h ddidmareq.h exec.h ieeefp.h openpromio.h prsystm.h types.h core.h debug.h exechdr.h msg.h pctypes.h scsi user.h ddi_impldefs.h ethernet.h fs msreg.h proc sunddi.h varargs.h [SIDENOTE]: If I enter the build/gcc directory and run make from there, it goes through without a glitch, but if I run "make" in the main build/ directory after that, it does libiberty configure script that eventually stumbles on the wrongly-built gcc and yells: =======SNIP======= . . Configuring in sparc-sun-solaris2.7/libiberty.. . . checking whether the C compiler (/usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/xgcc -B/usr/share/src/cross-sparc-sun-solaris2.7/gcc-3.1/build/gcc/ -B/usr/local/sparc-sun-solaris2.7/bin/ -B/usr/local/sparc-sun-solaris2.7/lib/ -isystem /usr/local/sparc-sun-solaris2.7/include -m64 -g -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. . =======SNIP======= That's it. Whelp! :-) ******************************* IMPORTANT ! ********************************** The content of this email and any attachments are confidential and intended for the named recipient(s) only. If you have received this email in error please notify the sender immediately. Do not disclose the content of this message or make copies. This email was scanned by eSafe Mail for viruses, vandals and other malicious content. ****************************************************************************** ------ 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] |