Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648386 - sci-libs/atlas - *** No rule to make target 'liblapack.a', needed by 'libclapack.a'. Stop
Summary: sci-libs/atlas - *** No rule to make target 'liblapack.a', needed by 'libclap...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-21 13:12 UTC by sliwa
Modified: 2018-09-16 13:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output from "emerge --info" (emeinfo2.txt,4.71 KB, text/plain)
2018-02-21 13:12 UTC, sliwa
Details
entire build log (build.log.xz,79.12 KB, application/x-xz)
2018-02-24 12:01 UTC, sliwa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sliwa 2018-02-21 13:12:47 UTC
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".
Comment 1 Mike Gilbert gentoo-dev 2018-02-21 20:50:51 UTC
Please attach a full build log.
Comment 2 sliwa 2018-02-22 01:50:33 UTC
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.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-23 06:50:14 UTC
Please attach the entire build log to this bug report.
Comment 4 sliwa 2018-02-24 12:01:32 UTC
Created attachment 520878 [details]
entire build log
Comment 5 sliwa 2018-02-24 12:04:40 UTC
As a side remark, an include file (atlas/atlas_type.h) appears as missing:

atlas_misc.h:#include "atlas_type.h"
Comment 6 Sebastien Druon 2018-04-04 13:57:58 UTC
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 :)
Comment 7 Konstantin Münning 2018-09-16 13:55:03 UTC
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.