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! After an (apparently) successul compilation and installation of cross gcc-2.95.2 for host sun-sparc-solaris2.8 and target sun-sparc-solaris2.7, I'm trying to compile one of our projects. After having compiled all but the last of the cpp files *successfully*, the last one explodes with a million #pragma "warnings" (that result in a compilation halt): === snip === . . . /usr/local/sparc-sun-solaris2.7/gcc-2.95.2/bin/sparc-sun-solaris2.7-gcc -fPIC -DDLL -c -g -Wall -I/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include -I/usr/local/sparc-sun-solaris2.7/sys-include -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DUNIX -DUNIX_ONLY -DUNIX_SUN_SOL70 -DBIGENDIAN=1 -DOE_MAC -DCI_ENGINE -DNO_ANSI_SUPPORT -DOVERRIDE_NEW_AND_DELETE -DUSE_ENV_SUPPORT -D_VS_ENGINE_PROJECT -DDEBUG -o udebug/resinfo.o resinfo.cpp In file included from ../../Includes/ustdafx.h:19, from resinfo.cpp:1: /usr/local/sparc-sun-solaris2.7/sys-include/sys/procfs.h:9: warning: ignoring pragma: [ COMMENT: ==> this line in procfs.h (that came from a sol7 box) says "#pragma ident "@(#)procfs.h 1.16 98/03/10 SMI" ] In file included from /usr/local/sparc-sun-solaris2.7/sys-include/sys/procfs.h:33, from ../../Includes/ustdafx.h:19, from resinfo.cpp:1: /usr/local/sparc-sun-solaris2.7/sys-include/sys/feature_tests.h:13: warning: ignoring pragma: In file included from /usr/local/sparc-sun-solaris2.7/sys-include/sys/feature_tests.h:15, from /usr/local/sparc-sun-solaris2.7/sys-include/sys/procfs.h:33, from ../../Includes/ustdafx.h:19, from resinfo.cpp:1: /usr/local/sparc-sun-solaris2.7/sys-include/sys/isa_defs.h:9: warning: ignoring pragma: In file included from /usr/local/sparc-sun-solaris2.7/sys-include/sys/procfs.h:34, from ../../Includes/ustdafx.h:19, from resinfo.cpp:1: /usr/local/sparc-sun-solaris2.7/sys-include/sys/types.h:16: warning: ignoring pragma: In file included from /usr/local/sparc-sun-solaris2.7/sys-include/sys/types.h:24, from /usr/local/sparc-sun-solaris2.7/sys-include/sys/procfs.h:34, from ../../Includes/ustdafx.h:19, from resinfo.cpp:1: . . . === end-snip === there is a lot more of these. Now, added to this, I don't understand one thing: 1. If I: a. rename /usr/include to something b. rename /usr/local/include to something c. write a hello world proggie that does an #include <stdio.h> and compile it (using the native solaris 8 gcc) It works! it takes the header, namely stdio.h, from someplace. FROM WHERE?! 2. If I remove the "-I/usr/local/sparc-sun-solaris2.7/sys-include" from my projects makefile, It compiles just fine. It probbably takes the headers from the same place as the above hello world program. I am *VERY CONCERNED* these headers are Solaris-8 specific and not Solaris-7 specific. Furthermore, shouldn't I be using the headers I copied from a sol7 box and notified the cross-gcc of when I compiled it using the --with-headers= option to its configure? Common sense says I should.. :-) Any help would be appreciated.. -- Miki Shapiro <mikis@aAladdin.com> Unixophilic Software Developer Aladdin Knowledge Systems --------------------------------------------- Tel: +972-(4)-8811433 ICQ: 3EE853 --------------------------------------------- God is real... unless declared an integer. ------ 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] |