Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Mar 2011 12:44:01 +0300
From:      =?utf-8?Q?=D0=90=D0=B2=D1=81=D1=82=D0=B8=D0=BD_=D0=9A=D0=B8=D0=BC?= <avstin@mail.ru>
To:        freebsd-questions@freebsd.org
Subject:   grep: write error: Broken pipe
Message-ID:  <E1PwAVN-0003Hr-00.avstin-mail-ru@f18.mail.ru>

next in thread | raw e-mail | index | archive | help
Hi, all.

I'm new to FreeBSD and have a newbie question (or maybe a couple).

I was running FreeBSD 8.2-RC3 and recently `freebsd-update'd to 8.2-RELEASE.  Now when I build or upgrade ports I get lots of these "grep: write error: Broken pipe" messages during builds.  This is more of a nuisance than anything else, but last night when trying to build the GIMP from Ports, the build failed while trying to build the prerequisite OpenEXR 1.6.1_3 (output appended below).  I can't figure out why the build fails for OpenEXR; as far as I can tell all the dependencies (in particular IlmBase in /usr/local/lib) are in place.  I know the two are probably not related, but can anyone speculate as to the cause of these "grep: write error: Broken pipe" messages and where I might try looking to fix it?  I'm hoping the answer will indirectly lead to some clues that will help me debug my failed OpenEXR build.  (I'm asking here because I didn't want to bug the maintainer with what is probably a stupid newbie question.)

My other question is, those of you who answer questions and debug problems on this list, what do you all get out of it?  I feel kind of selfish asking for what is basically free technical support; how best can I repay you all?

All the best,
Austin

**** OUTPUT OF make install FOR OpenEXR-1.6.1_3

root@freebsd:/usr/ports/graphics/OpenEXR# make install
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for OpenEXR-1.6.1_3
=> SHA256 Checksum OK for openexr-1.6.1.tar.gz.
===>  Patching for OpenEXR-1.6.1_3
===>  Applying FreeBSD patches for OpenEXR-1.6.1_3
===>   OpenEXR-1.6.1_3 depends on executable: gmake - found
===>   OpenEXR-1.6.1_3 depends on package: libtool>=2.4 - found
===>   OpenEXR-1.6.1_3 depends on executable: pkg-config - found
===>   OpenEXR-1.6.1_3 depends on shared library: Half.6grep: write error: Broken pipe
 - found
===>  Configuring for OpenEXR-1.6.1_3
checking build system type... i386-portbld-freebsd8.2
checking host system type... i386-portbld-freebsd8.2
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for style of include used by gmake... GNU
checking dependency style of c++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
checking for gcc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking dependency style of cc... gcc3
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... cpp
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... c++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc static flag  works... yes
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by c++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC
checking if c++ PIC flag -fPIC works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.2 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether gmake sets $(MAKE)... (cached) yes
test_prefix = NONE
checking for pkg-config... /usr/local/bin/pkg-config
using pkg-config to set ILMBASE_CXXFLAGS and ILMBASE_LDFLAGS:
    ILMBASE_CXXFLAGS = -D_THREAD_SAFE -I/usr/local/include/OpenEXR  
    ILMBASE_LDFLAGS = -L/usr/local/lib  
    ILMBASE_LIBS = -pthread -L/usr/local/lib -lImath -lHalf -lIex -lIlmThread  
test: x/usr/local/bin/pkg-config: unexpected operator
checking for IlmBase... no
*** Could not run the IlmBase test program, checking why...
*** The IlmBase test program could be compiled, but could not be dynamically.
*** or statically linked.
***
*** Make sure the LDFLAGS points to the location of the IlmBase library.
*** (e.g. -L/usr/local/lib).
*** If the run-time linker is not finding IlmBase, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system.
***
*** Flags used by the test:
***     cflags: -O2 -pipe -fno-strict-aliasing -D_THREAD_SAFE -I/usr/local/include/OpenEXR   
***     ldflags: -lpthread -L/usr/local/lib  
***
*** You can also run configure with --disable-ilmbasetest to skip this test.
configure: error: Could not compile IlmBase test program.
===>  Script "configure" failed unexpectedly.
Please report the problem to nork@FreeBSD.org [maintainer] and attach the
"/usr/ports/graphics/OpenEXR/work/openexr-1.6.1/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/graphics/OpenEXR.
root@freebsd:/usr/ports/graphics/OpenEXR#

--
Все возможности @Mail.Ru в твоем мобильном.
Просто зайди с телефона на m.mail.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1PwAVN-0003Hr-00.avstin-mail-ru>