Bug 197795 - math/cln: fails to build on armv6
Summary: math/cln: fails to build on armv6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Wen Heping
URL: http://chips.ysv.freebsd.org/data/11a...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-18 18:02 UTC by Mikael Urankar
Modified: 2015-03-07 14:42 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (wen)


Attachments
fix build on armv6 (1.67 KB, patch)
2015-02-18 18:02 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2015-02-18 18:02:05 UTC
Created attachment 153154 [details]
fix build on armv6

Hi,

math/cln fails to build on armv6:
base/low/cl_low_div.cc:13:8: error: declaration of 'divu_16_rest' in global scope conflicts with declaration with C language linkage
uint16 divu_16_rest;
       ^
./base/cl_low.h:442:21: note: declared with C language linkage here
  extern "C" uint16 divu_16_rest;                         // -> Rest r

It seems clang needs the same workaround as MSVC.

build log:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/cln-1.3.4.log
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2015-02-18 18:02:05 UTC
Auto-assigned to maintainer wen@FreeBSD.org
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-03-07 14:40:10 UTC
A commit references this bug:

Author: wen
Date: Sat Mar  7 14:39:54 UTC 2015
New revision: 380699
URL: https://svnweb.freebsd.org/changeset/ports/380699

Log:
  - Fix build on armv6

  PR:		197795
  Submitted by:	mikael.urankar@gmail.com

Changes:
  head/math/cln/Makefile
  head/math/cln/files/patch-src_base_cl__low.h