DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th January 2009
troberts troberts is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 2 Times in 1 Post
Default Can't compile gcc-4.3.3_20090101 [SOLVED]

The following ports:
  • blas-1.0_2
  • lapack-3.1.1_1
  • py25-numpy-1.2.0,1
need to be updated but gcc-4.3.3_20090101 will not compile in the presence of lang/gcc295. The error message displayed is:
Code:
===>   gcc-4.3.3_20090101 depends on file: /usr/local/bin/perl5.8.8 - found

This port will not build in the presence of lang/gcc295.

*** Error code 1



Stop in /usr/ports/lang/gcc43.



===>>> make failed for lang/gcc43

===>>> Aborting update



===>>> Update for /usr/ports/lang/gcc43 failed

===>>> Aborting update



Terminated

#
I did a pkg_info for 'gcc' and the three things displayed are:
Code:
gcc-3.4.6_3,1       GNU Compiler Collection 3.4
gcc-4.2.5_20081126  GNU Compiler Collection 4.2
gccmakedep-1.0.2    Create dependencies in makefiles using 'gcc -M'
What confuses me is the message, "This port will not build in the presence of lang/gcc295.". The only reason I can come up with for gcc295 having a "presence" is because of ccache. I installed it, as is, and gcc295 is mentioned in the following section of its Makefile
Code:
.if !defined(WITHOUT_COMPILER_LINKS)
.if ${ARCH}=="i386" || ${ARCH}=="alpha"
GNU_COMPILERS+=		295
.endif
.if ${ARCH}=="i386"
CCACHE_COMPILERS+=      icc icpc
.endif
GNU_COMPILERS+=		32 33 34 40 41 42 43 44 -ooo
CCACHE_COMPILERS+=	cc c++ gcc g++ ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|}
.if defined(EXTRA_COMPILERS)
CCACHE_COMPILERS+=	${EXTRA_COMPILERS}
.endif
WORLD_COMPILERS=	world-cc world-c++
PLIST_FILES+=	${CCACHE_COMPILERS:S|^|${CCLINKDIR}/|} \
		${WORLD_COMPILERS:S|^|${CCLINKDIR}/|}
SUB_FILES+=	${WORLD_COMPILERS}
SUB_LIST+=	CCACHE_COMPILERS="${CCACHE_COMPILERS}" \
		CCLINKDIR="${CCLINKDIR}" \
		ICCPREFIX="${LOCALBASE}/intel_cc_80/bin" \
		HOWTO="${HOWTO}"
.endif
If this is the problem, could I just delete the if statement that adds the gcc295 compiler to GNU_COMPILERS+=? Can I just delete the gcc295 link located in /usr/local/libexec/ccache? I was going to rename the link, but the 'Rename' option was inactive.

Any suggestions will be greatly appreciated.

Last edited by troberts; 10th January 2009 at 04:45 PM. Reason: Attempting to provide more information to make the question clearer.
Reply With Quote
  #2   (View Single Post)  
Old 10th January 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

Found this in lang/gcc43's Makefile:

Code:
pre-extract:
	@# Building libgcj with lang/gcc295 installed is causing a failure
	@# about "hidden symbol `__eprintf'" in libgcc.a(_eprintf.o).
	@if type gcc295 >/dev/null ; then \
	  echo "This port will not build in the presence of lang/gcc295."; \
	  exit 1; \
	fi
I don't think GCC needs libgcj for anything but Java stuff, but the makefile target doesn't check if java-stuff is being built.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 10th January 2009
troberts troberts is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 2 Times in 1 Post
Default

I renamed gcc295 and g++295 links in /usr/local/libexec/ccache and that took care of the problem. Also, the reason I could not rename the links is I was logged into my user account instead of root.

It is amazing what one can figure out once you realize the worst thing that can happen, if something goes wrong, is you have to reinstall everything.
Reply With Quote
  #4   (View Single Post)  
Old 11th January 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

This is unix, not dos! Reinstalling everything [from backup] can be easier then fixing a problem, but rarely is truly necessary if you still have a backup plan ;-)
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 11th January 2009
troberts troberts is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by TerryP View Post
This is unix, not dos! Reinstalling everything [from backup] can be easier then fixing a problem, but rarely is truly necessary if you still have a backup plan ;-)
The point I was trying to make was that instead of waiting for the "correct" answer I should come up with my own solution and try it. If it does not fix my problem then I just fix my fix and try something else.
Reply With Quote
  #6   (View Single Post)  
Old 11th January 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,062
Thanked 198 Times in 156 Posts
Default

In my experience installing and using GCC from ports is a nightmare, I would definitely recommend using GCC from base unless you really need a different version.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #7   (View Single Post)  
Old 12th January 2009
troberts troberts is offline
Port Guard
 
Join Date: May 2008
Posts: 27
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by Carpetsmoker View Post
In my experience installing and using GCC from ports is a nightmare, I would definitely recommend using GCC from base unless you really need a different version.
I did not install GCC-4.3.3_20090101 from ports. It was installed when I updated blas-1.0_2. There is no direct mention of GCC4.3.3 in the Makefile for blas but it could be in the do-configure section
Code:
# New ports collection makefile for:    blas
# Date created:         27 October 1994
# Whom:                 ljo
#
# $FreeBSD: ports/math/blas/Makefile,v 1.45 2009/01/07 16:34:13 gerald Exp $
#

PORTNAME=	blas
PORTVERSION=	1.0
PORTREVISION=	3
CATEGORIES=	math
MASTER_SITES=	http://www.netlib.org/blas/ \
		ftp://ftp.mirrorservice.org/sites/netlib.bell-labs.com/netlib/blas/ \
		ftp://netlib.bell-labs.com/netlib/blas/
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=	.tgz

MAINTAINER=	maho@FreeBSD.org
COMMENT=	Basic Linear Algebra, level 1, 2, and 3

USE_LDCONFIG=	yes
USE_FORTRAN=	yes
WRKSRC=		${WRKDIR}/BLAS

PLIST_FILES=	lib/libblas.a lib/libblas.so lib/libblas.so.2

do-configure:
	@${INSTALL_DATA} ${FILESDIR}/makefile.lib ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's+@FFLAGS@+${FFLAGS}+g' ${WRKSRC}/Makefile

.include <bsd.port.mk>
Reply With Quote
  #8   (View Single Post)  
Old 12th January 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,062
Thanked 198 Times in 156 Posts
Default

This is the ``offending line'':
USE_FORTRAN= yes

From ports/Mk/bsd.gcc.mk:
Code:
# If your port needs a Fortran compiler, please specify that with the
# USE_FORTRAN= knob.  Here is the list of options for that knob:
#
#   USE_FORTRAN=    yes # use gfortran43 (/lang/gcc43)
#   USE_FORTRAN=    g77 # use g77-34 (lang/gcc34; FreeBSD>=7)
#                       # or system f77 (/usr/bin/f77; FreeBSD<=6)
#   USE_FORTRAN=    ifort   # use the Intel compiler (lang/ifc)
The GCC that comes with FreeBSD does not include a fortran compiler.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile autoconf262 Sunsawe FreeBSD Ports and Packages 2 26th August 2008 07:53 PM
firefox3 will not compile map7 FreeBSD Ports and Packages 8 14th July 2008 11:23 PM
gio-fam-backend will not compile map7 FreeBSD Ports and Packages 0 2nd July 2008 01:59 AM
How come gnome2 won't compile? Damien787 FreeBSD Ports and Packages 10 16th June 2008 05:20 PM
Why wont this compile? Johnny2Bad FreeBSD General 10 19th May 2008 11:30 PM


All times are GMT. The time now is 10:02 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick