Hi Reinhard,

Building AspectC++ using the Debian clang-4.0 package should work now. Please
use the current AspectC++ trunk version. Sorry for the inconveniences!

The problem was that the linker arguments that point to the system libraries
("-ldl", ...) were missing. These arguments were missing because starting with
version 4.0 the behavior of "llvm-config --system-libs" changed (see [1]) to
only return the system libs if static linking ("--link-static") is selected.
When using the binaries from the Clang download page ([2]) "--link-static"
seems to default to "true" whereas "--link-static" defaults to "false" when
using the Debian clang-4.0 package. I am not sure whether this is the desired
behavior, but changing the AspectC++ makefile to use the command
"llvm-config --system-libs --link-static" forces llvm-config to output the
system libs in hopefully all cases.

Please let me know if it still does not work.

Thank you very much and best regards,

Simon

[1] https://reviews.llvm.org/D27805
[2] http://releases.llvm.org/download.html


> tags 853319 help
> stop
>
> Hi AspectC++ Developers,
>
> gcc-7 is now used by default in debian/unstable, which makes this bug 
> critical.
> Since the verison of AspectC++ that is currently in the package (2.2, the 
> latest
> release) doesn't work with gcc-7, aspectc++ has been removed from testing!
>
> This makes it impossible for me upload backports and worse, it will not be 
> part
> of the next debian release.
>
> I've just checked out the lastest SVN from today (2017-08-21), and found that
> GCC can now indeed be built with GCC-7 and clange 3.8, but I can't use the
> resulting ac++ to weave puma.
>
> I've then tried the clang-4.0 package, but I get this error message:
>
> config/clang.mk:12: *** UNSUPPORTED Clang version '4.0.1' used -- try 'make -C
> config clang LLVMCONF=<llvm-config-path>'.  Stop.
>
> I tried to fix this by doing a "cp config/clang-4.0.0.mk 
> config/clang-4.0.1.mk",
> but this lead to this error:
>
> Linking bin/linux-release/ac++.
> /usr/bin/ld: /usr/lib/llvm-4.0/lib/libLLVMSupport.a(Signals.cpp.o): undefined
> reference to symbol 'dladdr@@GLIBC_2.2.5'
> //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from
> command line
> collect2: error: ld returned 1 exit status
>
>
> Please advise how to proceed here!
>
> Reinhard
>
>
>
>
> On 03/27/2017 08:56 PM, Reinhard Tartler wrote:
>> tags 853319 confirmed upstream
>> forwarded 853319 aspectc-develop...@aspectc.org
>> stop
>>
>> Hi AspectC++ Developers,
>>
>> Matthias Klose, the Debian and Ubuntu GCC Maintainer points out that
>> AspectC++ currentl fails to build against the current GCC trunk (which
>> will be eventually released as GCC-7). I could confirm the build failure
>> myself on my workstation, please find the full buildlog attached to this
>> email. This is done with upstream release 2.2, which I'm about to upload
>> to debian (it builds just fine with GCC 6.3).
>>
>> At this point, I wouldn't consider this issue of any urgency. However, I
>> expect that at some point in the future, Matthias will likely want to
>> upgrade the system compiler to GCC-7 which would make this issue
>> critical. Also, the new compiler finds a couple of new warnings that
>> might be worth having a look at:
>>
>> Elements.cc:485:3: warning: this ?for? clause does not guard...
>> [-Wmisleading-indentation]
>> Elements.cc:489:3: warning: this ?for? clause does not guard...
>> [-Wmisleading-indentation]
>> ClangFlowAnalysis.cc:81:6: warning: ?void
>> {anonymous}::DataflowWorklist::enqueuePredecessors(const
>> clang::CFGBlock*)? defined but not used [-Wunused-function]
>> ClangBinding.cc:10:2: warning: #warning "Invalid clang version used!
>> Only 3.4, 3.4.2, 3.6.2, 3.7.1, 3.8.0, and 3.9.1 are supported by this
>> code." [-Wcpp]
>> Transformer.cc:472:3: warning: this ?for? clause does not guard...
>> [-Wmisleading-indentation]
>> /usr/lib/llvm-3.8/include/llvm/ADT/DenseMap.h:958:18: warning:
>> ?*((void*)(& paths)+40).llvm::SmallDenseMap<clang::QualType,
>> std::pair<bool, unsigned int>, 8>::LargeRep::Buckets? may be used
>> uninitialized in this function [-Wmaybe-uninitialized]
>> /usr/lib/llvm-3.8/include/llvm/ADT/DenseMap.h:965:18: warning:
>> ?*((void*)(& paths)+40).llvm::SmallDenseMap<clang::QualType,
>> std::pair<bool, unsigned int>, 8>::LargeRep::NumBuckets? may be used
>> uninitialized in this function [-Wmaybe-uninitialized]
>>
>>
>> Thanks for your great work on aspectc++!
>>
>> Reinhard
>>
>>
>> -------- Forwarded Message --------
>> Subject: Bug#853319: aspectc++: ftbfs with GCC-7
>> Resent-Date: Tue, 31 Jan 2017 09:34:08 +0000
>> Resent-From: Matthias Klose <d...@debian.org>
>> Resent-To: Reinhard Tartler <siret...@tauware.de>
>> Date: Tue, 31 Jan 2017 09:29:48 +0000
>> From: Matthias Klose <d...@debian.org>
>> Reply-To: Matthias Klose <d...@debian.org>, 853319-mainto...@bugs.debian.org
>> To: mainto...@bugs.debian.org
>>
>> Package: src:aspectc++
>> Version: 1:2.1-2
>> Severity: normal
>> Tags: sid buster
>> User: debian-...@lists.debian.org
>> Usertags: ftbfs-gcc-7
>>
>> Please keep this issue open in the bug tracker for the package it
>> was filed for.  If a fix in another package is required, please
>> file a bug for the other package (or clone), and add a block in this
>> package. Please keep the issue open until the package can be built in
>> a follow-up test rebuild.
>>
>> The package fails to build in a test rebuild on at least amd64 with
>> gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
>> severity of this report may be raised before the buster release.
>> There is no need to fix this issue in time for the stretch release.
>>
>> The full build log can be found at:
>> http://people.debian.org/~doko/logs/gcc7-20170126/aspectc++_2.1-2_unstable_gcc7.log
>> The last lines of the build log are at the end of this report.
>>
>> To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
>> or install the gcc, g++, gfortran, ... packages from experimental.
>>
>>   apt-get -t=experimental install g++
>> Common build failures are new warnings resulting in build failures with
>> -Werror turned on, or new/dropped symbols in Debian symbols files.
>> For other C/C++ related build failures see the porting guide at
>> http://gcc.gnu.org/gcc-7/porting_to.html
>>
>> [...]
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CProject.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CProject.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemDeclSpecs.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemDeclSpecs.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCNameLookup.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCNameLookup.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/Parser.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/Parser.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCBuilder.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCBuilder.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreFileIncluder.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreFileIncluder.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/InstantiationParser.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/InstantiationParser.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CTree.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CTree.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CFunctionInfo.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CFunctionInfo.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSyntax.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSyntax.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreprocessorParser.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreprocessorParser.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemVisitor.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemVisitor.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCSyntax.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCSyntax.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreExprParser.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreExprParser.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemDatabase.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemDatabase.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemExpr.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemExpr.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemantic.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CSemantic.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreParser.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/PreParser.cc]
>> Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCSemExpr.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCSemExpr.cc]
>> Error 1
>> weave.mk:82: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/.inc' failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/.inc] Error 1
>> weave.mk:72: recipe for target
>> '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCSemantic.cc'
>> failed
>> make[3]: ***
>> [/build/aspectc++-4uXFHS/aspectc++-2.1/Puma/gen-release/step2/src/CCSemantic.cc]
>> Error 1
>> Makefile:25: recipe for target 'weave' failed
>> make[2]: *** [weave] Error 2
>> Makefile:68: recipe for target 'src' failed
>> make[1]: *** [src] Error 2
>> make[1]: Leaving directory '/build/aspectc++-4uXFHS/aspectc++-2.1/Puma'
>> debian/rules:58: recipe for target 'build-arch-stamp' failed
>> make: *** [build-arch-stamp] Error 2
>> dpkg-buildpackage: error: debian/rules build gave error exit status 2
>>
>>
>>
>> _______________________________________________
>> aspectc-developers mailing list
>> aspectc-develop...@aspectc.org
>> http://aspectc.org/listinfo/aspectc-developers
>>
>
> _______________________________________________
> aspectc-developers mailing list
> aspectc-develop...@aspectc.org
> http://aspectc.org/listinfo/aspectc-developers
>

Reply via email to