[argyllcms] Re: Building Argyll 1.3.2 on OpenBSD fails

  • From: Pascal de Bruijn <pmjdebruijn@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Tue, 1 Feb 2011 18:13:19 +0100

On Mon, Jan 31, 2011 at 8:47 AM, Graeme Gill <graeme@xxxxxxxxxxxxx> wrote:
> Pascal de Bruijn wrote:
>>
>> On a related note, is there a way to make Jam more verbose during build?
>
> Sure, there are lots. start with "jam -help".

Right, it's actually the build parallelization which confused the heck
out of me (I was still using the Makefile).

So here's a patch which does get me a bit further, and a new build problem.

I'd appreciate it if you could give me some pointers once again...

Regards,
Pascal de Bruijn
diff -Nurpd Argyll_V1.3.2-Orig/Jamtop Argyll_V1.3.2-OpenBSD/Jamtop
--- Argyll_V1.3.2-Orig/Jamtop   Wed Nov  3 10:18:04 2010
+++ Argyll_V1.3.2-OpenBSD/Jamtop        Tue Feb  1 19:03:05 2011
@@ -8,7 +8,7 @@ Echo "Argyll Jamrules has been read" ;
 DEFINES += ARGYLLCMS ;
 
 # Use libusb1 rather than libusb0 & libusb0-win32
-USE_LIBUSB1 = true ;
+USE_LIBUSB1 = false ;
 # Make the USB V1 library static
 LIBUSB_IS_DLL = false ;
 
@@ -41,7 +41,7 @@ if $(UNIX) {
                } else {
                        EXIT Unable to locate the X11 include files ;
                }
-               LINKFLAGS += -L$(LibWinD) -ldl -lrt -lX11 -lXext -lXxf86vm 
-lXinerama -lXrandr -lXau -lXdmcp -lXss ;
+               LINKFLAGS += -L$(LibWinD) -lX11 -lXext -lXxf86vm -lXinerama 
-lXrandr -lXau -lXdmcp -lXss ;
                # HDRS += $(LibWinH) ; 
        }
 }
Argyll Jamrules has been read 
Using built in TIFF library 
...patience...
...found 1061 target(s)...
...updating 397 target(s)...
GenFileNND1 tiff/libtiff/tif_config.h 
checking build system type... i386-unknown-openbsd4.8
checking host system type... i386-unknown-openbsd4.8
checking target system type... i386-unknown-openbsd4.8
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) 
-std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking how to print strings... print -r
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for ld used by gcc -std=gnu99... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for C compiler warning flags... -Wall -W
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern 
/lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... openbsd4.8 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
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... openbsd4.8 ld.so
checking how to hardcode library paths into programs... immediate
checking for main in -lc... yes
checking for sin in -lm... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for off_t... yes
checking for size_t... yes
checking size of int... 4
checking size of long... 4
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for int8... no
checking for int16... no
checking for int32... no
checking size of signed long... 4
checking size of unsigned long... 4
checking size of signed long long... 8
checking size of unsigned long long... 8
checking for signed 64-bit type... signed long long
checking for unsigned 64-bit type... unsigned long long
checking for floor... yes
checking for isascii... yes
checking for memmove... yes
checking for memset... yes
checking for mmap... yes
checking for pow... yes
checking for setmode... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for getopt... yes
checking for strcasecmp... yes
checking for strtoul... yes
checking for lfind... yes
checking native cpu bit order... lsb2msb
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking whether -R must be followed by a space... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc -std=gnu99
checking whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking for OpenGL Utility library... -lGLU
checking for GLUT library... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/acorn/Makefile
config.status: creating contrib/addtiffo/Makefile
config.status: creating contrib/dbs/Makefile
config.status: creating contrib/dbs/xtiff/Makefile
config.status: creating contrib/iptcutil/Makefile
config.status: creating contrib/mac-cw/Makefile
config.status: creating contrib/mac-mpw/Makefile
config.status: creating contrib/mfs/Makefile
config.status: creating contrib/pds/Makefile
config.status: creating contrib/ras/Makefile
config.status: creating contrib/stream/Makefile
config.status: creating contrib/tags/Makefile
config.status: creating contrib/win_dib/Makefile
config.status: creating html/Makefile
config.status: creating html/images/Makefile
config.status: creating html/man/Makefile
config.status: creating libtiff/Makefile
config.status: creating man/Makefile
config.status: creating port/Makefile
config.status: creating test/Makefile
config.status: creating tools/Makefile
config.status: creating libtiff/tif_config.h
config.status: creating libtiff/tiffconf.h
config.status: executing depfiles commands
config.status: executing libtool commands

Libtiff is now configured for i386-unknown-openbsd4.8

  Installation directory:             /usr/local
  Documentation directory:            ${prefix}/share/doc/tiff-3.9.4
  C compiler:                         gcc -std=gnu99 -g -O2 -Wall -W
  C++ compiler:                       g++ -g -O2
  Enable runtime linker paths:        no
  Support Microsoft Document Imaging: yes

 Support for internal codecs:
  CCITT Group 3 & 4 algorithms:       yes
  Macintosh PackBits algorithm:       yes
  LZW algorithm:                      yes
  ThunderScan 4-bit RLE algorithm:    yes
  NeXT 2-bit RLE algorithm:           yes
  LogLuv high dynamic range encoding: yes

 Support for external codecs:
  ZLIB support:                       no
  Pixar log-format algorithm:         no
  JPEG support:                       no
  Old JPEG support:                   no
  ISO JBIG support:                   no

  C++ support:                        yes

  OpenGL support:                     no

File_ tiff/tiffconf.h 
Chmod1 tiff/tiffconf.h 
File_ tiff/tiffvers.h 
Chmod1 tiff/tiffvers.h 
File_ tiff/tiffio.h 
Chmod1 tiff/tiffio.h 
File_ tiff/tiff.h 
Chmod1 tiff/tiff.h 
GenFileNND1 libusb/usb.h 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking build system type... i386-unknown-openbsd4.8
checking host system type... i386-unknown-openbsd4.8
checking for style of include used by make... GNU
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /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 whether ln -s works... yes
checking how to recognise dependent libraries... file_magic ELF [0-9][0-9]*-bit 
[LM]SB shared object
checking how to run the C preprocessor... gcc -E
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -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... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... openbsd4.8 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 g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... openbsd4.8 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 for what USB OS support... FreeBSD
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ANSI C header files... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking for memmove... yes
checking if dev/usb/usb.h uses new naming convention... yes
checking for pkg-config... /usr/bin/pkg-config
checking if we should build the documentation... auto
checking for jade... no
checking for openjade... no
checking for Doxygen tools... checking for dot... not found
checking for doxygen... not found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating libusb.spec
config.status: creating libusb-config
config.status: creating libusb.pc
config.status: creating tests/Makefile
config.status: creating README
config.status: creating INSTALL.libusb
config.status: creating usb.h
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
Cc_ numlib/numsup.o 
Cc_ numlib/dnsq.o 
Cc_ numlib/powell.o 
Cc_ numlib/dhsx.o 
Cc_ numlib/ludecomp.o 
Cc_ numlib/svd.o 
Cc_ numlib/zbrent.o 
Cc_ numlib/rand.o 
Cc_ numlib/sobol.o 
Cc_ numlib/aatree.o 
Archive numlib/libnum.a 
Cc_ plot/plot.o 
Archive plot/libplot.a 
Cc_ plot/vrml.o 
Archive plot/libvrml.a 
Cc_ icc/icc.o 
Archive icc/libicc.a 
Cc_ cgats/pars.o 
Cc_ cgats/cgats.o 
Archive cgats/libcgats.a 
Cc_ rspl/rspl.o 
Cc_ rspl/scat.o 
Cc_ rspl/rev.o 
Cc_ rspl/gam.o 
Cc_ rspl/spline.o 
Cc_ rspl/opt.o 
Archive rspl/librspl.a 
Cc_ gamut/gamut.o 
Archive gamut/libgamut.a 
Cc_ gamut/gammap.o 
Cc_ gamut/nearsmth.o 
Archive gamut/libgammap.a 
Cc_ xicc/xicc.o 
Cc_ xicc/xlutfix.o 
Cc_ xicc/xspect.o 
Cc_ xicc/xsep.o 
Cc_ xicc/xcolorants.o 
Cc_ xicc/xutils.o 
Cc_ xicc/xdevlin.o 
Cc_ xicc/xcam.o 
Cc_ xicc/cam97s3.o 
Cc_ xicc/cam02.o 
Cc_ xicc/mpp.o 
Cc_ xicc/ccmx.o 
Cc_ xicc/xfit.o 
Cc_ xicc/xdgb.o 
Cc_ xicc/moncurve.o 
Cc_ xicc/xcal.o 
Archive xicc/libxicc.a 
Cc_ xicc/xcolorants2.o 
Archive xicc/libxcolorants.a 
Cc_ xicc/xutils2.o 
Archive xicc/libxutils.a 
Cc_ imdi/imdi_make.o 
Cc_ imdi/imdi_gen.o 
Cc_ imdi/cgen.o 
Cc_ imdi/cgen.o 
Link_ imdi/imdi_make 
Chmod1 imdi/imdi_make 
GenFileND1 imdi/imdi_k.h 
Cc_ imdi/imdi.o 
Cc_ imdi/imdi_tab.o 
Archive imdi/libimdi.a 
Cc_ spectro/inst.o 
Cc_ spectro/insttypes.o 
Cc_ spectro/dtp20.o 
Cc_ spectro/dtp22.o 
Cc_ spectro/dtp41.o 
Cc_ spectro/dtp51.o 
Cc_ spectro/dtp92.o 
Cc_ spectro/i1disp.o 
Cc_ spectro/i1pro.o 
Cc_ spectro/i1pro_imp.o 
Cc_ spectro/munki.o 
Cc_ spectro/munki_imp.o 
Cc_ spectro/ss.o 
Cc_ spectro/ss_imp.o 
Cc_ spectro/hcfr.o 
Cc_ spectro/spyd2.o 
Cc_ spectro/huey.o 
Cc_ spectro/unixio.o 
Cc_ spectro/usbio.o 
Cc_ spectro/hidio.o 

        cc -c -o spectro/hidio.o -DUNIX -D_THREAD_SAFE -pipe -O2 -DARGYLLCMS 
-Ispectro -Ih -Inumlib -Iicc -Icgats -Irspl -Ixicc -Igamut -Ispectro -Iplot 
-Ilibusb -Iucmm spectro/hidio.c

...failed Cc_ spectro/hidio.o ...
...skipped <spectro>libinst.a for lack of <spectro>libinst.a(hidio.o)...
...failed updating 1 target(s)...
...skipped 1 target(s)...
...updated 86 target(s)...

Other related posts: