[Gems-users] Asking help with ruby compilation(zlib not found), thanks


Date: Fri, 16 Mar 2007 12:54:41 -0500 (GMT-05:00)
From: "WANG,DEXIANG" <camelwdx@xxxxxxx>
Subject: [Gems-users] Asking help with ruby compilation(zlib not found), thanks
Dear GEMS experts:

I'm compiling GEMS ruby with simics 2.2. I followed all steps of your setup and quik start. I use desktop version of ubuntu 6.06. I have overcome several problems. But there is still one question not to be solved. First, the zlib.h cannot be found. Then I download zlib package from website and can pass the compilation. However, the problem still exists during the linking operation. Followings are my commandline dump:
(g++ 4.0.3, bison 2.1, flex 2.5.31)


camelwdx@camelwdx-laptop:~/Desktop/gems/ruby$ uname -a
Linux camelwdx-laptop 2.6.15-28-386 #1 PREEMPT Thu Feb 1 15:51:56 UTC 2007 i686 GNU/Linux
camelwdx@camelwdx-laptop:~/Desktop/gems/ruby$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
camelwdx@camelwdx-laptop:~/Desktop/gems/ruby$ bison -V
bison (GNU Bison) 2.1
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
camelwdx@camelwdx-laptop:~/Desktop/gems/ruby$ flex -V
flex 2.5.31


camelwdx@camelwdx-laptop:~/Desktop/gems/ruby$ make PROTOCOL=MOSI_SMP_bcast DESTINATION=MOSI_SMP_bcast
Ruby: Building protocol: MOSI_SMP_bcast
Ruby: Making slicc
cd ../slicc; make
make[1]: Entering directory `/home/camelwdx/Desktop/gems/slicc'
SLICC: Running flex and bison
make generated/generated
make[2]: Entering directory `/home/camelwdx/Desktop/gems/slicc'
make[2]: `generated/generated' is up to date.
make[2]: Leaving directory `/home/camelwdx/Desktop/gems/slicc'
SLICC: Building slicc executable
make x86-linux/bin/slicc.exec
make[2]: Entering directory `/home/camelwdx/Desktop/gems/slicc'
make[2]: `x86-linux/bin/slicc.exec' is up to date.
make[2]: Leaving directory `/home/camelwdx/Desktop/gems/slicc'
make[1]: Leaving directory `/home/camelwdx/Desktop/gems/slicc'
Ruby: Running slicc
make generated/MOSI_SMP_bcast/generated
make[1]: Entering directory `/home/camelwdx/Desktop/gems/ruby'
make[1]: `generated/MOSI_SMP_bcast/generated' is up to date.
make[1]: Leaving directory `/home/camelwdx/Desktop/gems/ruby'
Ruby: Generating ruby objects
make x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec
make[1]: Entering directory `/home/camelwdx/Desktop/gems/ruby'

Linking tester binary ...
/usr/bin/g++ -o x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec -ggdb -g3 -Wl,-R/usr/lib/ simics/simics_api_dummy.c x86-linux/generated/MOSI_SMP_bcast/obj/attrparse.o x86-linux/generated/MOSI_SMP_bcast/obj/attrlex.o x86-linux/generated/MOSI_SMP_bcast/obj/AccessModeType.o x86-linux/generated/MOSI_SMP_bcast/obj/AccessPermission.o x86-linux/generated/MOSI_SMP_bcast/obj/AccessType.o x86-linux/generated/MOSI_SMP_bcast/obj/AddressMsg.o x86-linux/generated/MOSI_SMP_bcast/obj/AllocationStrategy.o x86-linux/generated/MOSI_SMP_bcast/obj/CacheMsg.o x86-linux/generated/MOSI_SMP_bcast/obj/CacheRequestType.o x86-linux/generated/MOSI_SMP_bcast/obj/Chip.o x86-linux/generated/MOSI_SMP_bcast/obj/CoherenceRequestType.o x86-linux/generated/MOSI_SMP_bcast/obj/convertToGenericType.o x86-linux/generated/MOSI_SMP_bcast/obj/DataMsg.o x86-linux/generated/MOSI_SMP_bcast/obj/DetermGETXGeneratorStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/DetermInvGeneratorStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/DetermSeriesGETSGeneratorStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_Controller.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_Entry.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_Event.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_getState.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_Profiler.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_setState.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_State.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_Transitions.o x86-linux/generated/MOSI_SMP_bcast/obj/Directory_Wakeup.o x86-linux/generated/MOSI_SMP_bcast/obj/GenericMachineType.o x86-linux/generated/MOSI_SMP_bcast/obj/GenericRequestType.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_changePermission.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_Controller.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_Entry.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_Event.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_getCacheEntry.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_getState.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_isCacheTagPresent.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_mandatory_request_type_to_event.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_Profiler.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_setState.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_State.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_TBE.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_Transitions.o x86-linux/generated/MOSI_SMP_bcast/obj/L1Cache_Wakeup.o x86-linux/generated/MOSI_SMP_bcast/obj/LinkType.o x86-linux/generated/MOSI_SMP_bcast/obj/LockStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/MachineType.o x86-linux/generated/MOSI_SMP_bcast/obj/MaskPredictorIndex.o x86-linux/generated/MOSI_SMP_bcast/obj/MaskPredictorTraining.o x86-linux/generated/MOSI_SMP_bcast/obj/MaskPredictorType.o x86-linux/generated/MOSI_SMP_bcast/obj/MessageSizeType.o x86-linux/generated/MOSI_SMP_bcast/obj/NUCAMovementRequestType.o x86-linux/generated/MOSI_SMP_bcast/obj/NUCAPotentialMoveMsg.o x86-linux/generated/MOSI_SMP_bcast/obj/NUCAPredictorType.o x86-linux/generated/MOSI_SMP_bcast/obj/PrefetchBit.o x86-linux/generated/MOSI_SMP_bcast/obj/Protocol.o x86-linux/generated/MOSI_SMP_bcast/obj/RequestGeneratorStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/SearchMechanism.o x86-linux/generated/MOSI_SMP_bcast/obj/SequencerStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/SpecifiedGeneratorType.o x86-linux/generated/MOSI_SMP_bcast/obj/TesterStatus.o x86-linux/generated/MOSI_SMP_bcast/obj/TopologyType.o x86-linux/generated/MOSI_SMP_bcast/obj/TransientRequestType.o x86-linux/generated/MOSI_SMP_bcast/obj/TransitionResult.o x86-linux/generated/MOSI_SMP_bcast/obj/initvar.o x86-linux/generated/MOSI_SMP_bcast/obj/confio.o x86-linux/generated/MOSI_SMP_bcast/obj/main.o x86-linux/generated/MOSI_SMP_bcast/obj/test_framework.o x86-linux/generated/MOSI_SMP_bcast/obj/AbstractChip.o x86-linux/generated/MOSI_SMP_bcast/obj/AbstractCacheEntry.o x86-linux/generated/MOSI_SMP_bcast/obj/Address.o x86-linux/generated/MOSI_SMP_bcast/obj/DataBlock.o x86-linux/generated/MOSI_SMP_bcast/obj/Driver.o x86-linux/generated/MOSI_SMP_bcast/obj/SubBlock.o x86-linux/generated/MOSI_SMP_bcast/obj/Debug.o x86-linux/generated/MOSI_SMP_bcast/obj/AccessTraceForAddress.o x86-linux/generated/MOSI_SMP_bcast/obj/DirectoryMemory.o x86-linux/generated/MOSI_SMP_bcast/obj/EventQueue.o x86-linux/generated/MOSI_SMP_bcast/obj/EventQueueNode.o x86-linux/generated/MOSI_SMP_bcast/obj/Histogram.o x86-linux/generated/MOSI_SMP_bcast/obj/Message.o x86-linux/generated/MOSI_SMP_bcast/obj/MessageBuffer.o x86-linux/generated/MOSI_SMP_bcast/obj/MessageBufferNode.o x86-linux/generated/MOSI_SMP_bcast/obj/OpalInterface.o x86-linux/generated/MOSI_SMP_bcast/obj/Profiler.o x86-linux/generated/MOSI_SMP_bcast/obj/CacheProfiler.o x86-linux/generated/MOSI_SMP_bcast/obj/AddressProfiler.o x86-linux/generated/MOSI_SMP_bcast/obj/Sequencer.o x86-linux/generated/MOSI_SMP_bcast/obj/Set.o x86-linux/generated/MOSI_SMP_bcast/obj/NetDest.o x86-linux/generated/MOSI_SMP_bcast/obj/PersistentTable.o x86-linux/generated/MOSI_SMP_bcast/obj/NodePersistentTable.o x86-linux/generated/MOSI_SMP_bcast/obj/TimerTable.o x86-linux/generated/MOSI_SMP_bcast/obj/System.o x86-linux/generated/MOSI_SMP_bcast/obj/Global.o x86-linux/generated/MOSI_SMP_bcast/obj/init.o x86-linux/generated/MOSI_SMP_bcast/obj/util.o x86-linux/generated/MOSI_SMP_bcast/obj/gzstream.o x86-linux/generated/MOSI_SMP_bcast/obj/RubyConfig.o x86-linux/generated/MOSI_SMP_bcast/obj/SimicsDriver.o x86-linux/generated/MOSI_SMP_bcast/obj/SimicsProcessor.o x86-linux/generated/MOSI_SMP_bcast/obj/StoreBuffer.o x86-linux/generated/MOSI_SMP_bcast/obj/StoreCache.o x86-linux/generated/MOSI_SMP_bcast/obj/interface.o x86-linux/generated/MOSI_SMP_bcast/obj/RubySlicc_Profiler_interface.o x86-linux/generated/MOSI_SMP_bcast/obj/TraceRecord.o x86-linux/generated/MOSI_SMP_bcast/obj/Tracer.o x86-linux/generated/MOSI_SMP_bcast/obj/CacheRecorder.o x86-linux/generated/MOSI_SMP_bcast/obj/StoreTrace.o x86-linux/generated/MOSI_SMP_bcast/obj/commands.o x86-linux/generated/MOSI_SMP_bcast/obj/Check.o x86-linux/generated/MOSI_SMP_bcast/obj/CheckTable.o x86-linux/generated/MOSI_SMP_bcast/obj/Tester.o x86-linux/generated/MOSI_SMP_bcast/obj/SyntheticGenerator_Locks.o x86-linux/generated/MOSI_SMP_bcast/obj/SyntheticGenerator_Xact.o x86-linux/generated/MOSI_SMP_bcast/obj/SyntheticGenerator_Barrier.o x86-linux/generated/MOSI_SMP_bcast/obj/SpecifiedGenerator.o x86-linux/generated/MOSI_SMP_bcast/obj/DetermGETXGenerator.o x86-linux/generated/MOSI_SMP_bcast/obj/DetermInvGenerator.o x86-linux/generated/MOSI_SMP_bcast/obj/DetermSeriesGETSGenerator.o x86-linux/generated/MOSI_SMP_bcast/obj/DeterministicDriver.o x86-linux/generated/MOSI_SMP_bcast/obj/SyntheticDriver.o x86-linux/generated/MOSI_SMP_bcast/obj/LogEntry.o x86-linux/generated/MOSI_SMP_bcast/obj/DNUCAPredictor.o x86-linux/generated/MOSI_SMP_bcast/obj/GenericNUCAPredictor.o x86-linux/generated/MOSI_SMP_bcast/obj/NUCAProfiler.o x86-linux/generated/MOSI_SMP_bcast/obj/RNUCAPredictor.o x86-linux/generated/MOSI_SMP_bcast/obj/SNUCAPredictor.o x86-linux/generated/MOSI_SMP_bcast/obj/Instruction.o x86-linux/generated/MOSI_SMP_bcast/obj/TransactionLog.o x86-linux/generated/MOSI_SMP_bcast/obj/TransactionManager.o x86-linux/generated/MOSI_SMP_bcast/obj/PartialAddressFilter.o x86-linux/generated/MOSI_SMP_bcast/obj/RegisterStateWindowed.o x86-linux/generated/MOSI_SMP_bcast/obj/DemoPrefetcher.o x86-linux/generated/MOSI_SMP_bcast/obj/getopt.o x86-linux/generated/MOSI_SMP_bcast/obj/PerfectSwitch.o x86-linux/generated/MOSI_SMP_bcast/obj/Switch.o x86-linux/generated/MOSI_SMP_bcast/obj/Topology.o x86-linux/generated/MOSI_SMP_bcast/obj/SimpleNetwork.o x86-linux/generated/MOSI_SMP_bcast/obj/Throttle.o x86-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function `gzstreambuf::open(char const*, int)':../common/gzstream/gzstream.C:61: undefined reference to `gzopen' x86-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function `gzstreambuf::close()':../common/gzstream/gzstream.C:72: undefined reference to `gzclose' x86-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function `gzstreambuf::underflow()':../common/gzstream/gzstream.C:90: undefined reference to `gzread' x86-linux/generated/MOSI_SMP_bcast/obj/gzstream.o: In function `gzstreambuf::flush_buffer()':../common/gzstream/gzstream.C:107: undefined reference to `gzwrite'
collect2: ld returned 1 exit status
make[1]: *** [x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec] Error 1
make[1]: Leaving directory `/home/camelwdx/Desktop/gems/ruby'
make: *** [all] Error 2
camelwdx@camelwdx-laptop:~/Desktop/gems/ruby$

Best,
great thanks

Dexiang Wang
U. of Florida



[← Prev in Thread] Current Thread [Next in Thread→]