Opened 13 years ago
Closed 13 years ago
#32271 closed defect (duplicate)
hugin-app build fails with clang
Reported by: | calvin@… | Owned by: | hvdwolf@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | clang | Cc: | p.schmiedeskamp@…, nickbroon@…, stealthjeff@…, hanche |
Port: | hugin-app |
Description
37%] Building CXX object src/foreign/zthread/src/CMakeFiles/ZThread.dir/AtomicCount.cxx.o cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src && /Developer/usr/bin/clang++ -DNDEBUG -pipe -O2 -arch i386 -O3 -DNDEBUG -arch i386 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/hugin_base -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/vigra -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/celeste -I/opt/local/include -I/opt/local/include/OpenEXR -I/System/Library/Frameworks/GLUT.framework/Headers -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src/../include -o CMakeFiles/ZThread.dir/AtomicCount.cxx.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src/AtomicCount.cxx In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src/AtomicCount.cxx:55: In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src/vanilla/SimpleAtomicCount.cxx:26: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src/../include/zthread/Guard.h:117:9: error: void function 'createScope' should not return a value [-Wreturn-type] return false; ^ ~~~~~ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0/src/foreign/zthread/src/../include/zthread/Guard.h:121:5: error: void function 'createScope' should not return a value [-Wreturn-type] return true; ^ ~~~~ 2 errors generated. make[2]: *** [src/foreign/zthread/src/CMakeFiles/ZThread.dir/AtomicCount.cxx.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0' make[1]: *** [src/foreign/zthread/src/CMakeFiles/ZThread.dir/all] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0' shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/work/hugin-2011.0.0" && /usr/bin/make -w all " returned error 2 Error: Target org.macports.build returned: shell command failed (see log for details) Warning: the following items did not execute (for hugin-app): org.macports.activate org.macports.build org.macports.destroot org.macports.install Log for hugin-app is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_hugin-app/hugin-app/main.log Error: Status 1 encountered during processing.
Here's my port file
# $Id: Portfile 83390 2011-08-31 07:13:22Z jmr@macports.org $ PortSystem 1.0 PortGroup cmake 1.0 name hugin-app version 2011.0.0 revision 2 categories graphics maintainers gmail.com:hvdwolf \ auckland.ac.nz:p.schmiedeskamp description Panorama photo stitcher long_description An easy to use cross-platform panoramic imaging \ toolchain based on Panorama Tools. With hugin you \ can assemble a mosaic of photographs into a complete \ immersive panorama, stitch any series of overlapping \ pictures and much more. homepage http://hugin.sourceforge.net platforms darwin supported_archs i386 ppc master_sites sourceforge:hugin distname hugin-${version} use_bzip2 yes depends_build-append port:pkgconfig depends_lib port:boost \ port:wxWidgets \ port:openexr \ port:exiv2 \ port:libpano13 \ port:glew \ port:libxml2 depends_run port:enblend \ port:p5.12-image-exiftool checksums md5 ac8a129b4c3021233df6d9368c8164cf \ sha1 22e1ad3846291a9bbe58570683e213921a6f0116 \ rmd160 1388980580ecba70a0d47597ddf06df9b85ab2b5
Attachments (1)
Change History (12)
Changed 13 years ago by calvin@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | p.schmiedeskamp@… added |
---|---|
Owner: | changed from macports-tickets@… to hvdwolf@… |
Port: | hugin-app added; graphics/hugin-app removed |
Priority: | High → Normal |
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | clang added |
---|---|
Summary: | hugin-app build fails → hugin-app build fails with clang |
comment:3 Changed 13 years ago by calvin@…
sorry about the unnecessary paste.
tried
sudo port -v install hugin-app configure.compiler=llvm-gcc-4.2
but it failed as well.
comment:4 Changed 13 years ago by calvin@…
Also tried
sudo port -v install hugin-app configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2
to no avail.
comment:8 Changed 13 years ago by stealthjeff@…
I'm seeing the same issue under OSX/10.7 with default Xcode 4.2.1, with configure.compiler=llvm-gcc-4.2, and with configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2.
comment:9 Changed 13 years ago by hanche
Replying to nickbroon@…:
Is this not a dupe of ticket #31778 ?
It is indeed, as far as I can tell. Perhaps someone could close this one?
comment:11 Changed 13 years ago by mf2k (Frank Schima)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Why did you paste the contents of your Portfile? It looks the same as the official portfile, except you removed some lines at the bottom (or didn't paste them).
It looks like you are using clang. Have you tried llvm-gcc-4.2 instead? See ProblemHotlist#compiler.