Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling under Ubuntu 18.04 #15

Open
fpiraneo opened this issue May 3, 2018 · 0 comments
Open

Issue compiling under Ubuntu 18.04 #15

fpiraneo opened this issue May 3, 2018 · 0 comments

Comments

@fpiraneo
Copy link

fpiraneo commented May 3, 2018

Hi, trying to compile under ubuntu 18.04 following indications, this is the result:

gcc -mtune=amdfam10 -O3 -ffast-math -mabm -msse4a -pipe -pthread -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-sha2-arm.o minerd-sha2-x86.o minerd-sha2-x64.o minerd-scrypt.o minerd-scrypt-arm.o minerd-scrypt-x86.o minerd-scrypt-x64.o minerd-aes_helper.o minerd-luffa_for_sse2.o minerd-shavite.o minerd-cubehash_sse2.o minerd-nist.o minerd-vector.o minerd-echo.o minerd-xcoin.o -lcurl -ljansson -lpthread
/usr/bin/x86_64-linux-gnu-ld: minerd-xcoin.o: relocation R_X86_64_32S against symbol ``grsoT0' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld: final link failed: Nonrepresentable section on output

collect2: error: ld returned 1 exit status
Makefile:476: recipe for target 'minerd' failed
make[2]: *** [minerd] Error 1
make[2]: Leaving directory '/root/darkcoin-cpuminer-1.2c-master'
Makefile:791: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/darkcoin-cpuminer-1.2c-master'
Makefile:380: recipe for target 'all' failed
make: *** [all] Error 2

Any help is strongly appreciated.

Thank you.

Side notes
I'm compiling for this CPU:

cpu family : 16
model : 8
model name : Six-Core AMD Opteron(tm) Processor 8439 SE
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate vmmcall npt lbrv svm_lock nrip_save pausefilter
bugs : tlb_mmatch fxsave_leak sysret_ss_attrs null_seg amd_e400 spectre_v1 spectre_v2
power management: ts ttp tm stc 100mhzsteps hwpstate

On a forum I've found these flags for AMD CPUs:

CFLAGS="-mtune=amdfam10 -O3 -ffast-math -mabm -msse4a -pipe"

Note that same issue as above is present when compiling with just:

CFLAGS="-O3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant