Ticket #34838 (closed defect: fixed)
vnl_matrix_fixed_ref.h:656:12: error: use of undeclared identifier 'equal'
| Reported by: | andi.dhroso@… | Owned by: | wiking@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.1 |
| Keywords: | rev-upgrade clang haspatch | Cc: | cal@… |
| Port: | vxl |
Description (last modified by ryandesign@…) (diff)
I can't get to install vxl properly. It builds and installs fine but fails on the last step: "scanning binaries for linking errors"
I've tried other variations of compiler flags but fails to build.
sudo port install vxl configure.compiler=llvm-gcc-4.2 configure.cxx=g++-4.2
Console output:
---> Computing dependencies for vxl
---> Fetching archive for vxl
---> Attempting to fetch vxl-1.14.0_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/vxl
---> Fetching distfiles for vxl
---> Verifying checksum(s) for vxl
---> Extracting vxl
---> Applying patches to vxl
---> Configuring vxl
---> Building vxl
---> Staging vxl into destroot
---> Installing vxl @1.14.0_1
---> Activating vxl @1.14.0_1
---> Cleaning vxl
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> Found 1 broken file(s), matching files to ports
---> Found 1 broken port(s), determining rebuild order
---> Rebuilding in order
vxl @1.14.0
---> Computing dependencies for vxl
---> Cleaning vxl
---> Scanning binaries for linking errors: 100.0%
---> Found 1 broken file(s), matching files to ports
---> Found 1 broken port(s), determining rebuild order
---> Rebuilding in order
vxl @1.14.0
---> Computing dependencies for vxl
---> Cleaning vxl
---> Deactivating vxl @1.14.0_1
---> Cleaning vxl
---> Uninstalling vxl @1.14.0_1
---> Cleaning vxl
---> Computing dependencies for vxl
---> Fetching distfiles for vxl
---> Verifying checksum(s) for vxl
---> Extracting vxl
---> Applying patches to vxl
---> Configuring vxl
---> Building vxl
Error: org.macports.build for port vxl returned: command execution failed
Please see the log file for port vxl for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/vxl/main.log
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
See log file for the error message.
Attachments
Change History
comment:1 Changed 12 months ago by cal@…
- Owner changed from macports-tickets@… to wiking@…
- Keywords rev-upgrade added; vxl, equal removed
- Description modified (diff)
- Summary changed from vxl: binaries scan linking errors to vnl_matrix_fixed_ref.h:656:12: error: use of undeclared identifier 'equal'
Please remember to use WikiFormatting when posting in Trac.
From taking a peek at main.log, the problem seems to be
vnl_matrix_fixed_ref.h:656:12: error: use of undeclared identifier 'equal'
comment:2 Changed 12 months ago by cal@…
Also, if this fails again in rev-upgrade, please run sudo port -d -y rev-upgrade and attach the output.
comment:3 Changed 12 months ago by andi.dhroso@…
I ran the command sudo port rev-upgrade:
Output:
sudo port rev-upgrade ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.
Then I ran sudo port -d -y rev-upgrade:
and this gives:
sudo port -d -y rev-upgrade DEBUG: Copying /Users/andi/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/ld64/ld DEBUG: skipping ppc in /opt/local/share/cmake-2.8/Modules/CPack.OSXScriptLauncher.in since this system can't run it anyway DEBUG: Missing architecture arm in file /usr/lib/libc++abi.dylib DEBUG: Missing architecture arm in file outside prefix referenced from /opt/local/lib/apple-gcc42/gcc/i686-apple-darwin11/4.2.1/libstdc++.dylib DEBUG: Missing architecture arm in file /usr/lib/libSystem.B.dylib DEBUG: Missing architecture arm in file outside prefix referenced from /opt/local/lib/apple-gcc42/gcc/i686-apple-darwin11/4.2.1/libstdc++.dylib DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/bugpoint DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llc DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/lli DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-ar DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-as DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-bcanalyzer DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-cov DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-diff DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-dis DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-dwarfdump DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-extract DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-ld DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-link DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-mc DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-nm DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-objdump DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-prof DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-ranlib DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-rtdyld DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/llvm-size DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/macho-dump DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/libexec/llvm-3.0/bin/opt ---> Scanning binaries for linking errors ---> No broken files found.
I re-ran the sudo port install vxl configure.compiler=llvm-gcc-4.2 configure.cxx=g++-4.2
after
sudo port -d -y rev-upgrade
and the console output is:
sudo port install vxl configure.compiler=llvm-gcc-4.2 configure.cxx=g++-4.2
---> Computing dependencies for vxl
---> Fetching archive for vxl
---> Attempting to fetch vxl-1.14.0_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/vxl
---> Fetching distfiles for vxl
---> Verifying checksum(s) for vxl
---> Extracting vxl
---> Applying patches to vxl
---> Configuring vxl
---> Building vxl
---> Staging vxl into destroot
---> Installing vxl @1.14.0_1
---> Activating vxl @1.14.0_1
---> Cleaning vxl
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> Found 1 broken file(s), matching files to ports
---> Found 1 broken port(s), determining rebuild order
---> Rebuilding in order
vxl @1.14.0
---> Computing dependencies for vxl
---> Cleaning vxl
---> Scanning binaries for linking errors: 100.0%
---> Found 1 broken file(s), matching files to ports
---> Found 1 broken port(s), determining rebuild order
---> Rebuilding in order
vxl @1.14.0
---> Computing dependencies for vxl
---> Cleaning vxl
---> Deactivating vxl @1.14.0_1
---> Cleaning vxl
---> Uninstalling vxl @1.14.0_1
---> Cleaning vxl
---> Computing dependencies for vxl
---> Fetching distfiles for vxl
---> Verifying checksum(s) for vxl
---> Extracting vxl
---> Applying patches to vxl
---> Configuring vxl
---> Building vxl
Error: org.macports.build for port vxl returned: command execution failed
Please see the log file for port vxl for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/vxl/main.log
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.
Error is the same as before: vnl_matrix_fixed_ref.h:656:12: error: use of undeclared identifier 'equal'
See attached log file.
comment:4 follow-ups: ↓ 5 ↓ 6 Changed 12 months ago by cal@…
- Cc cal@… added
It seems there's more than one bug here. First, the vxl port doesn't build with clang/clang++. The maintainer should either fix the build with clang, or disable the use of clang with this port.
Second, the binary built with configure.compiler=llvm-gcc-4.2 fails rev-upgrade checks. To debug this, please
- install vxl using sudo port install --no-rev-upgrade vxl configure.compiler=llvm-gcc-4.2
- run sudo port -d -y rev-upgrade and attach the output.
comment:5 in reply to: ↑ 4 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
It seems there's more than one bug here. First, the vxl port doesn't build with clang/clang++. The maintainer should either fix the build with clang, or disable the use of clang with this port.
This may sound silly, but i'm not sure really sure how to go about fixing the build with clang
comment:6 in reply to: ↑ 4 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
It seems there's more than one bug here. First, the vxl port doesn't build with clang/clang++. The maintainer should either fix the build with clang, or disable the use of clang with this port.
Not sure about how to fix or disable to use of clang of this port, can you point some direction?
Second, the binary built with configure.compiler=llvm-gcc-4.2 fails rev-upgrade checks. To debug this, please
- install vxl using sudo port install --no-rev-upgrade vxl configure.compiler=llvm-gcc-4.2
- run sudo port -d -y rev-upgrade and attach the output.
Because i'm not sure how to deal with the first problem, I went ahead and did the second step as you suggested.
See log file output.log
Changed 12 months ago by andi.dhroso@…
- Attachment output.log added
Output from the command: "sudo port -d -y rev-upgrade" after running: sudo port install --no-rev-upgrade vxl configure.compiler=gcc-4.2
Changed 12 months ago by cal@…
- Attachment patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff added
Changed 12 months ago by cal@…
Changed 12 months ago by cal@…
Changed 12 months ago by cal@…
Changed 12 months ago by cal@…
- Attachment patch-contrib__tbl__vipl__txx-clang-compatibility.diff added
Changed 12 months ago by cal@…
Changed 12 months ago by cal@…
Changed 12 months ago by cal@…
Changed 12 months ago by cal@…
- Attachment patch-core__vnl__vnl_matrix_fixed_ref.h-clang-compatibility.diff added
comment:7 Changed 12 months ago by cal@…
The clang compatibility problems are instances of http://clang.llvm.org/compatibility.html#dep_lookup_bases, http://clang.llvm.org/compatibility.html#dep_lookup and http://stackoverflow.com/questions/7774188/explicit-specialization-after-instantiation. I've attached a set of patches that fix the build with clang. If the maintainer approves, I will commit them.
Since the hard work has already been done, these patches should probably be sent back upstream, too.
comment:8 follow-up: ↓ 9 Changed 12 months ago by cal@…
The set of patches is not complete; I will continue later.
This doesn't yet fix the problem in rev-upgrade, which is caused by a missing library. I'll try to build vxl again to see if this library is missing completely or just not being installed.
comment:9 in reply to: ↑ 8 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
The set of patches is not complete; I will continue later.
This doesn't yet fix the problem in rev-upgrade, which is caused by a missing library. I'll try to build vxl again to see if this library is missing completely or just not being installed.
Great, thanks for all your help and efforts.
Changed 12 months ago by cal@…
comment:10 follow-up: ↓ 11 Changed 12 months ago by cal@…
patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff and specifying -Werror=gnu as arguments should fix the build with clang. Waiting for the maintainer to confirm.
comment:11 in reply to: ↑ 10 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff and specifying -Werror=gnu as arguments should fix the build with clang. Waiting for the maintainer to confirm.
I've never done this kind of patching with ports, so perhaps you can verify what I did is correct.
All of the patches you provided, I placed them in the directory
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/vxl/files
patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff patch-core__examples__vnl_calc__vnl_calc.cxx-clang-compatibility.diff patch-contrib__prip__vmap__vmap_2_map.txx.diff patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff patch-contrib__prip__vmap__vmap_ptr_sequences.h-clang-compatibility.diff patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff patch-contrib__prip__vpyr__vpyr_2_pyramid_level_elts.h-clang-compatibility.diff patch-core__vnl__vnl_matrix_fixed_ref.h-clang-compatibility.diff patch-contrib__prip__vpyr__vpyr_2_tpyramid_level_elts.h-clang-compatibility.diff patch-v3p__mpeg2__libmpeg2__idct_altivec.c patch-contrib__tbl__vipl__txx-clang-compatibility.diff patch-v3p__mpeg2__libmpeg2__motion_comp_altivec.c
In that same directory I updated Portfile according to the changes you provided in Portfile.patch
(see Portfile_after_patch)
Then, I ran the command sudo port install vxl Werror=gnu as you suggested but failed with a
404 error stating the *.diff files can't be found at /opt/local/var/macports/distfiles/vxl.
I copied the *.diff files to that location but received the same error.
(see main.log)
console output
sudo port install vxl Werror=gnu
---> Computing dependencies for vxl
---> Fetching archive for vxl
---> Attempting to fetch vxl-1.14.0_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/vxl
---> Fetching distfiles for vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://downloads.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://voxel.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://hivelocity.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://distfiles.macports.org/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://cdnetworks-us-2.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://iweb.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://kent.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://heanet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://surfnet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://freefr.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://switch.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://sunet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://dfn.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://lil.fr.distfiles.macports.org/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://fastbull.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://ignum.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://garr.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://citylan.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://ufpr.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://jaist.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://cdnetworks-kr-2.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://nchc.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://cdnetworks-kr-1.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://aarnet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://internode.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://space.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://waix.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://jog.id.distfiles.macports.org/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://ncu.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://netcologne.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://sea.us.distfiles.macports.org/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff from http://svn.macports.org/repository/macports/distfiles/vxl
Error: org.macports.fetch for port vxl returned: fetch failed
Please see the log file for port vxl for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/vxl/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port vxl failed
Changed 12 months ago by andi.dhroso@…
- Attachment main.2.log added
error after applying *.diff patched
Changed 12 months ago by andi.dhroso@…
Porfile after applying Portfile.patch
comment:12 follow-up: ↓ 14 Changed 12 months ago by cal@…
- Keywords clang added
It seems port didn't pick up the patchfiles. They have to go into $(port dir vxl)/files. I've since tested the build again and it still needed some fixes. The next patch will also fix the problem rev-upgrade complains about; for some reason libvpgl.dylib isn't being installed.
I'm attaching a patch against the $(port dir vxl), which should fix the issues mentioned in this ticket.
Changed 12 months ago by cal@…
- Attachment build-with-clang-and-fix-rev-upgrade-problem.patch added
Patch against $(port dir vxl), fixing issues when compiling with clang and a missing libvpgl.dylib
comment:14 in reply to: ↑ 12 ; follow-up: ↓ 15 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
It seems port didn't pick up the patchfiles. They have to go into $(port dir vxl)/files. I've since tested the build again and it still needed some fixes. The next patch will also fix the problem rev-upgrade complains about; for some reason libvpgl.dylib isn't being installed.
I'm attaching a patch against the $(port dir vxl), which should fix the issues mentioned in this ticket.
Do I place the build-with-clang-and-fix-rev-upgrade-problem.patch in the $(port dir vxl) directory?
comment:15 in reply to: ↑ 14 ; follow-up: ↓ 16 Changed 12 months ago by cal@…
Replying to andi.dhroso@…:
Do I place the build-with-clang-and-fix-rev-upgrade-problem.patch in the $(port dir vxl) directory?
Yes. You'll have to apply it to this directory, e.g. by running
cd $(port dir vxl) # download patch to this directory patch -p0 <build-with-clang-and-fix-rev-upgrade-problem.patch # install vxl as usual
Changed 12 months ago by cal@…
- Attachment vxl-licenses.patch added
Patch to specify licenses of vxl to enable binary distribution of vxl if possible
comment:16 in reply to: ↑ 15 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
Replying to andi.dhroso@…:
Do I place the build-with-clang-and-fix-rev-upgrade-problem.patch in the $(port dir vxl) directory?
Yes. You'll have to apply it to this directory, e.g. by running
cd $(port dir vxl) # download patch to this directory patch -p0 <build-with-clang-and-fix-rev-upgrade-problem.patch # install vxl as usual
When I ran the command you mentioned, this is what I got:
sudo patch -p0 <build-with-clang-and-fix-rev-upgrade-problem.patch patching file files/patch-contrib__prip__vpyr__vpyr_2_pyramid_level_elts.h-clang-compatibility.diff patching file files/patch-contrib__prip__vmap__vmap_2_map.txx.diff patching file files/patch-core__vnl__vnl_matrix_fixed_ref.h-clang-compatibility.diff patching file files/patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff patching file files/patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff patching file files/patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff patching file files/patch-contrib__prip__vmap__vmap_ptr_sequences.h-clang-compatibility.diff patching file files/patch-contrib__prip__vpyr__vpyr_2_tpyramid_level_elts.h-clang-compatibility.diff patching file files/patch-core__examples__vnl_calc__vnl_calc.cxx-clang-compatibility.diff patching file files/patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff patching file files/patch-contrib__tbl__vipl__txx-clang-compatibility.diff patching file Portfile Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file Portfile.rej
Looking at the error messages from main.log, looks like it's skipping the patches for some reason. (see main.log).
I've also included Portfile.rej and Portfile.orig
comment:17 follow-up: ↓ 18 Changed 12 months ago by cal@…
It's skipping the patch or parts of it, because you previously applied parts of it. Please revert to the state in the repository (running selfupdate might help with this) and try again.
comment:18 in reply to: ↑ 17 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
It's skipping the patch or parts of it, because you previously applied parts of it. Please revert to the state in the repository (running selfupdate might help with this) and try again.
So I applied all of the patches (*.diff, license patch and the build patch) on my other machine because I had to leave.
All of the patches executed with no errors, but still failed during the installation with the same message as before (404)
Console output applying patches
'sudo patch -p0 <build-with-clang-and-fix-rev-upgrade-problem.patch'
sudo patch -p0 <build-with-clang-and-fix-rev-upgrade-problem.patch patching file files/patch-contrib__prip__vpyr__vpyr_2_pyramid_level_elts.h-clang-compatibility.diff patching file files/patch-contrib__prip__vmap__vmap_2_map.txx.diff patching file files/patch-core__vnl__vnl_matrix_fixed_ref.h-clang-compatibility.diff patching file files/patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff patching file files/patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff patching file files/patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff patching file files/patch-contrib__prip__vmap__vmap_ptr_sequences.h-clang-compatibility.diff patching file files/patch-contrib__prip__vpyr__vpyr_2_tpyramid_level_elts.h-clang-compatibility.diff patching file files/patch-core__examples__vnl_calc__vnl_calc.cxx-clang-compatibility.diff patching file files/patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff patching file files/patch-contrib__tbl__vipl__txx-clang-compatibility.diff patching file Portfile Hunk #1 succeeded at 1 with fuzz 1.
Console output applying license patch
sudo patch -p0 <vxl-licenses.patch
patching file Portfile Hunk #1 succeeded at 25 (offset 1 line).
See log file for installation errors
verification: build patch and license patch are both in the $(port dir vxl) directory where the *.diff are in the $(port dir vxl)/files directory
Changed 12 months ago by andi.dhroso@…
- Attachment main.4.log added
Error log during vxl installation after patches were applied
comment:19 follow-up: ↓ 20 Changed 12 months ago by cal@…
- Status changed from new to closed
- Resolution set to fixed
Maintainer timeout, commited in r94448. Please run selfupdate, port clean vxl and try again.
comment:20 in reply to: ↑ 19 Changed 12 months ago by andi.dhroso@…
- Status changed from closed to reopened
- Resolution fixed deleted
Replying to cal@…:
Maintainer timeout, commited in r94448. Please run selfupdate, port clean vxl and try again.
The problem actually never got fixed: After I applied the patches I ran the install commands as:
sudo port install vxl, which gave the following output:
sudo port install vxl
---> Computing dependencies for vxl
---> Fetching archive for vxl
---> Attempting to fetch vxl-1.14.0_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/vxl
---> Fetching distfiles for vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://downloads.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://voxel.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://cdnetworks-us-2.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://hivelocity.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://iweb.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://distfiles.macports.org/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://lil.fr.distfiles.macports.org/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://freefr.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://fastbull.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://dfn.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://switch.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://surfnet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://ignum.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://kent.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://sunet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://garr.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://heanet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://cdnetworks-kr-1.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://cdnetworks-kr-2.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://aarnet.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://ufpr.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://nchc.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://jaist.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://space.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://internode.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://waix.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://citylan.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://jog.id.distfiles.macports.org/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://ncu.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://netcologne.dl.sourceforge.net/project/vxl/vxl/1.14
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://sea.us.distfiles.macports.org/macports/mpdistfiles/vxl
---> Attempting to fetch patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff from http://svn.macports.org/repository/macports/distfiles/vxl
Error: org.macports.fetch for port vxl returned: fetch failed
Please see the log file for port vxl for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_vxl/vxl/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port vxl failed
See log file for error:
comment:21 follow-up: ↓ 22 Changed 12 months ago by cal@…
- Status changed from reopened to closed
- Resolution set to fixed
This is a problem on your end. MacPorts doesn't find the patchfiles in $(port dir vxl)/files and tries to download them instead, so I suspect the files are not in the correct place. Please run selfupdate (which will fix this), run port clean vxl and try again.
comment:22 in reply to: ↑ 21 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
This is a problem on your end. MacPorts doesn't find the patchfiles in $(port dir vxl)/files and tries to download them instead, so I suspect the files are not in the correct place. Please run selfupdate (which will fix this), run port clean vxl and try again.
Is this the correct location:
Results after doing an ls command on the directory: $(port dir vxl)/files
mu-020105:~ andi $ echo $(port dir vxl)/files /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/vxl/files mu-020105:~ andi $ ls -l $(port dir vxl)/files total 184 -rw-r--r--@ 1 root wheel 15544 Jun 19 15:06 patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff -rw-r--r--@ 1 root wheel 2006 Jun 19 15:06 patch-contrib__prip__vmap__vmap_2_map.txx.diff -rw-r--r--@ 1 root wheel 812 Jun 19 15:06 patch-contrib__prip__vmap__vmap_ptr_sequences.h-clang-compatibility.diff -rw-r--r--@ 1 root wheel 1664 Jun 19 15:06 patch-contrib__prip__vpyr__vpyr_2_pyramid_level_elts.h-clang-compatibility.diff -rw-r--r--@ 1 root wheel 692 Jun 19 15:06 patch-contrib__prip__vpyr__vpyr_2_tpyramid_level_elts.h-clang-compatibility.diff -rw-r--r--@ 1 root wheel 2766 Jun 19 15:06 patch-contrib__rpl__rgrl__rgrl_est_proj_rad_func.txx-clang-compatibility.diff -rw-r--r--@ 1 root wheel 29966 Jun 19 15:06 patch-contrib__tbl__vipl__txx-clang-compatibility.diff -rw-r--r--@ 1 root wheel 720 Jun 19 15:06 patch-core__examples__vnl_calc__vnl_calc.cxx-clang-compatibility.diff -rw-r--r--@ 1 root wheel 1746 Jun 19 15:06 patch-core__vil__tests__test_image_resource.cxx-clang-compatibility.diff -rw-r--r--@ 1 root wheel 1572 Jun 19 15:06 patch-core__vil__tests__test_image_view.cxx-clang-compatibility.diff -rw-r--r--@ 1 root wheel 906 Jun 19 15:06 patch-core__vnl__vnl_matrix_fixed_ref.h-clang-compatibility.diff -rw-r--r-- 1 root admin 309 Apr 28 2010 patch-v3p__mpeg2__libmpeg2__idct_altivec.c -rw-r--r-- 1 root admin 323 Apr 28 2010 patch-v3p__mpeg2__libmpeg2__motion_comp_altivec.c
Results of ls on $(port dir vxl)
mu-020105:~ andi $ ls -l $(port dir vxl) total 104 -rw-r--r-- 1 root wheel 3900 Jun 19 15:06 Portfile -rw-r--r-- 1 root wheel 3256 Jun 19 15:06 Portfile.orig -rw-r--r--@ 1 root admin 1905 Jun 19 15:03 Portfile.patch -rw-r--r--@ 1 root admin 36796 Jun 19 15:03 build-with-clang-and-fix-rev-upgrade-problem.patch drwxr-xr-x 15 root admin 510 Jun 19 15:06 files -rw-r--r--@ 1 root admin 1036 Jun 19 15:03 vxl-licenses.patch
comment:23 follow-up: ↓ 24 Changed 12 months ago by cal@…
Actually, the problem was on my end, sorry. I forgot to include patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff in the patchfile. It was, however, contained in r94448, so selfupdate should get you back to a working vxl port.
comment:24 in reply to: ↑ 23 Changed 12 months ago by andi.dhroso@…
Replying to cal@…:
Actually, the problem was on my end, sorry. I forgot to include patch-contrib__tbl__vipl__filter__vipl_filter_2d.txx-clang-compatibility.diff in the patchfile. It was, however, contained in r94448, so selfupdate should get you back to a working vxl port.
Ahh that makes sense, no worries. I did the selfupdate and it started building which the previous time failed. The build and installation was successful with no errors.
Thanks again for all of your help.


main.log