Opened 15 years ago

Closed 15 years ago

#21523 closed defect (fixed)

lilypond fails to build in leopard on PPC

Reported by: wayn3w@… Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: lilypond

Description (last modified by tobypeterson)

lilypond 2.12.2 failed to build for me on 10.5.8 (PPC) with gcc version 4.0.1. After the error messages below, I included a patch I found from the fink that helped.

bash-3.2# port install lilypond
--->  Computing dependencies for lilypond
--->  Building lilypond
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_lilypond/work/lilypond-2.12.2" && /usr/bin/make -j1 all " returned error 2
Command output: /usr/include/c++/4.0.0/bits/stl_vector.h:976: error: expected primary-expression before '__attribute__'
/usr/include/c++/4.0.0/bits/stl_vector.h:976: error: expected primary-expression before '>' token
/usr/include/c++/4.0.0/bits/stl_vector.h:976: error: '__y' was not declared in this scope
/usr/include/c++/4.0.0/bits/stl_bvector.h:425: error: expected identifier before '<' token
/usr/include/c++/4.0.0/bits/stl_bvector.h:425: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:68: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:91: error: expected nested-name-specifier before '__attribute__'
/usr/include/c++/4.0.0/bits/vector.tcc:91: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:108: error: expected nested-name-specifier before '__attribute__'
/usr/include/c++/4.0.0/bits/vector.tcc:108: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:120: error: expected nested-name-specifier before '__attribute__'
/usr/include/c++/4.0.0/bits/vector.tcc:120: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:131: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:170: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:193: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:209: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:248: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:310: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:393: error: expected unqualified-id before '<' token
/usr/include/c++/4.0.0/bits/vector.tcc:407: error: expected unqualified-id before '<' token
./include/std-vector.hh:74: error: expected class-name before '__attribute__'
./include/std-vector.hh:74: error: expected `{' before '__attribute__'
./include/std-vector.hh:74: error: expected unqualified-id before '<' token
file-name.cc: In member function 'File_name File_name::canonicalized() const':
file-name.cc:190: error: variable 'std::vector<std::string, std::allocator<std::string> > components' has initializer but incomplete type
file-name.cc:190: error: invalid use of undefined type 'class std::vector<std::string, std::allocator<std::string> >'
./include/std-vector.hh:74: error: declaration of 'class std::vector<std::string, std::allocator<std::string> >'
file-name.cc:191: error: aggregate 'std::vector<std::string, std::allocator<std::string> > new_components' has incomplete type and cannot be defined
make[1]: *** [out/file-name.o] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

The patch:

perl -pi -e 's|__vector|lily_vector|g' flower/include/std-vector.hh

Change History (5)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:2 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to snc@…

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

Status: newassigned

comment:5 Changed 15 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

Committed in r58255.

Note: See TracTickets for help on using tickets.