[MacPorts] #35528: transfig build fails without error
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: transfig ---------------------------------------+------------------------------------ After upgrading transfig, I found out that fig2dev did not work anymore. After doing some checking, I found out that the build of transfig fails, but that the build script does not detect the error exit status. The build fails at the following point: genibmgl.c:575:29: error: non-void function 'set_width' should return a value [-Wreturn-type] if (w == current_width) return; I have attached the debug log. -- Ticket URL: <https://trac.macports.org/ticket/35528> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * keywords: => clang * priority: High => Normal Old description:
After upgrading transfig, I found out that fig2dev did not work anymore. After doing some checking, I found out that the build of transfig fails, but that the build script does not detect the error exit status.
The build fails at the following point:
genibmgl.c:575:29: error: non-void function 'set_width' should return a value [-Wreturn-type] if (w == current_width) return;
I have attached the debug log.
New description: After upgrading transfig, I found out that fig2dev did not work anymore. After doing some checking, I found out that the build of transfig fails, but that the build script does not detect the error exit status. The build fails at the following point: {{{ genibmgl.c:575:29: error: non-void function 'set_width' should return a value [-Wreturn-type] if (w == current_width) return; }}} I have attached the debug log. -- -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Comment(by seongmin.hwang+macports@…): Reporting a workaround (and possible solution) to this issue. I have tried the following steps: 1. Stop (Ctrl-C) the port during building process.[[BR]] 2. Change "return ;" to "return 0" in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_transfig/transfig/work/transfig.3.2.5d/fig2dev/dev/genibmgl.c (Line 575)[[BR]] 3. Resume the port. (sudo port install transfig) These steps seemed to solve the problem and resulted in proper fig2dev and other associated binaries. Regards, Seong-min -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Comment(by seongmin.hwang+macports@…): "return 0" above should be "return 0;". Sorry for the confusion. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Comment(by jurgen.defurne@…): As a workaround, it is good enough, thanks! -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * cc: gnn@… (added) Comment: Duplicate #35628 suggests a different fix. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Comment(by Zittersteyn@…): My system had the same issue, but killing port during building did not work. My workaround: sudo port <enters interactive mode>
fetch transfig
<transfig is downloaded, the file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_print_transfig/transfig/work/transfig.3.2.5d/fig2dev/dev/genibmgl.c now exists, edit as Seong-min suggested>
checksum transfig
extract transfig
patch transfig
configure transfig
build transfig
destroot transfig
install transfig
activate transfig
I have no idea if the entire chain of commands is needed, documentation of the commands is rather... sparse, but this worked for me. Thanks for the fix, this was driving me INSANE :-). Cheers, Dirk -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * cc: rz.rios@… (added) * owner: macports-tickets@… => ryandesign@… * status: new => assigned Comment: Has duplicate #35720. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ---------------------------------------+------------------------------------ Reporter: jurgen.defurne@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: clang | Port: transfig ---------------------------------------+------------------------------------ Comment(by ryandesign@…): The problem occurs because of a combination of factors. First, transfig does not build with clang. The portfile was already modified in r89950 to use llvm-gcc-4.2 instead of clang, but additionally, not all parts of the transfig build were UsingTheRightCompiler, so they still used the system default compiler. With Xcode 4.4 (or even 4.3 already?) the system default compiler changed from llvm-gcc-4.2 to clang. Finally, the transfig build does not detect when parts fail to build, and it proceeds anyway, ending up with a "successful" install that's missing parts that should be there. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ----------------------------------------+----------------------------------- Reporter: jurgen.defurne@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: transfig | ----------------------------------------+----------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Replying to [comment:10 ryandesign@…]:
The problem occurs because of a combination of factors. First, transfig does not build with clang. The portfile was already modified in r89950 to use llvm-gcc-4.2 instead of clang, but additionally, not all parts of the transfig build were UsingTheRightCompiler, so they still used the system default compiler. With Xcode 4.4 (or even 4.3 already?) the system default compiler changed from llvm-gcc-4.2 to clang.
Fixed in r96726. Now it's always UsingTheRightCompiler and -arch flags, and I added a universal variant and increased the revision to force a rebuild.
Finally, the transfig build does not detect when parts fail to build, and it proceeds anyway, ending up with a "successful" install that's missing parts that should be there.
Added detection for this problem to the portfile in r96725 so that if in the future new compilers cause other build problems, we'll be notified by the port failing to build. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ----------------------------------------+----------------------------------- Reporter: jurgen.defurne@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: transfig | ----------------------------------------+----------------------------------- Comment(by gnn@…): Thanks! This worked for me. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35528: transfig build fails without error ----------------------------------------+----------------------------------- Reporter: jurgen.defurne@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: clang Port: transfig | ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Has duplicate #35839. -- Ticket URL: <https://trac.macports.org/ticket/35528#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts