Fahey-McLay / xalt

28 stars 15 forks source link

Unable to compile fresh install #25

Closed treydock closed 6 years ago

treydock commented 6 years ago

Fresh install of devel branch is failing at make install. My configure is similar to that in QUICK_START.txt.

VERSION=2.0.7
./configure --prefix=/apps/xalt/$VERSION \
--with-etcDir=/apps/xalt/etc \
--with-transmission=syslog \
--with-MySQL=no \
--with-syshostConfig=hardcode:$LMOD_SYSTEM_NAME \
--with-config=Config/rtm_config.py

----------------------------------- SUMMARY ----------------------------------

Package version...................................... : XALT-2.0.7-devel
Package version (git) ............................... : 2.0.7-devel

Prefix............................................... : /apps/xalt/2.0.7
Installation Directory............................... : /apps/xalt/2.0.7/xalt/2.0.7-devel

XALT_FILE_PREFIX..................................... : USE_HOME
XALT_TRANSMISSION_STYLE.............................. : syslog
XALT_ETC_DIR......................................... : /apps/xalt/etc
XALT Config.py file.................................. : Config/rtm_config.py
XALT SYSTEM PATH..................................... : /usr/bin:/bin
XALT SYSLOG Message Size............................. : 512
XALT SYSHOST CONFIG Style............................ : hardcode:pitzer
XALT_SCALAR_TRACKING................................. : yes
XALT_SPSR_TRACKING................................... : yes
XALT_MPI_TRACKING.................................... : yes
XALT 32bit support................................... : yes
XALT Using libuuid................................... : yes
XALT build with MySQL support........................ : no
XALT Backgrounding the start record of a program run. : no
XALT Compute SHA1 sum for libraries.................. : no
XALT CXX LD_LIBRARY_PATH............................. :
XALT my_hostname_parser.............................. : no
------------------------------------------------------------------------------

This is the end of make install

gcc -g -O2 -Wall -Wno-unused-result  -Ibuild -I/apps_src/xalt/compiled    -c -m32 -c -o /apps/xalt/2.0.7/xalt/2.0.7/lib/my_hostname_parser_32.o 
gcc: fatal error: no input files
compilation terminated.
make[1]: *** [/apps/xalt/2.0.7/xalt/2.0.7/lib/my_hostname_parser_32.o] Error 4
make[1]: Leaving directory `/apps_src/xalt/compiled'
make: *** [build_compiled] Error 2
rtmclay commented 6 years ago

You are building XALT to support both 32/64 bit compilation. I have done some testing with the 32 bit side but that has not been fully tested.

Still, I believe that I have fixed the bug that you reported. Please test 2.0.8-devel to see if that fixes this issue.

BTW. You are not installing XALT correctly. You should set the prefix to /apps and not /apps/xalt/2.0.7. If you set the prefix to have the XALT version in the name then you will run into problems with future installs of XALT.

The configure script now checks and reports an error if the prefix includes the "xalt/$VERSION". You can override this but DON'T DO IT!!!

treydock commented 6 years ago

@rtmclay What would cause the 32bit compilation? This just a byproduct of having 32 libraries installed at OS level?

New problem, though likely a result of this 32bit compilation?

gcc -g -O2 -Wall -Wno-unused-result  -Ibuild -I/apps_src/xalt/compiled     -m32 -g -O2 -Wall -Wno-unused-result  -Ibuild -I/apps_src/xalt/compiled  -I. -fPIC  -fPIC -shared -o /apps/xalt/2.0.8/lib/libxalt_init.so  /apps/xalt/2.0.8/lib/xalt_initialize_preload_32.o /apps/xalt/2.0.8/lib/xalt_syshost_32.o /apps/xalt/2.0.8/lib/build_uuid_preload_32.o /apps/xalt/2.0.8/lib/xalt_quotestring_32.o /apps/xalt/2.0.8/lib/lex.__XALT_path_preload_32.o /apps/xalt/2.0.8/lib/lex.__XALT_host_preload_32.o /apps/xalt/2.0.8/lib/xalt_fgets_alloc_32.o -luuid
/usr/bin/ld: cannot find -luuid
collect2: error: ld returned 1 exit status

libuuid.so is at /usr/lib64

rtmclay commented 6 years ago

XALT tests to see if gcc -m32 works. If that does work then it builds support for 32 bit.

The problem that you see is that you have the 64 bit version of libuuid.so but not the 32 bit version. You'll need to install the 32bit version of libuuid.so

treydock commented 6 years ago

Thanks, installing libuuid-devel.i686 solved that problem.