Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#60281 closed defect (invalid)

Error: Failed to configure clang-3.7: llvm-3.7 must be installed without +assertions.

Reported by: dbl001 (dbl) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: llvm-3.7 clang-3.7

Description

OS X 10.11.6

$ sudo port upgrade outdated
--->  Computing dependencies for poppler
--->  Fetching archive for poppler
--->  Attempting to fetch poppler-0.87.0_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/poppler
--->  Attempting to fetch poppler-0.87.0_0.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/poppler
--->  Attempting to fetch poppler-0.87.0_0.darwin_15.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/poppler
--->  Configuring poppler
--->  Building poppler
--->  Staging poppler into destroot
--->  Installing poppler @0.87.0_0
--->  Cleaning poppler
--->  Computing dependencies for poppler
--->  Activating poppler @0.87.0_0
--->  Cleaning poppler
--->  Computing dependencies for clang-3.7
--->  Fetching archive for clang-3.7
--->  Attempting to fetch clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 from https://packages.macports.org/clang-3.7
--->  Attempting to fetch clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/clang-3.7
--->  Attempting to fetch clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/clang-3.7
--->  Fetching distfiles for clang-3.7
--->  Attempting to fetch llvm-3.7.1.src.tar.xz from https://releases.llvm.org/3.7.1
--->  Attempting to fetch cfe-3.7.1.src.tar.xz from https://releases.llvm.org/3.7.1
--->  Attempting to fetch compiler-rt-3.7.1.src.tar.xz from https://releases.llvm.org/3.7.1
--->  Attempting to fetch libcxx-3.7.1.src.tar.xz from https://releases.llvm.org/3.7.1
--->  Attempting to fetch clang-tools-extra-3.7.1.src.tar.xz from https://releases.llvm.org/3.7.1
--->  Verifying checksums for clang-3.7
--->  Extracting clang-3.7
--->  Applying patches to clang-3.7
Warning: reinplace s|/usr/bin/env python|/opt/local/bin/python2.7|g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/llvm-3.7.1.src/tools/clang/tools/scan-build/set-xcode-analyzer
--->  Configuring clang-3.7
Error: Failed to configure clang-3.7: llvm-3.7 must be installed without +assertions.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log for details.
Error: Problem while installing clang-3.7
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
(base) MacBook-Pro:~ davidlaxer$ 

Attachments (1)

main.log (67.1 KB) - added by dbl001 (dbl) 5 years ago.

Download all attachments as: .zip

Change History (12)

Changed 5 years ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 5 years ago by kencu (Ken)

It's unfortunate that macports lists these informational messages as bugs that need reporting, but it does...

The +assertions variants between clang and llvm have to match. You must somehow have it mismatching. You could probably fix this by uninstalling llvm-3.7 and then reinstalling it sudo port -v install llvm-3.7, which should give you the default llvm-3.7 that does not have assertions enabled.

Alternatively, you could install clang-3.7 +assertions to match your llvm-3.7, if you really want assertions (you most likely don't want them, they slow everything down are are pretty useless now so many years after llvm-3.7 has been released).

comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: popplar clang-3.7 removed
Port: llvm-3.7 clang-3.7 added; poppler removed
Resolution: invalid
Status: newclosed

comment:3 Changed 5 years ago by dbl001 (dbl)

Should I open another ticket?

sudo port -v install llvm-3.7
...

llvm[3]: Copying runtime library darwin/10.4 to build dir
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a: No such file or directory
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a] Error 1
make[3]: *** Waiting for unfinished jobs....
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a: No such file or directory
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a] Error 1
rm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/macho_embedded/.dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/.dir
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt'
make[2]: *** [compiler-rt/.makeall] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang'
make: *** [all] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build" && /usr/bin/make -j2 -w clang-only 
Exit code: 2
Error: Failed to build clang-3.7: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log for details.
Error: Problem while installing clang-3.7
Error: rev-upgrade failed: Error rebuilding inkscape
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
(base) MacBook-Pro:~ davidlaxer$ 

comment:4 Changed 5 years ago by kencu (Ken)

No - this error has been coming up lately. There is another ticket that explored this #60196, and before that, another ticket #59157. I thought I had fixed this, following the advice of @ionic, but I guess not.

It has something to do with the way base changed to no longer need a full installation of Xcode, but instead can (sometimes) use the command-line tools.

comment:5 Changed 5 years ago by dbl001 (dbl)

Understood. Please let me know when I should retry installing clang-3.7

comment:6 Changed 5 years ago by dbl001 (dbl)

$ sudo port -v install llvm-3.7
...
ake[4]: Nothing to be done for `clang_macho_embedded'.
make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/llvm-3.7.1.src/projects/compiler-rt'
llvm[3]: Copying runtime library darwin/eprintf to build dir
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a
llvm[3]: Copying runtime library darwin/10.4 to build dir
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a: No such file or directory
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a] Error 1
make[3]: *** Waiting for unfinished jobs....
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a: No such file or directory
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a] Error 1
rm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/macho_embedded/.dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/.dir
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt'
make[2]: *** [compiler-rt/.makeall] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang'
make: *** [all] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build" && /usr/bin/make -j2 -w clang-only 
Exit code: 2
Error: Failed to build clang-3.7: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log for details.
Error: Problem while installing clang-3.7
Error: rev-upgrade failed: Error rebuilding inkscape
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

comment:7 Changed 5 years ago by kencu (Ken)

let's follow this in #60196. I have "fixed" it there, but looking for something elegant.

comment:8 Changed 5 years ago by dbl001 (dbl)

Ok. Can you add me as a recipient of #60196, so I can see the modifications?

comment:9 Changed 5 years ago by dbl001 (dbl)

$  sudo port -v install ld64-latest

Password:
--->  Computing dependencies for ld64-latest.
--->  Cleaning ld64-latest
--->  Removing work directory for ld64-latest
--->  Scanning binaries for linking errors
Could not open /opt/local/lib/libpoppler.97.dylib: Error opening or reading file (referenced from /opt/local/bin/inkscape)
--->  Found 3 broken files, matching files to ports      
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: inkscape @0.92.4+x11
Continue? [Y/n]: y
--->  Computing dependencies for clang-3.7.
--->  Fetching archive for clang-3.7
--->  clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 from https://packages.macports.org/clang-3.7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/clang-3.7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch clang-3.7-3.7.1_6+analyzer.darwin_15.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/clang-3.7
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Building clang-3.7
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build" && /usr/bin/make -j2 -w clang-only 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build'
for dir in lib/Support lib/TableGen utils lib/IR lib tools/llvm-shlib tools/llvm-config cmake tools/clang tools/lto; do \
	  if ([ ! -f $dir/Makefile ] || \
	      command test $dir/Makefile -ot /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/llvm-3.7.1.src/$dir/Makefile ); then \
	    /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/llvm-3.7.1.src/autoconf/mkinstalldirs $dir; \
	    /bin/cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/llvm-3.7.1.src/$dir/Makefile $dir/Makefile; \
	  fi; \
	  (/Library/Developer/CommandLineTools/usr/bin/make -C $dir all ) || exit 1; \

...

llvm[3]: Copying runtime library darwin/eprintf to build dir
llvm[3]: Copying runtime library darwin/10.4 to build dir
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a
cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/10.4/libcompiler_rt.a: No such file or directory
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.10.4.a] Error 1
make[3]: *** Waiting for unfinished jobs....
cp: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt/clang_darwin/eprintf/libcompiler_rt.a: No such file or directory
make[3]: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/libclang_rt.eprintf.a] Error 1
rm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/macho_embedded/.dir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/Release+Debug/lib/clang/3.7.1/lib/darwin/.dir
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime/compiler-rt'
make[2]: *** [compiler-rt/.makeall] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang/runtime'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build/tools/clang'
make: *** [all] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/work/build" && /usr/bin/make -j2 -w clang-only 
Exit code: 2
Error: Failed to build clang-3.7: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log for details.
Error: Problem while installing clang-3.7
Error: rev-upgrade failed: Error rebuilding inkscape
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
(base) MacBook-Pro:~ davidlaxer$ 

comment:10 Changed 5 years ago by kencu (Ken)

let's stick in #60196

comment:11 Changed 5 years ago by dbl001 (dbl)

It's working for me. :-)

Last edited 5 years ago by dbl001 (dbl) (previous) (diff)
Note: See TracTickets for help on using tickets.