[argyllcms] Building AryllCMS 1.3.3 on Ubuntu 11.10 (to be)

Hi,

As you might be aware I packaged Argyll 1.3.3 using the upstream Jam
build files. I have a "user" who is trying to build my package sources
on Ubuntu 11.10 (to be).

I attached the build log of the failed build.

The problem seems to lie in the fact that Ubuntu seems to have
switched from GNU ld to the new faster Gold linker (by Google).

Does anybody have any experience with building Argyll with Gold? Any
tips on how to deal with this?

Regards,
Pascal de Bruijn
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): 
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): 
-Wl,-Bsymbolic-functions
dpkg-buildpackage: source package argyll
dpkg-buildpackage: source version 1.3.3-0ubuntu1
dpkg-buildpackage: source changed by Till Kamppeter <till.kamppeter@xxxxxxxxx>
 dpkg-source --before-build argyll-1.3.3
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-res
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-math
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-help
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-binfilter
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-calc
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-writer
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us
dpkg-checkbuilddeps: warning: can't parse dependency libobasis33-en_us-base
 fakeroot debian/rules clean
dh clean
   dh_testdir
   # Skipping dh_auto_clean - empty override
   dh_clean
 dpkg-source -b argyll-1.3.3
dpkg-source: warning: Version number suggests Ubuntu changes, but Maintainer: 
does not have Ubuntu address
dpkg-source: warning: Version number suggests Ubuntu changes, but there is no 
XSBC-Original-Maintainer field
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building argyll using existing ./argyll_1.3.3.orig.tar.gz
dpkg-source: info: building argyll in argyll_1.3.3-0ubuntu1.debian.tar.gz
dpkg-source: info: building argyll in argyll_1.3.3-0ubuntu1.dsc
 debian/rules build
dh build
   dh_testdir
   # Skipping dh_auto_configure - empty override
   debian/rules override_dh_auto_build
make[1]: Entering directory `/home/till/ubuntu/argyll/ppa/argyll-1.3.3'
jam -q -f Jambase -s DESTDIR=debian/tmp -s PREFIX=/usr -j 3
Argyll Jamrules has been read 
DESTDIR = 'debian/tmp', PREFIX = '/usr' 
Using system TIFF library 
sed seems to be available 
...patience...
...found 1199 target(s)...
...updating 345 target(s)...
File_ libusb1/libusb/libusb-1.0A.def 
File_ libusb1/libusb.h 
CreateCatFile_ libusb1/config.h 
Chmod1 libusb1/libusb/libusb-1.0A.def 
Chmod1 libusb1/libusb.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
Cc_ numlib/numsup.o 
CatToFile_ libusb1/config.h 
Cc_ numlib/dnsq.o 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
CatToFile_ libusb1/config.h 
Cc_ libusb1/libusb/core.o 
Cc_ libusb1/libusb/descriptor.o 
Cc_ libusb1/libusb/io.o 
Cc_ libusb1/libusb/sync.o 
Cc_ libusb1/libusb/os/linux_usbfs.o 
Cc_ numlib/powell.o 
Cc_ numlib/dhsx.o 
Cc_ numlib/ludecomp.o 
Cc_ numlib/svd.o 
Archive libusb1/libusb/libusb-1.0A.a 
Cc_ numlib/zbrent.o 
File_ libusb1/libusb-1.0A.a 
Chmod1 libusb1/libusb-1.0A.a 
Cc_ numlib/rand.o 
Cc_ numlib/sobol.o 
Cc_ numlib/aatree.o 
Cc_ plot/plot.o 
Cc_ plot/vrml.o 
Archive numlib/libnum.a 
Cc_ icc/icc.o 
Archive plot/libvrml.a 
Cc_ cgats/pars.o 
Archive plot/libplot.a 
Cc_ cgats/cgats.o 
Cc_ rspl/rspl.o 
Cc_ rspl/scat.o 
Archive cgats/libcgats.a 
Cc_ rspl/rev.o 
rspl/rev.c: In function ‘search_list’:
rspl/rev.c:1429:21: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 3 has type ‘size_t’ [-Wformat]
rspl/rev.c:1429:21: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 4 has type ‘size_t’ [-Wformat]
rspl/rev.c: In function ‘free_rev’:
rspl/rev.c:4963:24: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 7 has type ‘size_t’ [-Wformat]
rspl/rev.c: In function ‘init_revaccell’:
rspl/rev.c:6157:24: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 7 has type ‘size_t’ [-Wformat]
rspl/rev.c: In function ‘invalidate_revaccell’:
rspl/rev.c:6225:24: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 7 has type ‘size_t’ [-Wformat]
rspl/rev.c: In function ‘make_rev’:
rspl/rev.c:6482:6: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 4 has type ‘size_t’ [-Wformat]
rspl/rev.c:6501:4: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 4 has type ‘size_t’ [-Wformat]
rspl/rev.c:6510:3: warning: format ‘%d’ expects argument of type ‘int’, but 
argument 4 has type ‘size_t’ [-Wformat]
Cc_ rspl/gam.o 
Cc_ rspl/spline.o 
Cc_ rspl/opt.o 
Cc_ gamut/gamut.o 
Archive rspl/librspl.a 
Cc_ gamut/gammap.o 
Archive gamut/libgamut.a 
Cc_ gamut/nearsmth.o 
Cc_ xicc/xicc.o 
Archive gamut/libgammap.a 
Cc_ xicc/xlutfix.o 
Cc_ xicc/xspect.o 
Cc_ xicc/xsep.o 
Cc_ xicc/xcolorants.o 
Cc_ xicc/xutils.o 
Archive icc/libicc.a 
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 
Cc_ xicc/xcolorants2.o 
Archive xicc/libxcolorants.a 
Cc_ xicc/xutils2.o 
Cc_ imdi/imdi_make.o 
Archive xicc/libxutils.a 
In file included from imdi/imdi.h:20:0,
                 from imdi/imdi_make.c:31:
imdi/imdi_utl.h:36:9: note: #pragma message: Using 64 bit integer color kernel
Archive xicc/libxicc.a 
Cc_ imdi/imdi_gen.o 
Cc_ imdi/cgen.o 
In file included from imdi/imdi.h:20:0,
                 from imdi/cgen.c:29:
imdi/imdi_utl.h:36:9: note: #pragma message: Using 64 bit integer color kernel
In file included from imdi/imdi_gen.c:99:0:
imdi/imdi_utl.h:36:9: note: #pragma message: Using 64 bit integer color kernel
Cc_ imdi/imdi_tab.o 
Cc_ spectro/inst.o 
In file included from imdi/imdi.h:20:0,
                 from imdi/imdi_tab.c:26:
imdi/imdi_utl.h:36:9: note: #pragma message: Using 64 bit integer color kernel
Cc_ spectro/insttypes.o 
Cc_ spectro/dtp20.o 
Cc_ spectro/dtp22.o 
Cc_ spectro/dtp41.o 
Cc_ imdi/cgen.o 
In file included from imdi/imdi.h:20:0,
                 from imdi/cgen.c:29:
imdi/imdi_utl.h:36:9: note: #pragma message: Using 64 bit integer color kernel
Cc_ spectro/dtp51.o 
Cc_ spectro/dtp92.o 
Cc_ spectro/i1disp.o 
Cc_ spectro/i1pro.o 
Cc_ spectro/i1pro_imp.o 
Link_ imdi/imdi_make 
spectro/i1pro_imp.c: In function ‘i1pro_extract_patches_multimeas’:
spectro/i1pro_imp.c:4661:5: warning: unknown conversion type character ‘k’ in 
format [-Wformat]
spectro/i1pro_imp.c: In function ‘i1pro_readmeasurement’:
spectro/i1pro_imp.c:7273:2: warning: format ‘%x’ expects argument of type 
‘unsigned int’, but argument 5 has type ‘unsigned char *’ [-Wformat]
Chmod1 imdi/imdi_make 
GenFileND1 imdi/imdi_k.h 
Cc_ spectro/munki.o 
Cc_ spectro/munki_imp.o 
spectro/munki_imp.c: In function ‘add_munkiimp’:
spectro/munki_imp.c:277:3: warning: format ‘%d’ expects argument of type ‘int’, 
but argument 2 has type ‘long unsigned int’ [-Wformat]
spectro/munki_imp.c: In function ‘munki_extract_patches_multimeas’:
spectro/munki_imp.c:4327:5: warning: unknown conversion type character ‘k’ in 
format [-Wformat]
spectro/munki_imp.c: In function ‘munki_readmeasurement’:
spectro/munki_imp.c:7029:2: warning: format ‘%x’ expects argument of type 
‘unsigned int’, but argument 5 has type ‘unsigned char *’ [-Wformat]
Cc_ imdi/imdi.o 
In file included from imdi/imdi.h:20:0,
                 from imdi/imdi.c:23:
imdi/imdi_utl.h:36:9: note: #pragma message: Using 64 bit integer color kernel
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_ spectro/dispsup.o 
Archive spectro/libinst.a 
Cc_ spectro/dispwin.o 
spectro/dispsup.c: In function ‘disprd_read_imp’:
spectro/dispsup.c:373:4: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘int’ [-Wformat]
spectro/dispsup.c:391:5: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘int’ [-Wformat]
spectro/dispsup.c:408:5: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘int’ [-Wformat]
spectro/dispsup.c:461:4: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘int’ [-Wformat]
spectro/dispsup.c: In function ‘disprd_fake_read’:
spectro/dispsup.c:1371:6: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘unsigned int’ [-Wformat]
spectro/dispsup.c:1376:6: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘unsigned int’ [-Wformat]
spectro/dispsup.c: In function ‘disprd_fake_read_lu’:
spectro/dispsup.c:1468:5: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘unsigned int’ [-Wformat]
spectro/dispsup.c: In function ‘disprd_fake_read_co’:
spectro/dispsup.c:1548:5: warning: format ‘%s’ expects argument of type ‘char 
*’, but argument 3 has type ‘unsigned int’ [-Wformat]
spectro/dispwin.c: In function ‘new_dispwin’:
spectro/dispwin.c:3680:12: warning: ignoring return value of ‘system’, declared 
with attribute warn_unused_result [-Wunused-result]
spectro/dispwin.c:3697:14: warning: ignoring return value of ‘freopen’, 
declared with attribute warn_unused_result [-Wunused-result]
spectro/dispwin.c:3698:14: warning: ignoring return value of ‘freopen’, 
declared with attribute warn_unused_result [-Wunused-result]
spectro/dispwin.c:3699:14: warning: ignoring return value of ‘freopen’, 
declared with attribute warn_unused_result [-Wunused-result]
spectro/dispwin.c:3718:12: warning: ignoring return value of ‘system’, declared 
with attribute warn_unused_result [-Wunused-result]
spectro/dispwin.c: In function ‘restore_ssaver’:
spectro/dispwin.c:2432:9: warning: ignoring return value of ‘system’, declared 
with attribute warn_unused_result [-Wunused-result]
spectro/dispwin.c:2441:9: warning: ignoring return value of ‘system’, declared 
with attribute warn_unused_result [-Wunused-result]
Cc_ spectro/insttypes2.o 
Archive spectro/libdisp.a 
Cc_ spectro/conv.o 
Archive spectro/libinsttypes.a 
Cc_ spectro/xdg_bds.o 
Cc_ spectro/pollem.o 
...on 100th target...
Cc_ scanin/scanrd.o 
scanin/scanrd.c: In function ‘debug_elist’:
scanin/scanrd.c:2342:2: warning: format ‘%x’ expects argument of type ‘unsigned 
int’, but argument 4 has type ‘long unsigned int’ [-Wformat]
scanin/scanrd.c: In function ‘setup_sboxes’:
scanin/scanrd.c:3247:4: warning: format ‘%d’ expects argument of type ‘int’, 
but argument 3 has type ‘long int’ [-Wformat]
scanin/scanrd.c: In function ‘do_value_scan’:
scanin/scanrd.c:3465:6: warning: format ‘%d’ expects argument of type ‘int’, 
but argument 3 has type ‘long int’ [-Wformat]
scanin/scanrd.c:3513:6: warning: format ‘%d’ expects argument of type ‘int’, 
but argument 3 has type ‘long int’ [-Wformat]
Archive spectro/libconv.a 
Cc_ profile/profin.o 
Cc_ profile/profout.o 
profile/profout.c: In function ‘make_output_icc’:
profile/profout.c:695:4: warning: use of assignment suppression and length 
modifier together in gnu_scanf format [-Wformat]
profile/profout.c:695:4: warning: use of assignment suppression and length 
modifier together in gnu_scanf format [-Wformat]
Archive scanin/libscanrd.a 
Cc_ render/render.o 
Archive render/librender.a 
Cc_ jcnf/yajl/yajl.o 
Cc_ jcnf/yajl/yajl_alloc.o 
Archive profile/libprof.a 
Cc_ jcnf/yajl/yajl_buf.o 
Cc_ jcnf/yajl/yajl_encode.o 
Cc_ jcnf/yajl/yajl_gen.o 
Cc_ jcnf/yajl/yajl_lex.o 
Cc_ jcnf/yajl/yajl_parser.o 
Cc_ jcnf/jcnf.o 
Archive jcnf/yajl/libyajl.a 
Cc_ ucmm/ucmm.o 
Archive jcnf/libjcnf.a 
Cc_ numlib/dnsqtest.o 
Link_ numlib/dnsqtest 
Chmod1 numlib/dnsqtest 
Cc_ numlib/tpowell.o 
Link_ numlib/tpowell 
Archive ucmm/libucmm.a 
Cc_ numlib/tdhsx.o 
Chmod1 numlib/tpowell 
Link_ numlib/tdhsx 
Cc_ numlib/LUtest.o 
Chmod1 numlib/tdhsx 
Cc_ numlib/svdtest.o 
Link_ numlib/LUtest 
Link_ numlib/svdtest 
Chmod1 numlib/LUtest 
Cc_ numlib/zbrenttest.o 
Link_ numlib/zbrenttest 
Chmod1 numlib/svdtest 
Cc_ numlib/soboltest.o 
Chmod1 numlib/zbrenttest 
Cc_ plot/plot_plot.o 
Link_ numlib/soboltest 
Chmod1 numlib/soboltest 
Cc_ icc/icctest.o 
Link_ plot/plot 
plot/plot_plot.o: In function `ytick':
plot.c:(.text+0x60): undefined reference to `XDrawLine'
plot.c:(.text+0x85): undefined reference to `XDrawImageString'
plot/plot_plot.o: In function `xtick':
plot.c:(.text+0x115): undefined reference to `XDrawLine'
plot.c:(.text+0x137): undefined reference to `XDrawImageString'
plot/plot_plot.o: In function `DoPlot':
plot.c:(.text+0x497): undefined reference to `XAllocColor'
plot.c:(.text+0x4a7): undefined reference to `XSetForeground'
plot.c:(.text+0x4c8): undefined reference to `XSetLineAttributes'
plot.c:(.text+0x4e0): undefined reference to `XSetDashes'
plot.c:(.text+0x5b0): undefined reference to `XAllocColor'
plot.c:(.text+0x5c2): undefined reference to `XSetForeground'
plot.c:(.text+0x5e2): undefined reference to `XSetLineAttributes'
plot.c:(.text+0x6d6): undefined reference to `XDrawLine'
plot.c:(.text+0x75e): undefined reference to `XAllocColor'
plot.c:(.text+0x76e): undefined reference to `XSetForeground'
plot.c:(.text+0x78c): undefined reference to `XSetLineAttributes'
plot.c:(.text+0x894): undefined reference to `XAllocColor'
plot.c:(.text+0x8a4): undefined reference to `XSetForeground'
plot.c:(.text+0x8d7): undefined reference to `XDrawLine'
plot.c:(.text+0x908): undefined reference to `XDrawLine'
plot.c:(.text+0x94d): undefined reference to `XDrawImageString'
plot.c:(.text+0x9d3): undefined reference to `XAllocColor'
plot.c:(.text+0x9e3): undefined reference to `XSetForeground'
plot.c:(.text+0xa01): undefined reference to `XSetLineAttributes'
plot.c:(.text+0xb40): undefined reference to `XAllocColor'
plot.c:(.text+0xb52): undefined reference to `XSetForeground'
plot.c:(.text+0xb92): undefined reference to `XDrawLine'
plot.c:(.text+0xbff): undefined reference to `XAllocColor'
plot.c:(.text+0xc0f): undefined reference to `XSetForeground'
plot.c:(.text+0xc2d): undefined reference to `XSetLineAttributes'
plot.c:(.text+0xd08): undefined reference to `XDrawLine'
plot.c:(.text+0xd43): undefined reference to `XDrawLine'
plot.c:(.text+0xd73): undefined reference to `XDrawLine'
plot.c:(.text+0xdb9): undefined reference to `XDrawImageString'
plot/plot_plot.o: In function `do_plot_imp':
plot.c:(.text+0x1075): undefined reference to `XCreateGC'
plot.c:(.text+0x108a): undefined reference to `XSetBackground'
plot.c:(.text+0x109c): undefined reference to `XSetForeground'
plot.c:(.text+0x10b4): undefined reference to `XSelectInput'
plot.c:(.text+0x113a): undefined reference to `XClearWindow'
plot.c:(.text+0x115c): undefined reference to `XSendEvent'
plot.c:(.text+0x116b): undefined reference to `XNextEvent'
plot.c:(.text+0x1190): undefined reference to `XFreeGC'
plot.c:(.text+0x11c4): undefined reference to `XRefreshKeyboardMapping'
plot.c:(.text+0x11f1): undefined reference to `XGetWindowAttributes'
plot.c:(.text+0x12bf): undefined reference to `XMapRaised'
plot.c:(.text+0x1316): undefined reference to `XCreateSimpleWindow'
plot.c:(.text+0x1351): undefined reference to `XSetStandardProperties'
plot.c:(.text+0x1376): undefined reference to `XOpenDisplay'
collect2: ld returned 1 exit status

        cc -L/usr/lib -ldl -lrt -lX11 -lXext -lXxf86vm -lXinerama -lXrandr 
-lXau -lXdmcp -lXss -ltiff -o plot/plot  plot/plot_plot.o  spectro/libconv.a 
numlib/libnum.a  -lm -lpthread 

...failed Link_ plot/plot ...
Link_ icc/icctest 
Chmod1 icc/icctest 
Archive imdi/libimdi.a 
...failed updating 1 target(s)...
...updated 137 target(s)...
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/home/till/ubuntu/argyll/ppa/argyll-1.3.3'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Other related posts: