Bug 433870
Summary: | freefem++'s configure mpic++ test fails to build on ppc64 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dominik 'Rathann' Mierzejewski <dominik> | ||||
Component: | freefem++ | Assignee: | Dominik 'Rathann' Mierzejewski <dominik> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | Keywords: | Reopened | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | ppc64 | ||||||
OS: | Linux | ||||||
URL: | http://koji.fedoraproject.org/koji/taskinfo?taskID=457629 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-02-22 12:38:20 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 238953 | ||||||
Attachments: |
|
Description
Dominik 'Rathann' Mierzejewski
2008-02-21 21:07:06 UTC
Created attachment 295557 [details]
build.log from koji
That's freemem++ crap. It has this garbage in acoptim.m4: # Generic code if test "$enable_debug" != yes \ -a "$enable_optim" != no \ -a "$enable_generic" = yes then CHECK_COMPILE_FLAG(C,-mcpu=common,CFLAGS) CHECK_COMPILE_FLAG(C++,-mcpu=common,CXXFLAGS) CHECK_COMPILE_FLAG(Fortran 77,-mcpu=common,FFLAGS) fi This is a bug for multiple reasons: 1) -mcpu is target dependent flag on some arches, but has different meanings between targets. On some targets it affects only tuning, on other arches it affects also the instruction set. Furthermore, the arguments to -mcpu= are very much target dependent, common is not a generic magic word. E.g. on i?86/x86_64, there is -mtune=generic which tells to tune for most common CPU set, etc. On ppc/ppc64, -mcpu=common is an ISA switch, not just tuning, and common is a 32-bit instruction set that doesn't include almost any 64-bit instructions, so -m64 -mcpu=common doesn't make any sense. You should just nuke this crap and make sure $RPM_OPT_FLAGS are included in CFLAGS/CXXFLAGS/FFLAGS when building. Thank you, I missed the -mcpu=common part. Now that I know what's wrong, it's easy to fix. And fixed, by removing --enable-generic from configure call. |