Created attachment 520378 [details] output from "emerge --info" I have tried several possible solutions, but always the final lines are: make -j5 libclapack.a *** No rule to make target 'liblapack.a', needed by 'libclapack.a'. Stop During the build, there are several complaints about inability to use SSEGEN and (numerous) "target specific option mismatch".
Please attach a full build log.
The problem is gone after adding "-mavx -msse4.2" to CFLAGS in /etc/portage/make.conf. I feel this should not be necessary. Also, this addition does not affect the gfortran command line.
Please attach the entire build log to this bug report.
Created attachment 520878 [details] entire build log
As a side remark, an include file (atlas/atlas_type.h) appears as missing: atlas_misc.h:#include "atlas_type.h"
Same problem here. The first error was : error: inlining failed in call to always_inline ‘_mm256_load_pd’: target specific option mismatch and the compilation dies later with the following text : *** No rule to make target 'liblapack.a', needed by 'libclapack.a'. Stop I retried with -mavx -msse4.2 and it now compiles and works. /proc/cpuinfo tells me : [...] flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm cpuid_fault epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt dtherm ida arat pln pts [...] So I guess there is something wrong somewhere :)
Here the problem is similar but the output differs, at the end of the build log the messages show the libclapack.a related error: ATLAS install complete. Examine ATLAS/bin/<arch>/INSTALL_LOG/SUMMARY.LOG for details. make[1]: Leaving directory '/var/tmp/portage/sci-libs/atlas-3.10.2/work/ATLAS_shared' make clean make[1]: Entering directory '/var/tmp/portage/sci-libs/atlas-3.10.2/work/ATLAS_shared' rm -f *.o x* config?.out *core* make[1]: Leaving directory '/var/tmp/portage/sci-libs/atlas-3.10.2/work/ATLAS_shared' make -j4 libclapack.a rm -rf clapack libclapack.a mkdir clapack cd clapack ; ar x ../liblapack.a rm -f clapack/*f77wrap* clapack/*C2F* ar r libclapack.a clapack/ATL_* clapack/clapack_* ar: creating libclapack.a ar: clapack/clapack_*: No such file or directory make: *** [Makefile:210: libclapack.a] Error 1 * ERROR: sci-libs/atlas-3.10.2::gentoo failed (compile phase): adding avx sse4_2 to CPU_FLAGS_X86 makes no difference but interestingly adding -mavx -msse4.2 to CFLAGS somehow caused the missing file(s) to be created or libclapack.a to not be required. The error concerns the install phase, not the compile phase. Anyway, this workaround fixes the atlas build for me but does not make me happy.