On Thu, Jan 29, 2009 at 3:04 PM, John Martin <John.M.Martin at sun.com> wrote: > C. Bergstr?m wrote: >> >> >> I just glanced at it, but looks like Elf32_Word and friends is undefined.. >> >> ../include/elf_stuff.h:57:23: warning: sys/cdefs.h: No such file or >> directory >> >> pm me if you'd like access to the env to help or look around. >> >> > This is in the linux include directory. Did you create a directory for > Solaris (.../osprey/sunos/include/...)? > >
Hi John/everyone I don't understand the question about creating osprey/sunos/include/.. but here's my env and exactly what I'm doing.. gcc -v Using built-in specs. Target: i386-pc-solaris2.11 Configured with: ./configure --prefix=/opt/gcc/gcc-4.4 --with-as=/usr/local/src/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared --with-mpfr-include=/usr/include/mpfr --with-gmp-include=/usr/include/gmp LDFLAGS=-lgmp Thread model: posix gcc version 4.4.0 20090130 (experimental) (GCC) (Can I build open64 with gcc-4.4?) open64 trunk + http://pkg.osunix.org/open64/open64-opensolaris.diff gmake 'LDFLAGS=-L/opt/gcc/gcc-4.4/lib/amd64 -R/opt/gcc/gcc-4.4/lib/amd64' Here's a strange warning and the error.. 1) gmake -C osprey/targx8664_x8664/driver abort: There is no Mercurial repository here (.hg not found)! 2) gmake[3]: Entering directory `/usr/local/src/open64/osprey/targx8664_x8664/be' C++ /usr/local/src/open64/osprey/targx8664_x8664/be/../../be/be/dra_mangle.cxx In file included from ../../be/cg/cg.h:46, from ../../be/be/dra_mangle.cxx:72: ../../be/region/region_util.h:63:53: error: preg_list.h: No such file or directory In file included from ../../be/cg/cg.h:46, from ../../be/be/dra_mangle.cxx:72: ../../be/region/region_util.h:231: error: ISO C++ forbids declaration of 'PREG_LIST' with no type ../../be/region/region_util.h:231: error: expected ';' before '*' token ../../be/region/region_util.h:232: error: ISO C++ forbids declaration of 'PREG_LIST' with no type ../../be/region/region_util.h:232: error: expected ';' before '*' token ../../be/region/region_util.h:237: error: ISO C++ forbids declaration of 'PREG_LIST' with no type ../../be/region/region_util.h:237: error: expected ';' before '*' token ../../be/region/region_util.h:238: error: ISO C++ forbids declaration of 'PREG_LIST' with no type ../../be/region/region_util.h:238: error: expected ';' before '*' token ../../be/region/region_util.h:520: warning: 'REGION_search_preg_set' initialized and declared 'extern' ../../be/region/region_util.h:520: error: 'PREG_LIST' was not declared in this scope ../../be/region/region_util.h:520: error: expected primary-expression before ',' token ../../be/region/region_util.h:520: error: expected primary-expression before ')' token ../../be/region/region_util.h:520: error: initializer expression list treated as compound expression gmake[3]: *** [dra_mangle.o] Error 1 So why isn't preg_list.h being generated... /usr/xpg4/bin is ahead of /usr/bin in the path... Thanks.. ./C