Bug 180595 - unable to build net-p2p/mldonkey-core on i386 using clang
Summary: unable to build net-p2p/mldonkey-core on i386 using clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-16 16:10 UTC by KT Sin
Modified: 2013-10-19 09:00 UTC (History)
0 users

See Also:


Attachments
file.txt (40.79 KB, text/plain)
2013-07-16 16:10 UTC, KT Sin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description KT Sin 2013-07-16 16:10:00 UTC
mldonkey fails to build using clang on i386 but it's building fine on amd64.

the error messages are in the attached file.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-16 18:38:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-07-17 05:11:10 UTC
Responsible Changed
From-To: miwi->freebsd-ports-bugs

back to pool
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-10-19 08:56:56 UTC
Author: tijl
Date: Sat Oct 19 07:56:48 2013
New Revision: 330850
URL: http://svnweb.freebsd.org/changeset/ports/330850

Log:
  Fix build with clang on i386 by disabling inline asm that uses
  intel syntax.
  
  PR:		ports/180595

Added:
  head/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h   (contents, props changed)

Added: head/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/mldonkey/files/patch-src-utils-lib-CryptoPP.h	Sat Oct 19 07:56:48 2013	(r330850)
@@ -0,0 +1,11 @@
+--- src/utils/lib/CryptoPP.h.orig
++++ src/utils/lib/CryptoPP.h
+@@ -274,7 +274,7 @@
+ // CodeWarrior defines _MSC_VER
+ #if !defined(CRYPTOPP_DISABLE_X86ASM) && ((defined(_MSC_VER) && !defined(__MWERKS__) && defined(_M_IX86)) || (defined(__GNUC__) && defined(__i386__)))
+ 	// The x86 version of MacOSX fails when asm is enabled.
+-	#if !defined(__i386__) || !defined(__APPLE__)
++	#if !defined(__APPLE__) && !defined(__clang__)
+ 		#define CRYPTOPP_X86ASM_AVAILABLE
+ 	#endif
+ #endif
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Tijl Coosemans freebsd_committer freebsd_triage 2013-10-19 08:57:12 UTC
State Changed
From-To: open->closed

Fixed in r330850. 


Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2013-10-19 08:57:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->tijl

Fixed in r330850.