..Graphics/Tiff & GCC 4.6.4

Friday, June 29, 2012 

The latest (as of this writing) GCC port to FreeBSD 9.0 ended up creating some compile problems when I did a portupgrade -ra: /usr/ports/graphics/tiff couldn’t find some libraries:

g++46: error: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtbeginS.o: No such file or directory
g++46: error: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtendS.o: No such file or directory
*** Error code 1

The problem is that there is no more 4.6.3 directory once you install 4.6.4.  I didn’t bother debugging the port problem, though I probably should have and informed the port maintainer and all of those good citizenship steps but instead took a shortcut that solved the problem:

cd /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/
ln -s 4.6.4 4.6.3
cd /usr/ports/graphics/tiff
make clean
portupgrade -ra

And all is good.


		  
Posted at 02:54:55 UTC

Category: FreeBSD

Tags:

Comments

One Response

  1. David Gessel says:

    Update: Under 9.1 the libraries moved again so in compiling /usr/ports/math/gmp I had to update the symbolic link with

    cd /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/
    rm 4.6.3
    ln -s /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.1/4.6.4/ 4.6.3

Leave a Reply