Talk:How to Run ADempiere on OpenSolaris

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.

Problems

GCC

configure

make

There seems to be a persistent problem with compiling GNU GCC (4.2.1) on Solaris 10. I have found that it fails during the make complaining about "amd64". I am not a programmer, so I do not know the internals of this. I am using an Intel P4 (32 bit) pc for this exercise and find it a little puzzling that the make should be failing over "amd64" code. Either way GNU GCC does not build/compile/install and you cannot continue the exercise.

As at right now, the only person I have come across who has been able to do this would be the person who wrote the wiki! I am exploring this to find options or alternatives, whatever will work properly and predicatably - this being necessary for Adempiere to be trusted and used on Solaris 10.

Lawrence


The how-to is guaranteed to work on a fresh Solaris 10 installation and using the versions of softwares mentioned out there. It would help if I could see the exact error message(s). --Bahman 05:05, 13 August 2007 (EDT)
By the way, please add what version of binutils and gmake you are using. --Bahman 06:17, 13 August 2007 (EDT)

Bahman, thanks for responding.

I am not using gmake. The instruction was dmake. I am using "dmake: Sun Distributed Make 7.8 SunOS_i386 2007/05/03" make-3.81 binutils-2.17 postgresql-8.2.4 (installed and running) pljava-1.3.0 (have not been able to locate pljava-1.3.1 as in the instructions) gcc-4.2.1 Sun Studio 12 JDK-1.5

I am running this on an Intel P4 (32bit) PC running Solaris 10, downloaded and installed July 2007. This is part of the error I got this time. I suspect the error changed because I attempted to compile gcc with the instructions below when those in the wiki did not work. I suspect the settings are affecting this compilation but I don't know how to clear them. Your help to get this working would really be appreciated. Thanks.

I built it, no problem the other day. Here were my steps:

set the following environmental variables for now: CC=/usr/sfw/bin/gcc CXX=/usr/sfrw/bin/g++ CONFIG_SHELL=/bin/kshPATH=$PATH:/usr/bin:/usr/ccs/bin:/usr/sfw/bin:/usr/local/bin LD_LIBRARY_PAT H=$LD_LIBRARY_PATH:/usr/local/lib:/usr/sfw/lib

downloaded and installed libiconv into /usr/local

configured gcc in a different directory (important - don't try to build gcc in the top dir) using:

/var/tmp/gcc-4.2.1/configure --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --disable-nls --prefix=/opt/gcc-4.2.1 --enable-languages=c,c++

It worked like a charm. Good luck!

Brett Albertson

# make

*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd .; ${PWDCMD-pwd}`; export s; \
FLEX="flex"; export FLEX;  LEX="flex"; export LEX;  BISON="bison"; export BISON;  YACC="bison -y"; export YACC;  M4="gm4"; export M4;  MAKEINFO="makeinfo --split-size=5000000 --split-size=5000000"; export MAKEINFO;  AR=""; export AR;  AS=""; export AS;  CC="gcc"; export CC;  CFLAGS="-g -O2"; export CFLAGS;  CONFIG_SHELL="/bin/sh"; export CONFIG_SHELL;  CXX="c++"; export CXX;  CXXFLAGS=""; export CXXFLAGS;  GCJ=""; export GCJ;  GFORTRAN=""; export GFORTRAN;  DLLTOOL=""; export DLLTOOL;  LD=""; export LD;  LDFLAGS=""; export LDFLAGS;  NM=""; export NM;  RANLIB=""; export RANLIB;  WINDRES=""; export WINDRES; \
(cd build-i386-pc-solaris2.10/fixincludes && \
  make   all)
make: Fatal error: Command failed for target `all-build-fixincludes'
Current working directory /opt/gcc-4.2.1
*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd .; ${PWDCMD-pwd}`; export s; \
if test -f stage1-lean  ; then \
  echo Skipping rebuild of stage1 ; \
else \
  make stage1-start; \
  make "DESTDIR="  "RPATH_ENVVAR=LD_LIBRARY_PATH"  "TARGET_SUBDIR=i386-pc-solaris2.10"  "bindir=/opt/gnu/bin"  "datadir=/opt/gnu/share"  "exec_prefix=/opt/gnu"  "includedir=/opt/gnu/include"  "datarootdir=/opt/gnu/share"  "docdir=/opt/gnu/share/doc"  "infodir=/opt/gnu/info"  "htmldir=/opt/gnu/share/doc"  "libdir=/opt/gnu/lib"  "libexecdir=/opt/gnu/libexec"  "lispdir="  "localstatedir=/opt/gnu/var"  "mandir=/opt/gnu/man"  "oldincludedir=/usr/include"  "prefix=/opt/gnu"  "sbindir=/opt/gnu/sbin"  "sharedstatedir=/opt/gnu/com"  "sysconfdir=/opt/gnu/etc"  "tooldir=/opt/gnu/i386-pc-solaris2.10"  "build_tooldir=/opt/gnu/i386-pc-solaris2.10"  "target_alias=i386-pc-solaris2.10" "BISON=bison"  "CC_FOR_BUILD=gcc"  "CFLAGS_FOR_BUILD=-g -O2"  "CXX_FOR_BUILD=c++"  "EXPECT=expect"  "FLEX=flex"  "INSTALL=/opt/gcc-4.2.1/install-sh -c"  "INSTALL_DATA=/opt/gcc-4.2.1/install-sh -c -m 644"  "INSTALL_PROGRAM=/opt/gcc-4.2.1/install-sh -c"  "INSTALL_SCRIPT=/opt/gcc-4.2.1/install-sh -c"  "LEX=flex"  "M4=gm4"  "MAKE=make"  "RUNTEST=runtest"  "RUNTESTFLAGS="  "SHELL=/bin/sh" "YACC=bison -y"  "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"  "AR_FLAGS=cr"  "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"  "BOOT_CFLAGS=-g -O2"  "BOOT_LDFLAGS="  "CFLAGS=-g -O2"  "CXXFLAGS=-g -O2"  "LDFLAGS="  "LIBCFLAGS=-g -O2"  "LIBCXXFLAGS=-g -O2 -fno-implicit-templates"  "STAGE1_CFLAGS=-g -fkeep-inline-functions"  "STAGE1_CHECKING=--enable-checking"  "STAGE1_LANGUAGES=c"  "AR_FOR_TARGET=/usr/ccs/bin/ar"  "AS_FOR_TARGET=/usr/ccs/bin/as"  "CC_FOR_TARGET=/opt/gcc-4.2.1/host-i386-pc-solaris2.10/gcc/xgcc -B/opt/gcc-4.2.1/host-i386-pc-solaris2.10/gcc/ -B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "CFLAGS_FOR_TARGET=-O2 -g -O2"  "CPPFLAGS_FOR_TARGET="  "CXX_FOR_TARGET=c++ -B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "CXXFLAGS_FOR_TARGET=-g -O2"  "DLLTOOL_FOR_TARGET=dlltool"  "GCJ_FOR_TARGET=-B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "GFORTRAN_FOR_TARGET=-B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "LD_FOR_TARGET=/usr/ccs/bin/ld"  "LIPO_FOR_TARGET=lipo"  "LDFLAGS_FOR_TARGET="  "LIBCFLAGS_FOR_TARGET=-O2 -g -O2"  "LIBCXXFLAGS_FOR_TARGET=-g -O2  -fno-implicit-templates"  "NM_FOR_TARGET=/usr/ccs/bin/nm"  "OBJDUMP_FOR_TARGET=/opt/gnu/i386-pc-solaris2.10/bin/objdump"  "RANLIB_FOR_TARGET=/usr/ccs/bin/ranlib"  "STRIP_FOR_TARGET=/usr/ccs/bin/strip"  "WINDRES_FOR_TARGET=windres"  "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"  "LEAN=false"  "CONFIG_SHELL=/bin/sh"  "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000" all-stage1; \
fi
make: Fatal error: Command failed for target `stage1-bubble'
Current working directory /opt/gcc-4.2.1
*** Error code 1
The following command caused the error:
r=`${PWDCMD-pwd}`; export r; \
s=`cd .; ${PWDCMD-pwd}`; export s; \
make "DESTDIR="  "RPATH_ENVVAR=LD_LIBRARY_PATH"  "TARGET_SUBDIR=i386-pc-solaris2.10"  "bindir=/opt/gnu/bin"  "datadir=/opt/gnu/share"  "exec_prefix=/opt/gnu"  "includedir=/opt/gnu/include"  "datarootdir=/opt/gnu/share"  "docdir=/opt/gnu/share/doc"  "infodir=/opt/gnu/info"  "htmldir=/opt/gnu/share/doc"  "libdir=/opt/gnu/lib"  "libexecdir=/opt/gnu/libexec"  "lispdir="  "localstatedir=/opt/gnu/var"  "mandir=/opt/gnu/man"  "oldincludedir=/usr/include"  "prefix=/opt/gnu"  "sbindir=/opt/gnu/sbin"  "sharedstatedir=/opt/gnu/com"  "sysconfdir=/opt/gnu/etc"  "tooldir=/opt/gnu/i386-pc-solaris2.10"  "build_tooldir=/opt/gnu/i386-pc-solaris2.10"  "target_alias=i386-pc-solaris2.10"  "BISON=bison"  "CC_FOR_BUILD=gcc"  "CFLAGS_FOR_BUILD=-g -O2"  "CXX_FOR_BUILD=c++"  "EXPECT=expect"  "FLEX=flex"  "INSTALL=/opt/gcc-4.2.1/install-sh -c"  "INSTALL_DATA=/opt/gcc-4.2.1/install-sh -c -m 644"  "INSTALL_PROGRAM=/opt/gcc-4.2.1/install-sh -c"  "INSTALL_SCRIPT=/opt/gcc-4.2.1/install-sh -c"  "LEX=flex"  "M4=gm4"  "MAKE=make"  "RUNTEST=runtest"  "RUNTESTFLAGS="  "SHELL=/bin/sh"  "YACC=bison -y"  "`echo 'ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"  "AR_FLAGS=cr"  "`echo 'BOOT_ADAFLAGS=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"  "BOOT_CFLAGS=-g -O2"  "BOOT_LDFLAGS="  "CFLAGS=-g -O2"  "CXXFLAGS=-g -O2"  "LDFLAGS="  "LIBCFLAGS=-g -O2"  "LIBCXXFLAGS=-g -O2 -fno-implicit-templates"  "STAGE1_CFLAGS=-g -fkeep-inline-functions"  "STAGE1_CHECKING=--enable-checking"  "STAGE1_LANGUAGES=c"  "AR_FOR_TARGET=/usr/ccs/bin/ar"  "AS_FOR_TARGET=/usr/ccs/bin/as"  "CC_FOR_TARGET= $r/host-i386-pc-solaris2.10/gcc/xgcc -B$r/host-i386-pc-solaris2.10/gcc/ -B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "CFLAGS_FOR_TARGET=-O2 -g -O2 "  "CPPFLAGS_FOR_TARGET="  "CXX_FOR_TARGET= c++ -B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "CXXFLAGS_FOR_TARGET=-g -O2 "  "DLLTOOL_FOR_TARGET=dlltool"  "GCJ_FOR_TARGET=  -B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "GFORTRAN_FOR_TARGET=  -B/opt/gnu/i386-pc-solaris2.10/bin/ -B/opt/gnu/i386-pc-solaris2.10/lib/ -isystem /opt/gnu/i386-pc-solaris2.10/include -isystem /opt/gnu/i386-pc-solaris2.10/sys-include"  "LD_FOR_TARGET=/usr/ccs/bin/ld"  "LIPO_FOR_TARGET=lipo"  "LDFLAGS_FOR_TARGET="  "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 "  "LIBCXXFLAGS_FOR_TARGET=-g -O2  -fno-implicit-templates"  "NM_FOR_TARGET=/usr/ccs/bin/nm"  "OBJDUMP_FOR_TARGET=/opt/gnu/i386-pc-solaris2.10/bin/objdump"  "RANLIB_FOR_TARGET=/usr/ccs/bin/ranlib"  "STRIP_FOR_TARGET=/usr/ccs/bin/strip"  "WINDRES_FOR_TARGET=windres"  "`echo 'LANGUAGES=' | sed -e s'/[^=][^=]*=$/XFOO=/'`"  "LEAN=false"  "CONFIG_SHELL=/bin/sh"  "MAKEINFO=makeinfo --split-size=5000000" `cat stage_final`-bubble
make: Fatal error: Command failed for target `all'

Lawrence


Some notes:
  • The how-to assumes that the terminal doesn't close (quit) unless everything is completely installed. In case one has to close the terminal, then all modifications to environment (those 'export' statements) should be done again.
  • The how-to is run using Sun Studio 11. I haven't tested the procedure using Sun Studio 12 thus not sure if it makes a difference.
  • Pl/Java 1.3.1 can be reached at Pl/Java CVS repository (see instructions). Don't forget to login to that repository using anonymous/anonymous before trying to do the checkout.
--Bahman 16:38, 18 August 2007 (EDT)