mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2009-03-25, 13:52   #1
sol_kanar
 
Mar 2009

2 Posts
Default Compiling mprime source code under Ubuntu

Hi!

I'm a quite a n00b Ubuntu 8.10 (Intrepid) user, and I need to compile the source code I found here (ftp://mersenne.org/gimps/source258.zip) for a project I am working on; and I really need to compile it, I cannot simply use an out-of-the-box binary.

From the errors I get (lots and lots of 'undefined reference's) it looks like a library is not linked, but I am not sure: could you help me?

I copied the gwnum.a file from /source/gwnum/linux64 to /source/gwnum and then tried to 'make' in directory /source/linux64.

Here are some of the errors I got last time I tried to compile:

Code:
prime.c:(.text+0x18f16): undefined reference to `gwevent_init'
prime.c:(.text+0x18f1e): undefined reference to `gwevent_reset'
prime.c:(.text+0x18f28): undefined reference to `gwevent_wait'
prime.c:(.text+0x18f30): undefined reference to `gwevent_destroy'
prime.c:(.text+0x19016): undefined reference to `gwmutex_unlock'
prime.o: In function `implement_stop_battery':
prime.c:(.text+0x19078): undefined reference to `gwevent_init'
prime.c:(.text+0x19080): undefined reference to `gwevent_reset'
prime.c:(.text+0x1908a): undefined reference to `gwevent_wait'
prime.c:(.text+0x19092): undefined reference to `gwevent_destroy'
prime.o: In function `avail_mem':
prime.c:(.text+0x191cd): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1922d): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1923d): undefined reference to `gwevent_init'
prime.c:(.text+0x19245): undefined reference to `gwevent_reset'
prime.c:(.text+0x19250): undefined reference to `gwevent_wait'
prime.c:(.text+0x19258): undefined reference to `gwevent_destroy'
prime.c:(.text+0x1926a): undefined reference to `gwmutex_lock'
prime.c:(.text+0x193a2): undefined reference to `gwmutex_unlock'
prime.o: In function `choose_pminus1_numvals':
prime.c:(.text+0x195a5): undefined reference to `gwmemused'
prime.c:(.text+0x195cd): undefined reference to `gwnum_size'
prime.c:(.text+0x19691): undefined reference to `gwmemused'
prime.c:(.text+0x196a0): undefined reference to `gwnum_size'
prime.c:(.text+0x196b0): undefined reference to `gwnum_size'
prime.o: In function `set_memory_usage':
prime.c:(.text+0x19aa8): undefined reference to `gwmutex_lock'
prime.c:(.text+0x19c66): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x19ccf): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x19ce0): undefined reference to `gwevent_init'
prime.c:(.text+0x19ce8): undefined reference to `gwevent_reset'
prime.c:(.text+0x19cf5): undefined reference to `gwevent_wait'
prime.c:(.text+0x19cfd): undefined reference to `gwevent_destroy'
prime.c:(.text+0x19d10): undefined reference to `gwmutex_lock'
prime.c:(.text+0x19d52): undefined reference to `gwmutex_unlock'
prime.o: In function `choose_stage2_plan':
prime.c:(.text+0x19ea6): undefined reference to `gwmemused'
prime.c:(.text+0x19eb3): undefined reference to `gwnum_size'
prime.c:(.text+0x19ec0): undefined reference to `gwmemused'
prime.c:(.text+0x19ecd): undefined reference to `gwnum_size'
prime.c:(.text+0x19fc8): undefined reference to `gwmemused'
prime.c:(.text+0x19fd5): undefined reference to `gwnum_size'
prime.c:(.text+0x1a8ae): undefined reference to `gwmemused'
prime.c:(.text+0x1a8bb): undefined reference to `gwnum_size'
prime.o: In function `ecm_stage1_memory_usage':
prime.c:(.text+0x1aadd): undefined reference to `gwmemused'
prime.c:(.text+0x1aae8): undefined reference to `gwnum_size'
prime.o: In function `implement_stop_one_worker':
prime.c:(.text+0x1ab81): undefined reference to `gwevent_init'
prime.c:(.text+0x1ab89): undefined reference to `gwevent_reset'
prime.c:(.text+0x1ab93): undefined reference to `gwevent_wait'
prime.c:(.text+0x1aba2): undefined reference to `gwevent_destroy'
prime.o: In function `tortureTest':
prime.c:(.text+0x1aeb6): undefined reference to `aligned_free'
prime.c:(.text+0x1af2b): undefined reference to `aligned_malloc'
prime.o: In function `timer_value':
prime.c:(.text+0x1afe2): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1aff5): undefined reference to `CPU_SPEED'
prime.c:(.text+0x1b01e): undefined reference to `getHighResTimerFrequency'
prime.o: In function `print_timer':
prime.c:(.text+0x1b1ba): undefined reference to `CPU_FLAGS'
prime.o: In function `end_timer':
prime.c:(.text+0x1b265): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1b2ca): undefined reference to `getHighResTimer'
prime.o: In function `start_timer':
prime.c:(.text+0x1b345): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1b3aa): undefined reference to `getHighResTimer'
prime.o: In function `build_rolling_hash':
prime.c:(.text+0x1c39a): undefined reference to `gw_as_string'
prime.o: In function `adjust_rolling_average':
prime.c:(.text+0x1c3e4): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1c47c): undefined reference to `gwmutex_unlock'
prime.o: In function `rolling_average_work_unit_complete':
prime.c:(.text+0x1c74c): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1c7e6): undefined reference to `gwmutex_unlock'
prime.o: In function `generate_computer_guid':
prime.c:(.text+0x1c872): undefined reference to `CPU_SIGNATURE'
prime.c:(.text+0x1c878): undefined reference to `CPU_BRAND'
prime.c:(.text+0x1c880): undefined reference to `CPU_SPEED'
prime.o: In function `calc_hardware_guid':
prime.c:(.text+0x1c933): undefined reference to `CPU_BRAND'
prime.c:(.text+0x1c950): undefined reference to `CPU_SIGNATURE'
prime.o: In function `LaunchAdvancedTime':
prime.c:(.text+0x1cb72): undefined reference to `gwthread_create'
prime.o: In function `LaunchBench':
prime.c:(.text+0x1cc1a): undefined reference to `gwthread_create'
prime.o: In function `LaunchTortureTest':
prime.c:(.text+0x1cc99): undefined reference to `gwthread_create'
prime.c:(.text+0x1ccc9): undefined reference to `gwthread_create_waitable'
prime.c:(.text+0x1ccd1): undefined reference to `gwthread_wait_for_exit'
prime.o: In function `LaunchWorkerThreads':
prime.c:(.text+0x1cddc): undefined reference to `gwthread_create'
prime.c:(.text+0x1ce01): undefined reference to `gwthread_create_waitable'
prime.c:(.text+0x1ce09): undefined reference to `gwthread_wait_for_exit'
prime.o: In function `read_pause_info':
prime.c:(.text+0x1d48a): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1d642): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1d6c8): undefined reference to `gwmutex_init'
prime.o: In function `salvageCorruptSpoolFile':
prime.c:(.text+0x1d781): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1d7aa): undefined reference to `gwmutex_unlock'
prime.o: In function `spoolMessage':
prime.c:(.text+0x1da0e): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1da60): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1dbdb): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1dbf8): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1dcb8): undefined reference to `gwthread_create'
prime.o: In function `timed_events_scheduler':
prime.c:(.text+0x1ddd6): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1de26): undefined reference to `gwevent_reset'
prime.c:(.text+0x1de30): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1de69): undefined reference to `gwmutex_lock'
prime.c:(.text+0x1de8f): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1dfbc): undefined reference to `gwthread_create'
prime.c:(.text+0x1e01e): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x1e050): undefined reference to `gwevent_wait'
prime.o: In function `getCpuSpeed':
prime.c:(.text+0x1e082): undefined reference to `guessCpuSpeed'
prime.c:(.text+0x1e0a7): undefined reference to `CPU_SPEED'
prime.c:(.text+0x1e0af): undefined reference to `CPU_SPEED'
prime.c:(.text+0x1e0c5): undefined reference to `CPU_SPEED'
prime.c:(.text+0x1e0e4): undefined reference to `CPU_SPEED'
prime.c:(.text+0x1e14f): undefined reference to `CPU_SPEED'
prime.o:prime.c:(.text+0x1e1c3): more undefined references to `CPU_SPEED' follow
prime.o: In function `getCpuDescription':
prime.c:(.text+0x1e1c9): undefined reference to `CPU_BRAND'
prime.c:(.text+0x1e1fe): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x1e242): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e278): undefined reference to `CPU_L1_CACHE_SIZE'
prime.c:(.text+0x1e2d6): undefined reference to `CPU_L2_CACHE_SIZE'
prime.c:(.text+0x1e318): undefined reference to `CPU_L3_CACHE_SIZE'
prime.c:(.text+0x1e43a): undefined reference to `CPU_L1_CACHE_LINE_SIZE'
prime.c:(.text+0x1e4a3): undefined reference to `CPU_L2_CACHE_LINE_SIZE'
prime.c:(.text+0x1e4d9): undefined reference to `CPU_L1_DATA_TLBS'
prime.c:(.text+0x1e50c): undefined reference to `CPU_L2_DATA_TLBS'
prime.c:(.text+0x1e51b): undefined reference to `CPU_L1_DATA_TLBS'
prime.c:(.text+0x1e58d): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e602): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x1e737): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e75b): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e783): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e7b0): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e7e6): undefined reference to `CPU_FLAGS'
prime.o:prime.c:(.text+0x1e80f): more undefined references to `CPU_FLAGS' follow
prime.o: In function `getCpuInfo':
prime.c:(.text+0x1e855): undefined reference to `guessCpuType'
prime.c:(.text+0x1e87c): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e89f): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e8c2): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e8e5): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1e8fb): undefined reference to `CPU_FLAGS'
prime.o:prime.c:(.text+0x1e90f): more undefined references to `CPU_FLAGS' follow
prime.o: In function `getCpuInfo':
prime.c:(.text+0x1e93d): undefined reference to `CPU_L2_CACHE_SIZE'
prime.c:(.text+0x1e953): undefined reference to `CPU_L2_CACHE_LINE_SIZE'
prime.c:(.text+0x1e963): undefined reference to `CPU_L2_CACHE_SIZE'
prime.c:(.text+0x1e96f): undefined reference to `CPU_L2_SET_ASSOCIATIVE'
prime.c:(.text+0x1e97f): undefined reference to `CPU_L2_CACHE_LINE_SIZE'
prime.c:(.text+0x1e98b): undefined reference to `CPU_L3_CACHE_SIZE'
prime.c:(.text+0x1e99b): undefined reference to `CPU_L2_SET_ASSOCIATIVE'
prime.c:(.text+0x1e9a7): undefined reference to `CPU_L3_CACHE_LINE_SIZE'
prime.c:(.text+0x1e9b7): undefined reference to `CPU_L3_CACHE_SIZE'
prime.c:(.text+0x1e9c3): undefined reference to `CPU_L3_SET_ASSOCIATIVE'
prime.c:(.text+0x1e9d3): undefined reference to `CPU_L3_CACHE_LINE_SIZE'
prime.c:(.text+0x1e9de): undefined reference to `CPU_BRAND'
prime.c:(.text+0x1e9f6): undefined reference to `CPU_L3_SET_ASSOCIATIVE'
prime.c:(.text+0x1ea01): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x1ea20): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x1ea3b): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1ea58): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1ea78): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1ea98): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x1eab8): undefined reference to `CPU_FLAGS'
prime.o:prime.c:(.text+0x1ead8): more undefined references to `CPU_FLAGS' follow
prime.o: In function `readIniFiles':
prime.c:(.text+0x1eb33): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x1ef23): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x1f1f1): undefined reference to `isHighResTimerAvailable'
prime.o: In function `rangeStatusMessage':
prime.c:(.text+0x1f695): undefined reference to `gw_as_string'
prime.o: In function `nameAndReadIniFiles':
prime.c:(.text+0x1facd): undefined reference to `gwmutex_init'
prime.c:(.text+0x1fad7): undefined reference to `gwmutex_init'
prime.c:(.text+0x1fae1): undefined reference to `gwmutex_init'
prime.c:(.text+0x1faeb): undefined reference to `gwmutex_init'
prime.c:(.text+0x1faf5): undefined reference to `gwmutex_init'
prime.o: In function `main':
prime.c:(.text+0x1ff76): undefined reference to `StopCheckRoutine'
prime.c:(.text+0x1ff81): undefined reference to `OutputBothRoutine'
prime.c:(.text+0x20332): undefined reference to `CPU_HYPERTHREADS'
prime.o: In function `getProgramOptions':
prime.c:(.text+0x21e7e): undefined reference to `CPU_HYPERTHREADS'
prime.o: In function `communicateWithServer':
prime.c:(.text+0x21fd6): undefined reference to `gwmutex_lock'
prime.c:(.text+0x22029): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x22184): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x22291): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x223cd): undefined reference to `gwmutex_lock'
prime.c:(.text+0x2243f): undefined reference to `CPU_BRAND'
prime.c:(.text+0x2244a): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x22472): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x22492): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x224b2): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x224d2): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x22511): undefined reference to `CPU_L1_CACHE_SIZE'
prime.c:(.text+0x2251e): undefined reference to `CPU_L2_CACHE_SIZE'
prime.c:(.text+0x2252b): undefined reference to `CPU_L3_CACHE_SIZE'
prime.c:(.text+0x22546): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x2255a): undefined reference to `CPU_SPEED'
prime.c:(.text+0x2274a): undefined reference to `gwmutex_lock'
prime.c:(.text+0x227af): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x22904): undefined reference to `gwmutex_lock'
prime.c:(.text+0x2295a): undefined reference to `gwmutex_unlock'
prime.c:(.text+0x2307a): undefined reference to `gwmutex_lock'
prime.c:(.text+0x2313d): undefined reference to `gwmutex_unlock'
prime.o: In function `pminus1':
prime.c:(.text+0x238e8): undefined reference to `gw_as_string'
prime.c:(.text+0x23a49): undefined reference to `gwinit'
prime.c:(.text+0x23aa8): undefined reference to `gwsetup'
prime.c:(.text+0x23b0e): undefined reference to `gwfft_description'
prime.c:(.text+0x23bed): undefined reference to `gwmemused'
prime.c:(.text+0x23bfd): undefined reference to `gwnum_size'
prime.c:(.text+0x23c1c): undefined reference to `gwalloc'
prime.c:(.text+0x23c48): undefined reference to `dbltogw'
prime.c:(.text+0x23d52): undefined reference to `newgiant'
prime.c:(.text+0x23dba): undefined reference to `bitlen'
prime.c:(.text+0x23e4b): undefined reference to `gwsetmulbyconst'
prime.c:(.text+0x23f58): undefined reference to `gwstartnextfft'
prime.c:(.text+0x23fa2): undefined reference to `gwsquare'
prime.c:(.text+0x23fc0): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2452a): undefined reference to `gwmemused'
prime.c:(.text+0x2453a): undefined reference to `gwnum_size'
prime.c:(.text+0x24656): undefined reference to `gwalloc'
prime.c:(.text+0x2467f): undefined reference to `gwcopy'
prime.c:(.text+0x24699): undefined reference to `gwaddsmall'
prime.c:(.text+0x24882): undefined reference to `gwmemused'
prime.c:(.text+0x248af): undefined reference to `gwnum_size'
prime.c:(.text+0x249da): undefined reference to `gwfft'
prime.c:(.text+0x24a68): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x24aa8): undefined reference to `gwstartnextfft'
prime.c:(.text+0x24ac3): undefined reference to `gwfftfftmul'
prime.c:(.text+0x24be1): undefined reference to `gwsquare_carefully'
prime.c:(.text+0x24cad): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x24e8a): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x25294): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x252d6): undefined reference to `gw_clear_maxerr'
prime.c:(.text+0x252f8): undefined reference to `gwsquare'
prime.c:(.text+0x25331): undefined reference to `gwalloc'
prime.c:(.text+0x25355): undefined reference to `dbltogw'
prime.c:(.text+0x25378): undefined reference to `gwmul'
prime.c:(.text+0x25388): undefined reference to `gwfree'
prime.c:(.text+0x2572b): undefined reference to `gwstartnextfft'
prime.c:(.text+0x25740): undefined reference to `gwsquare'
prime.c:(.text+0x2591e): undefined reference to `gwstartnextfft'
prime.c:(.text+0x25933): undefined reference to `gwsquare'
prime.c:(.text+0x25988): undefined reference to `gwalloc'
prime.c:(.text+0x259bc): undefined reference to `gwcopy'
prime.c:(.text+0x25ac8): undefined reference to `gwaddsmall'
prime.c:(.text+0x25b10): undefined reference to `gwaddsmall'
prime.c:(.text+0x25c64): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x25e59): undefined reference to `gwalloc'
prime.c:(.text+0x25ff7): undefined reference to `gwstartnextfft'
prime.c:(.text+0x26012): undefined reference to `gwfftfftmul'
prime.c:(.text+0x2603c): undefined reference to `gwcopy'
prime.c:(.text+0x26083): undefined reference to `gwcopy'
prime.c:(.text+0x2617f): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x26445): undefined reference to `gwcopy'
prime.c:(.text+0x26524): undefined reference to `gwstartnextfft'
prime.c:(.text+0x2655f): undefined reference to `gwfftsub3'
prime.c:(.text+0x2657c): undefined reference to `gwfftmul'
prime.c:(.text+0x266cf): undefined reference to `gwfree'
prime.c:(.text+0x26849): undefined reference to `gwfree'
prime.c:(.text+0x268a4): undefined reference to `gwfftsub3'
prime.c:(.text+0x268c4): undefined reference to `gwfftmul'
prime.c:(.text+0x268eb): undefined reference to `gwfftadd3'
prime.c:(.text+0x26ae6): undefined reference to `gwfree'
prime.c:(.text+0x26b89): undefined reference to `gwalloc'
prime.c:(.text+0x26cf1): undefined reference to `gwstartnextfft'
prime.c:(.text+0x26d0c): undefined reference to `gwfftfftmul'
prime.c:(.text+0x26f64): undefined reference to `gtoc'
prime.c:(.text+0x2783d): undefined reference to `gwfree'
prime.c:(.text+0x27979): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x279bb): undefined reference to `gw_clear_maxerr'
prime.c:(.text+0x279e3): undefined reference to `gwstartnextfft'
prime.c:(.text+0x279f8): undefined reference to `gwsquare'
prime.o: In function `pfactor':
prime.c:(.text+0x27b9c): undefined reference to `gw_as_string'
prime.o: In function `pminus1_QA':
prime.c:(.text+0x27ea2): undefined reference to `newgiant'
prime.c:(.text+0x27eb4): undefined reference to `ctog'
prime.o: In function `ecm':
prime.c:(.text+0x2827b): undefined reference to `gwinit'
prime.c:(.text+0x282e0): undefined reference to `gwsetup'
prime.c:(.text+0x283cb): undefined reference to `gwfft_description'
prime.c:(.text+0x28459): undefined reference to `gwalloc'
prime.c:(.text+0x28472): undefined reference to `gwalloc'
prime.c:(.text+0x28527): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x28736): undefined reference to `gtoc'
prime.c:(.text+0x28b19): undefined reference to `gwalloc'
prime.c:(.text+0x28b32): undefined reference to `gwalloc'
prime.c:(.text+0x28bd9): undefined reference to `gwfree'
prime.c:(.text+0x28be9): undefined reference to `gwfree'
prime.c:(.text+0x28c97): undefined reference to `divg'
prime.c:(.text+0x295a4): undefined reference to `gwalloc'
prime.c:(.text+0x295bd): undefined reference to `gwalloc'
prime.c:(.text+0x2962b): undefined reference to `gwfree'
prime.c:(.text+0x2963b): undefined reference to `gwfree'
prime.c:(.text+0x2971a): undefined reference to `gwalloc'
prime.c:(.text+0x29b90): undefined reference to `gwalloc'
prime.c:(.text+0x29bae): undefined reference to `gwalloc'
prime.c:(.text+0x29bcc): undefined reference to `gwalloc'
prime.c:(.text+0x29bea): undefined reference to `gwalloc'
prime.o:prime.c:(.text+0x29c08): more undefined references to `gwalloc' follow
prime.o: In function `ecm':
prime.c:(.text+0x29c9a): undefined reference to `gwfft'
prime.c:(.text+0x29cad): undefined reference to `gwfft'
prime.c:(.text+0x29cc5): undefined reference to `gwcopy'
prime.c:(.text+0x29cd8): undefined reference to `gwcopy'
prime.c:(.text+0x29cf0): undefined reference to `gwcopy'
prime.c:(.text+0x29d08): undefined reference to `gwcopy'
prime.c:(.text+0x29d4b): undefined reference to `gwfree'
prime.c:(.text+0x29e37): undefined reference to `gwfft'
prime.c:(.text+0x29e4a): undefined reference to `gwfft'
prime.c:(.text+0x29e86): undefined reference to `gwalloc'
prime.c:(.text+0x29eb3): undefined reference to `gwcopy'
prime.c:(.text+0x29f36): undefined reference to `dbltogw'
prime.c:(.text+0x29fd0): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2a012): undefined reference to `gw_clear_maxerr'
prime.c:(.text+0x2a15b): undefined reference to `popg'
prime.c:(.text+0x2a17a): undefined reference to `gwtogiant'
prime.c:(.text+0x2a18d): undefined reference to `modgi'
prime.c:(.text+0x2a3a8): undefined reference to `gwfftaddsub4'
prime.c:(.text+0x2a427): undefined reference to `gwfft'
prime.c:(.text+0x2a43f): undefined reference to `gwfft'
prime.c:(.text+0x2a480): undefined reference to `gwfree'
prime.c:(.text+0x2a495): undefined reference to `gwfree'
prime.c:(.text+0x2a4a5): undefined reference to `gwfree'
prime.c:(.text+0x2a4f0): undefined reference to `gwfree'
prime.c:(.text+0x2a505): undefined reference to `gwfree'
prime.c:(.text+0x2a585): undefined reference to `gwfft'
prime.c:(.text+0x2a6ff): undefined reference to `gwalloc'
prime.c:(.text+0x2a766): undefined reference to `gwfftsub3'
prime.c:(.text+0x2a77e): undefined reference to `gwfftmul'
prime.c:(.text+0x2a996): undefined reference to `gwfftfftmul'
prime.c:(.text+0x2a9a9): undefined reference to `gwfft'
prime.c:(.text+0x2a9c4): undefined reference to `gwfftsub3'
prime.c:(.text+0x2a9dc): undefined reference to `gwfftmul'
prime.c:(.text+0x2aa3e): undefined reference to `gwfree'
prime.c:(.text+0x2ac87): undefined reference to `gwalloc'
prime.c:(.text+0x2acab): undefined reference to `dbltogw'
prime.c:(.text+0x2acbe): undefined reference to `gwfft'
prime.c:(.text+0x2acdc): undefined reference to `gwfftfftmul'
prime.c:(.text+0x2ad45): undefined reference to `gwfree'
prime.c:(.text+0x2ae29): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2ae6b): undefined reference to `gw_clear_maxerr'
prime.c:(.text+0x2afaf): undefined reference to `dbltogw'
prime.c:(.text+0x2afc7): undefined reference to `gwfft'
prime.c:(.text+0x2afea): undefined reference to `gwfftfftmul'
prime.c:(.text+0x2b09b): undefined reference to `gwalloc'
prime.c:(.text+0x2b0c4): undefined reference to `dbltogw'
prime.c:(.text+0x2b123): undefined reference to `dbltogw'
prime.c:(.text+0x2b13b): undefined reference to `gwfft'
prime.c:(.text+0x2b156): undefined reference to `gwfftfftmul'
prime.c:(.text+0x2b171): undefined reference to `gwfftfftmul'
prime.c:(.text+0x2b20a): undefined reference to `pushg'
prime.o: In function `ecm_QA':
prime.c:(.text+0x2b33a): undefined reference to `newgiant'
prime.c:(.text+0x2b34c): undefined reference to `ctog'
prime.o: In function `primeTime':
prime.c:(.text+0x2b643): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x2b6e0): undefined reference to `gwinit'
prime.c:(.text+0x2b75c): undefined reference to `gwfft_description'
prime.c:(.text+0x2b7ae): undefined reference to `gwstartnextfft'
prime.c:(.text+0x2b7be): undefined reference to `gwsquare'
prime.c:(.text+0x2b80e): undefined reference to `gwsquare'
prime.c:(.text+0x2bb71): undefined reference to `CPU_HYPERTHREADS'
prime.o: In function `prp':
prime.c:(.text+0x2bd8b): undefined reference to `gwinit'
prime.c:(.text+0x2bde3): undefined reference to `gwsetup'
prime.c:(.text+0x2bdf8): undefined reference to `gwmemused'
prime.c:(.text+0x2be08): undefined reference to `gwnum_size'
prime.c:(.text+0x2be23): undefined reference to `gwalloc'
prime.c:(.text+0x2bfbc): undefined reference to `dbltogw'
prime.c:(.text+0x2bff7): undefined reference to `gwfft_description'
prime.c:(.text+0x2c080): undefined reference to `sladdg'
prime.c:(.text+0x2c08d): undefined reference to `bitlen'
prime.c:(.text+0x2c139): undefined reference to `gwsetmulbyconst'
prime.c:(.text+0x2c2a1): undefined reference to `gw_clear_maxerr'
prime.c:(.text+0x2c31b): undefined reference to `gwstartnextfft'
prime.c:(.text+0x2c3ac): undefined reference to `gwsquare_carefully'
prime.c:(.text+0x2c4ee): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2c8e1): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2c91a): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2c98e): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2cae6): undefined reference to `gwdone'
prime.c:(.text+0x2cb51): undefined reference to `gwsquare'
prime.c:(.text+0x2cb99): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2cbb9): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2cbd9): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2cc27): undefined reference to `popg'
prime.c:(.text+0x2cc42): undefined reference to `gwtogiant'
prime.c:(.text+0x2cc5e): undefined reference to `sladdg'
prime.c:(.text+0x2cc6e): undefined reference to `modg'
prime.c:(.text+0x2cc80): undefined reference to `sladdg'
prime.c:(.text+0x2ccf2): undefined reference to `pushg'
prime.c:(.text+0x2cde3): undefined reference to `gwsquare_carefully'
prime.c:(.text+0x2cfe4): undefined reference to `gwdone'
prime.c:(.text+0x2d03f): undefined reference to `popg'
prime.c:(.text+0x2d05a): undefined reference to `gwtogiant'
prime.c:(.text+0x2d076): undefined reference to `sladdg'
prime.c:(.text+0x2d086): undefined reference to `modg'
prime.c:(.text+0x2d098): undefined reference to `sladdg'
prime.c:(.text+0x2d0e6): undefined reference to `pushg'
prime.c:(.text+0x2d0fb): undefined reference to `gwfree'
prime.c:(.text+0x2d453): undefined reference to `pushg'
prime.c:(.text+0x2d468): undefined reference to `gwfree'
prime.c:(.text+0x2d5da): undefined reference to `gwdone'
prime.c:(.text+0x2d5f9): undefined reference to `gw_get_maxerr'
prime.o: In function `primeBench':
prime.c:(.text+0x2d7a4): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x2d849): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x2d93a): undefined reference to `gwinit'
prime.c:(.text+0x2d9a9): undefined reference to `CPU_SPEED'
prime.c:(.text+0x2da48): undefined reference to `gwstartnextfft'
prime.c:(.text+0x2da58): undefined reference to `gwsquare'
prime.c:(.text+0x2dab8): undefined reference to `gwsquare'
prime.c:(.text+0x2dc35): undefined reference to `CPU_HYPERTHREADS'
prime.c:(.text+0x2dcd2): undefined reference to `CPU_FLAGS'
prime.o: In function `prime':
prime.c:(.text+0x2f2c6): undefined reference to `gwinit'
prime.c:(.text+0x2f31c): undefined reference to `gwmemused'
prime.c:(.text+0x2f327): undefined reference to `gwnum_size'
prime.c:(.text+0x2f425): undefined reference to `gwfft_description'
prime.c:(.text+0x2f496): undefined reference to `addr'
prime.c:(.text+0x2f5a4): undefined reference to `gw_clear_maxerr'
prime.c:(.text+0x2f65c): undefined reference to `gwstartnextfft'
prime.c:(.text+0x2f677): undefined reference to `gwsquare'
prime.c:(.text+0x2f7dd): undefined reference to `addr'
prime.c:(.text+0x2fbb9): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2fbed): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2fc56): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2fcc4): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x2fcea): undefined reference to `gw_get_maxerr'
prime.o:prime.c:(.text+0x2fd01): more undefined references to `gw_get_maxerr' follow
prime.o: In function `prime':
prime.c:(.text+0x3034f): undefined reference to `CPU_FLAGS'
prime.c:(.text+0x303ab): undefined reference to `bitaddr'
prime.c:(.text+0x303db): undefined reference to `set_fft_value'
prime.c:(.text+0x305e9): undefined reference to `gw_get_maxerr'
prime.c:(.text+0x30848): undefined reference to `gwthread_create'
prime.o: In function `primeContinue':
prime.c:(.text+0x30c01): undefined reference to `gwevent_init'
prime.c:(.text+0x30c0b): undefined reference to `gwevent_reset'
prime.c:(.text+0x30c1a): undefined reference to `gwevent_wait'
prime.c:(.text+0x30c24): undefined reference to `gwevent_destroy'
prime.o: In function `Launcher':
prime.c:(.text+0x30ed9): undefined reference to `gwthread_create_waitable'
prime.c:(.text+0x30f5d): undefined reference to `gwthread_wait_for_exit'
prime.o: In function `mQ_term':
prime.c:(.text+0x2709): undefined reference to `gwfree'
prime.o: In function `lucasDone':
prime.c:(.text+0x2725): undefined reference to `gwdone'
prime.o: In function `ell_begin_fft':
prime.c:(.text+0x277b): undefined reference to `gwfft'
prime.o: In function `ecm_partial_cleanup':
prime.c:(.text+0x6c9c): undefined reference to `gwfreeall'
prime.o: In function `decrementWorkUnitUseCount':
prime.c:(.text+0x6cf7): undefined reference to `gwmutex_unlock'
prime.o: In function `OutputStrNoTimeStamp':
prime.c:(.text+0x6f7d): undefined reference to `gwmutex_unlock'
prime.o: In function `pingServer':
prime.c:(.text+0x6fbc): undefined reference to `gwmutex_unlock'
prime.o: In function `do_manual_comm_now':
prime.c:(.text+0x7002): undefined reference to `gwmutex_unlock'
prime.o: In function `delete_timed_event':
prime.c:(.text+0x7069): undefined reference to `gwmutex_unlock'
prime.o:prime.c:(.text+0x709c): more undefined references to `gwmutex_unlock' follow
prime.o: In function `restart_one_waiting_worker':
prime.c:(.text+0x735f): undefined reference to `gwevent_signal'
prime.o: In function `stop_high_memory_workers':
prime.c:(.text+0xc587): undefined reference to `gwmutex_unlock'
prime.o: In function `compare':
prime.c:(.text+0xe800): undefined reference to `pushg'
prime.o: In function `IniFileReread':
prime.c:(.text+0x11cb2): undefined reference to `gwmutex_unlock'
prime.o: In function `IniSectionWriteString':
prime.c:(.text+0x120a8): undefined reference to `gwmutex_unlock'
prime.o: In function `iniAddFileMerge':
prime.c:(.text+0x12766): undefined reference to `gwmutex_unlock'
prime.o: In function `lucas_fixup':
prime.c:(.text+0x16e08): undefined reference to `gwsetaddinatbit'
prime.o: In function `careful_iteration':
prime.c:(.text+0x16f89): undefined reference to `gwfree'
menu.o: In function `max_num_workers':
menu.c:(.text+0x52): undefined reference to `CPU_HYPERTHREADS'
menu.o: In function `torture':
menu.c:(.text+0xa67): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0xaa8): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0xb59): undefined reference to `CPU_FLAGS'
menu.c:(.text+0xb8a): undefined reference to `CPU_FLAGS'
menu.o: In function `advanced_time':
menu.c:(.text+0x1026): undefined reference to `CPU_FLAGS'
menu.o: In function `test_worker_threads':
menu.c:(.text+0x111a): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0x118d): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0x11ca): undefined reference to `CPU_HYPERTHREADS'
menu.c:(.text+0x12bf): undefined reference to `CPU_HYPERTHREADS'
menu.o: In function `advanced_test':
menu.c:(.text+0x25b5): undefined reference to `CPU_FLAGS'
collect2: ld returned 1 exit status
make: *** [mprime] Error 1
Thank you for your time! I hope someone can help me :-)
sol_kanar is offline   Reply With Quote
Old 2009-03-25, 20:44   #2
lfm
 
lfm's Avatar
 
Jul 2006
Calgary

42510 Posts
Default

Thos e are all linker errors. You missed a file somewhere.
lfm is offline   Reply With Quote
Old 2009-03-25, 21:13   #3
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

152738 Posts
Default

If I remember correctly, these are the steps:

cd gwnum
cp linux64/* .
make -f make64
cd ../linux64
make

BTW, the source for 25.9 is available for download.
Prime95 is offline   Reply With Quote
Old 2009-03-26, 09:15   #4
sol_kanar
 
Mar 2009

102 Posts
Default

Quote:
Originally Posted by Prime95 View Post
If I remember correctly, these are the steps:

cd gwnum
cp linux64/* .
make -f make64
cd ../linux64
make

BTW, the source for 25.9 is available for download.
THANK YOU! It worked flawlessly! :-)

Since I am now going to compile mprime also on a non-64bit linux machine, could you please write down all the passeges in this case?

I tried:
Code:
cd gwnum
cp linux/* .
make
Then I get a "make: 'gwnum.a' is up to date" warning (which looks strange), and a 'make' in the source/linux/ directory gives me lots of errors really similar to the ones I posted.

I am probably missing something again :-)

Thank you again for your invaluable help!

Last fiddled with by sol_kanar on 2009-03-26 at 09:17
sol_kanar is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source code to mprime 289 out there somewhere? graysky Linux 6 2016-04-25 23:03
Source Code for msieve ? mohamed Msieve 8 2013-12-14 01:04
Source code for my program Sam Kennedy Factoring 7 2012-11-22 18:24
PrimeNet source code? ixfd64 PrimeNet 8 2009-12-11 14:26
Support for other OSs on x86/source code reezer Software 1 2007-02-08 12:57

All times are UTC. The time now is 08:37.

Thu Jun 4 08:37:36 UTC 2020 up 71 days, 6:10, 0 users, load averages: 1.55, 1.36, 1.32

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.