Opened 14 years ago

Last modified 13 years ago

#28230 new defect

scite fails to build when tidy is installed and active

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: scite

Description

scite fails to build when the tidy port is installed and active:

../src/SplitVector.h: In member function 'void SplitVector<T>::SetValueAt(int, T)':
../src/SplitVector.h:122: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h:122: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../src/SplitVector.h:129: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h: In member function 'T& SplitVector<T>::operator[](int) const':
../src/SplitVector.h:139: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h: In member function 'void SplitVector<T>::Insert(int, T)':
../src/SplitVector.h:155: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h: In member function 'void SplitVector<T>::InsertValue(int, int, T)':
../src/SplitVector.h:170: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h: In member function 'void SplitVector<T>::InsertFromArray(int, const T*, int, int)':
../src/SplitVector.h:195: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h: In member function 'void SplitVector<T>::Delete(int)':
../src/SplitVector.h:211: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
../src/SplitVector.h: In member function 'void SplitVector<T>::DeleteRange(int, int)':
../src/SplitVector.h:221: error: there are no arguments to 'PLATFORM_ASSERT' that depend on a template parameter, so a declaration of 'PLATFORM_ASSERT' must be available
In file included from ../src/Decoration.cxx:16:
../src/Partitioning.h: In member function 'int Partitioning::PositionFromPartition(int) const':
../src/Partitioning.h:145: error: 'PLATFORM_ASSERT' was not declared in this scope
../src/SplitVector.h: In member function 'void SplitVector<T>::Insert(int, T) [with T = int]':
../src/Partitioning.h:78:   instantiated from here
../src/SplitVector.h:155: error: 'PLATFORM_ASSERT' was not declared in this scope
../src/SplitVector.h: In member function 'void SplitVector<T>::SetValueAt(int, T) [with T = int]':
../src/Partitioning.h:109:   instantiated from here
../src/SplitVector.h:122: error: 'PLATFORM_ASSERT' was not declared in this scope
../src/SplitVector.h:129: error: 'PLATFORM_ASSERT' was not declared in this scope
../src/SplitVector.h: In member function 'void SplitVector<T>::Delete(int) [with T = int]':
../src/Partitioning.h:141:   instantiated from here
../src/SplitVector.h:211: error: 'PLATFORM_ASSERT' was not declared in this scope
../src/SplitVector.h: In member function 'void SplitVector<T>::DeleteRange(int, int) [with T = int]':
../src/SplitVector.h:215:   instantiated from 'void SplitVector<T>::Delete(int) [with T = int]'
../src/Partitioning.h:141:   instantiated from here
../src/SplitVector.h:221: error: 'PLATFORM_ASSERT' was not declared in this scope
make: *** [Decoration.o] Error 1

Deactivating tidy allows scite to build.

This is very similar to #26958 reported against qscintilla.

Change History (1)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

  • r80157: Detect presence of tidy and bail. The better solution from #26958 might yet be employed.
Note: See TracTickets for help on using tickets.