Bug 177084

Summary: devel/protobuf fails to build on sparc64
Product: Ports & Packages Reporter: Michael Moll <mmoll>
Component: Individual Port(s)Assignee: Vanilla I. Shu <vanilla>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Michael Moll freebsd_committer freebsd_triage 2013-03-18 19:40:00 UTC
After the last update of the port (to 2.5.0), when building devel/protobuf on a sparc64 machine, the following error is occouring:
[...]
/bin/sh ../libtool  --tag=CXX   --mode=compile c++ -DHAVE_CONFIG_H -I. -I..    -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wc
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -mcpuo
In file included from ./google/protobuf/stubs/atomicops.h:59,
                 from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
./google/protobuf/stubs/platform_macros.h:61:2: error: #error Host architecture was not detected as supported by protobuf
In file included from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:
./google/protobuf/stubs/atomicops.h:188: error: stray '#' in program
./google/protobuf/stubs/atomicops.h:188: error: expected constructor, destructor, or type conversion before string constant
gmake[2]: *** [atomicops_internals_x86_gcc.lo] Error 1

How-To-Repeat: build devel/protobuf on a sparc64 machine (?)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-18 19:40:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vanilla

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-20 02:12:38 UTC
Author: vanilla
Date: Wed Mar 20 02:12:31 2013
New Revision: 314705
URL: http://svnweb.freebsd.org/changeset/ports/314705

Log:
  set ONLY_FOR_ARCHS to i386 and amd64.
  
  PR:		ports/177084
  Submitted by:	Michael Moll kvedulv at kvedulv de

Modified:
  head/devel/protobuf/Makefile

Modified: head/devel/protobuf/Makefile
==============================================================================
--- head/devel/protobuf/Makefile	Wed Mar 20 02:01:11 2013	(r314704)
+++ head/devel/protobuf/Makefile	Wed Mar 20 02:12:31 2013	(r314705)
@@ -15,6 +15,7 @@ GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 USE_PKGCONFIG=	yes
 USES+=		pathfix
+ONLY_FOR_ARCHS=	i386 amd64
 
 tests: build
 	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
_______________________________________________
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 3 Vanilla I. Shu freebsd_committer freebsd_triage 2013-03-20 02:13:44 UTC
State Changed
From-To: open->closed

Committed, thanks.