Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problems installing on Heroku
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jnicklas  
View profile  
 More options Jan 17 2011, 3:54 am
From: jnicklas <jonas.nick...@gmail.com>
Date: Mon, 17 Jan 2011 00:54:17 -0800 (PST)
Local: Mon, Jan 17 2011 3:54 am
Subject: Problems installing on Heroku
Hi all,

first of all, thanks for a great library!

I'm having problems installing therubyracer on Heroku. It installs
fine locally. I tried on both the 1.8.7 and the 1.9.2 stacks with the
same result. I am using the 0.8.0 gem. This is the error message I am
getting: http://pastie.org/1469181

Has anyone else had this problem on Heroku, is there a known
workaround?

Thank you!

/Jonas Nicklas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Lowell  
View profile  
 More options Jan 17 2011, 11:25 am
From: Charles Lowell <cowb...@thefrontside.net>
Date: Mon, 17 Jan 2011 10:25:16 -0600
Local: Mon, Jan 17 2011 11:25 am
Subject: Re: Problems installing on Heroku

Jonas,

Thanks for the shout out. I think this is the first time this has come up, but looking at the logs, it looks like a problem is with the V8 build itself.

A little background: V8 is actually bundled with the gem, and it compiles as part of the install. In fact, we actually bundle the SConstruct build tool with the gem as well, but that's another story.

It looks like SConstruct( the v8 build tool) installs correctly, but the first line of the V8 build fails:

scons: Building targets ...
       gcc -o obj/release/dtoa-config.o -c -Werror -Wno-uninitialized -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -fPIC -ansi -DV8_TARGET_ARCH_X64 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/dtoa-config.c
       fatal: unrecognized command 'gcc -o "obj/release/dtoa-config.o" -c -Werror -Wno-uninitialized -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -fPIC -ansi -DV8_TARGET_ARCH_X64 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEB
Is gcc available on heroku? Is it maybe called something else than gcc? `cc` maybe? Also, which version of python is on heroku?

cheers,
Charles

On Jan 17, 2011, at 2:54 AM, jnicklas wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alex.ru...@gmail.com  
View profile  
 More options Jan 20 2011, 3:14 pm
From: alex.ru...@gmail.com
Date: Thu, 20 Jan 2011 12:14:24 -0800 (PST)
Local: Thurs, Jan 20 2011 3:14 pm
Subject: Re: Problems installing on Heroku

I have exactly the same problem.

Looks like Heroku has python and gcc installed. Here is the list of packages
on Heroku http://bamboo-mri192-versions.heroku.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Lowell  
View profile  
 More options Jan 23 2011, 11:27 pm
From: Charles Lowell <cowb...@thefrontside.net>
Date: Sun, 23 Jan 2011 22:27:04 -0600
Local: Sun, Jan 23 2011 11:27 pm
Subject: Re: Problems installing on Heroku

Hmm... I've never seen this bug before, but if the output can be trusted,  it looks like the command is getting truncated.

'gcc -o "obj/release/dtoa-config.o" -c -Werror -Wno-uninitialized -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -fPIC -ansi -DV8_TARGET_ARCH_X64 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEB
I'm not sure what to attribute this to, but the problem is with the V8 build itself. You might try upgrading to python 2.6, although I'd want to debug the SConstruct script by hand to make sure.

You can run just the V8 build with

cd ext/v8/upstream
make

This will install SCons and try to build v8. Once SCons installs you can run it manually to try and find out why it is emitting invalid gcc commands. As a first step though, I'd use a new version of python.

cheers,
Charles

On Jan 20, 2011, at 2:14 PM, alex.ru...@gmail.com wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonas Nicklas  
View profile  
 More options Jan 24 2011, 2:52 am
From: Jonas Nicklas <jonas.nick...@gmail.com>
Date: Mon, 24 Jan 2011 08:52:32 +0100
Local: Mon, Jan 24 2011 2:52 am
Subject: Re: Problems installing on Heroku
Kind of tricky since this is on Heroku ;) I guess we'll have to file
an issue with Heroku and see if they have any ideas.

/Jonas

On Mon, Jan 24, 2011 at 5:27 AM, Charles Lowell


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prathan Thananart  
View profile  
 More options Jan 31 2011, 4:44 am
From: Prathan Thananart <semico...@gmail.com>
Date: Mon, 31 Jan 2011 01:44:41 -0800 (PST)
Local: Mon, Jan 31 2011 4:44 am
Subject: Re: Problems installing on Heroku
Having this problem. Build fails at this line:

gcc -o obj/release/dtoa-config.o -c -Werror -Wno-uninitialized -m64 -
O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -fPIC -
ansi -DV8_TARGET_ARCH_X64 -DENABLE_VMSTATE_TRACKING -
DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/dtoa-
config.c
       fatal: unrecognized command 'gcc -o "obj/release/dtoa-config.o"
-c -Werror -Wno-uninitialized -m64 -O3 -fomit-frame-pointer -fdata-
sections -ffunction-sections -fPIC -ansi -DV8_TARGET_ARCH_X64 -
DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEB

which is weird given the bamboo stack has gcc 4.2/4.3 installed.

>> `which gcc`

=> "/usr/bin/gcc\n"

Has anyone come up with a solution?

-Prathan

On Jan 24, 2:52 pm, Jonas Nicklas <jonas.nick...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prathan Thananart  
View profile  
 More options Jan 31 2011, 5:00 am
From: Prathan Thananart <semico...@gmail.com>
Date: Mon, 31 Jan 2011 02:00:24 -0800 (PST)
Local: Mon, Jan 31 2011 5:00 am
Subject: Re: Problems installing on Heroku
Switching to this gem solves the problem for me:

https://github.com/aler/therubyracer-heroku

-Prathan

On Jan 24, 2:52 pm, Jonas Nicklas <jonas.nick...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Lowell  
View profile  
 More options Jan 31 2011, 10:11 am
From: Charles Lowell <cowb...@thefrontside.net>
Date: Mon, 31 Jan 2011 09:11:08 -0600
Local: Mon, Jan 31 2011 10:11 am
Subject: Re: Problems installing on Heroku
Prathan,

As you found Alex has been kind enough to provide a gem that works on heroku. The problem is that the V8 build (which is in python) appears to actually be truncating the gcc invocation. This might be a problem with the installed version of python, but unless I can get a hands on session, it's difficult to say.

I'm going to follow up with Heroku and see If they would let me debug this on one of their servers.

cheers,
Charles

On Jan 31, 2011, at 3:44 AM, Prathan Thananart wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »