Opened 15 years ago
Closed 15 years ago
#24712 closed defect (fixed)
rvm build failure
Reported by: | roberto.tomas.cuentas@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ||
Port: | rvm |
Description
I think ruby1.9 upgraded gcc (trying to remember, there's a list of possibles). Since then, I get errors on install. Here's one:
robbie@El-Mac ~ [10:54] sudo port install -d rvm Password: ---> Computing dependencies for rvm ---> Building rvm Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_rvm/work/rvm-0.90.1-beta" && /usr/bin/make -j1 all " returned error 2 Command output: /usr/bin/make all-am source='rconfig.cc' object='rconfig.o' libtool=no \ depfile='.deps/rconfig.Po' tmpdepfile='.deps/rconfig.TPo' \ depmode=gcc3 /bin/sh ./depcomp \ /usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -g -Wall -c -o rconfig.o `test -f rconfig.cc || echo './'`rconfig.cc rconfig.h:262: error: using typedef-name 'configuration_manager::cfgfiles_type' after 'class' rconfig.h:222: error: 'configuration_manager::cfgfiles_type' has a previous declaration here rconfig.cc: In member function 'void configuration_manager::clear()': rconfig.cc:926: error: request for member 'clear' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int' rconfig.cc: In member function 'void configuration_manager::init(int, char**)': rconfig.cc:1026: error: request for member 'push_back' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int' rconfig.cc:1064: error: request for member 'push_back' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int' rconfig.cc:1091: error: request for member 'begin' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int' rconfig.cc:1091: error: request for member 'end' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int' make[1]: *** [rconfig.o] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Also, probably should be forked into a seperate ticket but, ncurseswis dying during build because it creates terminfo files like /opt/local/lib/terminfo/a/a210 without reporting as owner of these files, so on upgrade/etc, it fails.
As a third issue, whenever I install almost anything recently .. ruby, ruby1.9, rvm, coreutils, sqlite3, etc .. I am always first automatically reinstalling ncursesw in the build tree. Shouldn't it just accept that the thing is installed laready and be done with it? why does this software need to be rebuilt for every other install ?
Change History (6)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Port: | rvm added |
---|---|
Priority: | High → Normal |
Summary: | supected gcc errors after some install upgraded gcc → rvm build failure |
comment:2 Changed 15 years ago by roberto.tomas.cuentas@…
I guess that doesnt have to be a gcc issue it's just that all sorts of builds are failing now whereas before that upgrade everything was building.
something in the list of dependencies was gcc-* .. if it wasnt gcc directly than some other component with the same prefix was upgraded. I'd have to see if I have logs of that somewhere to verify, I suppose.. don't know which logs that would be.
comment:3 follow-up: 4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Status: | new → assigned |
Replying to roberto.tomas.cuentas@…:
robbie@El-Mac ~ [10:54] sudo port install -d rvm
The "-d" flag must go immediately after the word "port", before the word "install", otherwise it has no effect.
/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I. -I. -I/opt/local/include -g -Wall -c -o rconfig.o
test -f rconfig.cc || echo './'
rconfig.cc
rconfig.h:262: error: using typedef-name 'configuration_manager::cfgfiles_type' after 'class'
rconfig.h:222: error: 'configuration_manager::cfgfiles_type' has a previous declaration here
rconfig.cc: In member function 'void configuration_manager::clear()':
rconfig.cc:926: error: request for member 'clear' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int'
rconfig.cc: In member function 'void configuration_manager::init(int, char)':
rconfig.cc:1026: error: request for member 'push_back' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int'
rconfig.cc:1064: error: request for member 'push_back' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int'
rconfig.cc:1091: error: request for member 'begin' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int'
rconfig.cc:1091: error: request for member 'end' in '((configuration_manager*)this)->configuration_manager::m_cfgfiles', which is of non-class type 'int'
I am able to reproduce this issue on Tiger. Are you on Tiger or Leopard?
I also see rvm 1.05 is available. I will try to update the port.
Please file separate tickets for the other issues you mentioned and provide more information.
comment:4 follow-up: 5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
I am able to reproduce this issue on Tiger. Are you on Tiger or Leopard?
I see the same error on Leopard, and a different error on Snow Leopard.
I also see rvm 1.05 is available. I will try to update the port.
1.05 has a whole new set of problems that won't let it build on Tiger, Leopard or Snow Leopard. I am trying to resolve them.
But this means that at this time rvm cannot be installed at all right now.
comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
1.05 has a whole new set of problems that won't let it build on Tiger, Leopard or Snow Leopard. I am trying to resolve them.
My patchfile is 1500 lines long so far and I still can't get it to compile; I don't know enough C / C++. I've written to the developers of rvm for help.
comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
The developer provided a patch that works and I committed a version of it along with some more changes in r67318. I checked that it builds and passes the test suite on Snow Leopard x86_64 and Tiger i386.
I doubt ruby or any other port modified /usr/bin/g++-4.0.