Opened 11 years ago

Closed 11 years ago

#5932 closed Bugs (duplicate)

Intel C++ V12.1.0.233 in Linux compilation errors

Reported by: boost@… Owned by: John Maddock
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.47.0 Severity: Problem
Keywords: icpc Cc:

Description

Intel(R) C++ Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 12.1.0.233 Build 20110811 Copyright (C) 1985-2011 Intel Corporation. All rights reserved. FOR NON-COMMERCIAL USE ONLY

intel-linux.compile.c++ /home/pal/work/cpp/tmp/boost/bin.v2/libs/regex/build/intel-linux-linux/release/address-model-64/link-static/threading-multi/c_regex_traits.o

./boost/config/compiler/intel.hpp(98): remark #193: zero used for undefined preprocessing identifier "_WCHAR_T_DEFINED"

# if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)

./boost/throw_exception.hpp(76): remark #1418: external function definition with no prior declaration

throw_exception_( E const & x, char const * current_function, char const * file, int line )

./boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75): remark #593: variable "tmp" was set but never used

int rv, tmp;

./boost/smart_ptr/detail/shared_count.hpp(321): error: copy constructor for class "boost::detail::shared_count" may not have a parameter of type "boost::detail::shared_count"

shared_count(shared_count && r): pi_(r.pi_) nothrow

./boost/smart_ptr/detail/shared_count.hpp(321): error: expected a ")"

shared_count(shared_count && r): pi_(r.pi_) nothrow

./boost/smart_ptr/detail/shared_count.hpp(321): error: identifier "r" is undefined

shared_count(shared_count && r): pi_(r.pi_) nothrow

./boost/smart_ptr/detail/shared_count.hpp(428): error: copy constructor for class "boost::detail::weak_count" may not have a parameter of type "boost::detail::weak_count"

weak_count(weak_count && r): pi_(r.pi_) nothrow

./boost/smart_ptr/detail/shared_count.hpp(428): error: expected a ")"

weak_count(weak_count && r): pi_(r.pi_) nothrow

./boost/smart_ptr/detail/shared_count.hpp(428): error: identifier "r" is undefined

weak_count(weak_count && r): pi_(r.pi_) nothrow

...

compilation aborted for libs/regex/build/../src/cregex.cpp (code 2)

Attachments (1)

boost.out (72.5 KB ) - added by boost@… 11 years ago.
error messages produced by icpc on linux

Download all attachments as: .zip

Change History (9)

by boost@…, 11 years ago

Attachment: boost.out added

error messages produced by icpc on linux

comment:1 by Vladislav <phprus@…>, 11 years ago

A similar discussion on the Intel Software Network forum: http://software.intel.com/en-us/forums/showthread.php?t=85958

comment:2 by Peter Loibl <boost@…>, 11 years ago

Component: Nonesmart_ptr
Owner: set to Peter Dimov

comment:3 by tetsu.h@…, 11 years ago

I have hitting same problem with Intel compiler 12.1.0 on MacOSX and Boost 1.47.0.

this ticket is related with #5941, #5878. #5878 suggest workaround modify and it solved this problem.

r74573 doesn't fix this issue.

This problem can be caused by incorrect value of __INTEL_COMPILER define. Intel compiler 12.1.0 set __INTEL_COMPILER to 9999.

Previous Intel compiler 12.0.X set __INTEL_COMPILER to 1200, and boost/config/compiler/intel.hpp check it version and set variables.

comment:4 by Vladislav <phprus@…>, 11 years ago

#5941 is not workaround. This is a new compiler behavior.

comment:5 by tetsu.h@…, 11 years ago

Let me correct my mistake.

r74573 fixes this #5932 problem on Intel compiler 12.1.0 on MacOSX with Boost 1.47.0.

and, as phprus says, #5941 is not workaround.

comment:6 by Peter Dimov, 11 years ago

Owner: changed from Peter Dimov to John Maddock

in reply to:  5 comment:7 by Peter Loibl <boost@…>, 11 years ago

Ticket #5937 has an attachment that shows the arguments Intel C++ is giving by default: https://svn.boost.org/trac/boost/attachment/ticket/5937/compilers

comment:8 by John Maddock, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicates ticket #5878. Verified fixed in Trunk.

Note: See TracTickets for help on using tickets.