Bug 193180 - cad/spice build failure due to MAKE_JOBS_UNSAFE removal
Summary: cad/spice build failure due to MAKE_JOBS_UNSAFE removal
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: i386 Any
: --- Affects Only Me
Assignee: Hiroki Sato
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-30 21:50 UTC by russo
Modified: 2014-08-31 19:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description russo 2014-08-30 21:50:00 UTC
Ever since PORTREVISION 11 (22 August) I have been unable to update the cad/spice port.  It fails so:

[...]
cc -O2 -pipe -fno-strict-aliasing -Dbsd -I/users/scratch/usr/ports/cad/spice/work/spice3f5/src/include -I/users/scratch/usr/ports/cad/spice/work/spice3f5/src//lib/dev/ -c /users/scratch/usr/ports/cad/spice/work/spice3f5/src/bin//sconvert.c  
mv -f main.o spice3.o
mv: rename main.o to spice3.o: No such file or directory
*** [spice3.o] Error code 1
[...]
cc -o nutmeg nutmeg.o nconf.o tune.o /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/fte.a /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/cp.a /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/hlp.a  /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/mfb.a /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/misc.a -L/usr/local/lib -lXaw -lXt -lXext -lXmu -lX11 -lm -ltermcap
cc -o nutmeg nutmeg.o nconf.o tune.o /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/fte.a /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/cp.a /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/hlp.a  /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/mfb.a /users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/misc.a -L/usr/local/lib -lXaw -lXt -lXext -lXmu -lX11 -lm -ltermcap
nutmeg.o:(.data+0x20): undefined reference to `IFnewUid'
nutmeg.o:(.data+0x24): undefined reference to `IFdelUid'
/users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/fte.a(outitf.o): In function `getSpecial':
outitf.c:(.text+0x599): undefined reference to `INPaName'
/users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/fte.a(outitf.o): In function `beginPlot':
outitf.c:(.text+0xe69): undefined reference to `analInfo'
outitf.c:(.text+0x1616): undefined reference to `INPinsert'
outitf.c:(.text+0x167f): undefined reference to `analInfo'
/users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/fte.a(shyu.o): In function `if_sens_run':
shyu.c:(.text+0x69): undefined reference to `INPgetTok'
shyu.c:(.text+0x22b): undefined reference to `INPmkTemp'
shyu.c:(.text+0x23a): undefined reference to `INPerrCat'
shyu.c:(.text+0x2a3): undefined reference to `INPgetTok'
shyu.c:(.text+0x36a): undefined reference to `INPgetTok'
shyu.c:(.text+0x395): undefined reference to `INPapName'
shyu.c:(.text+0x3be): undefined reference to `INPgetValue'
shyu.c:(.text+0x3e0): undefined reference to `INPapName'
shyu.c:(.text+0x409): undefined reference to `INPgetValue'
shyu.c:(.text+0x42b): undefined reference to `INPapName'
[...many lines of undefined references...]
spiceif.c:(.text+0x14b1): undefined reference to `INPtabEnd'
/users/scratch/usr/ports/cad/spice/work/spice3f5/FreeBSD/obj/lib/fte.a(gens.o): In function `dgen_next':
gens.c:(.text+0x331): undefined reference to `DEVmaxnum'
gens.c:(.text+0x33f): undefined reference to `DEVmaxnum'
*** [nutmeg] Error code 1
2 errors
`recursive' not remade because of errors.
Done with build at Sat Aug 30 15:06:50 MDT 2014
===>  Staging for spice-3f5.2_11
===>   spice-3f5.2_11 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   spice-3f5.2_11 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found
===>   spice-3f5.2_11 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found
===>   spice-3f5.2_11 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found
===>   spice-3f5.2_11 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found
===>   Generating temporary packing list
make: don't know how to make spice3. Stop
*** [do-install] Error code 2

I've checked again every time I see a commit to cad/spice, but it hasn't started building again yet.



My system:
> uname -a
FreeBSD bogodyn.org 9.3-STABLE FreeBSD 9.3-STABLE #0 r270492: Sun Aug 24 15:57:37 MDT 2014     russo@bogodyn.org:/usr/obj/usr/src/sys/BOGODYN  i386
Comment 1 russo 2014-08-30 21:56:59 UTC
FWIW, the symbols that the linker is complaining about are all present as defined symbols (not just undefined references) in .a files in work/spice3f5/FreeBSD/obj/lib that are not being included on the link line (e.g. inp.a, fte.a, etc.) with the exception of DEVmaxnum, which appears in none of those libraries except as undefined references:

>nm inp.a | grep INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
         U INPgetTok
00000000 T INPgetTok
         U INPgetTok
         U INPgetTok
> nm inp.a | grep IFnewUid
00000080 T IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid
         U IFnewUid

So clearly *something* changed that stopped putting these libraries onto the link line.
Comment 2 russo 2014-08-30 22:00:35 UTC
Sigh... should have tried this before posting the report.  

Apparently, at 19:41 on 21 Aug, the last commit to PORTREVISION 10 of cad/spice was to remove the MAKE_JOBS_UNSAFE line from Makefile.

If I do 

   env MAKE_JOBS_UNSAFE=yes make

in /usr/ports/cad/spice, all these link errors go away.  Perhaps removing it wasn't safe?
Comment 3 russo 2014-08-30 22:03:17 UTC
Changing bug summary to reflect the real issue.  Sorry for the noise.

This issue would be completely solved if MAKE_JOBS_UNSAFE were restored.  Forcing that variable into the environment lets portupgrade proceed on cad/spice for me.
Comment 4 Hiroki Sato freebsd_committer freebsd_triage 2014-08-30 22:23:22 UTC
Take.
Comment 5 Hiroki Sato freebsd_committer freebsd_triage 2014-08-31 19:48:51 UTC
MAKE_JOBS_UNSAFE=yes has been added.  Thank you for your report.