Author Topic: Fedora version 14 - compile error  (Read 4476 times)

KKent

  • Community Member
  • Posts: 6
  • Hero Points: 0
Fedora version 14 - compile error
« on: August 27, 2013, 07:41:36 pm »
I am working under Fedora version 14.

I used the sample cpp project provide by SlickEdit named ucpp.

I get this error when I try to compile:

ccache: FATAL: waitpid failed


Any reason ? ... (Using a trial release version 18)

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1139
  • Hero Points: 107
Re: Fedora version 14 - compile error
« Reply #1 on: August 27, 2013, 08:08:08 pm »
Looks like you're using the ccache compile caching wrapper?  It's not something we reference in our sample projects, but it looks like the standard way of installing it is to have g++ and friends symbolically link to the ccache executable.   So we're shelling it out some g++ commands, and ccache is tossing out that error message.

First thing I'd try is running the g++ command from a shell directly, to see if you get the same error.  Here's what g++ commands it runs on my machine to build the ucpp sample project (with absolute paths converted to relative):

Code: [Select]
g++ -c  -g -o "Debug/cpp.o"  "cpp.cpp"
g++  -g -o "Debug/ucpp" Debug/cpp.o 

If it runs ok in the command line, we may have something in our environment that's interfering with ccache.

KKent

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Fedora version 14 - compile error
« Reply #2 on: August 27, 2013, 09:33:22 pm »
indeed, the first line compiled without any error ... so what next then ?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1139
  • Hero Points: 107
Re: Fedora version 14 - compile error
« Reply #3 on: August 27, 2013, 09:54:14 pm »
Hmm, I'll try to reproduce it here.   If I can't, I may have you generate a large log file with strace to see if that will give me any hints.


patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1139
  • Hero Points: 107
Re: Fedora version 14 - compile error
« Reply #4 on: August 28, 2013, 01:26:25 pm »
Reproduced it on Fedora 19.  But not on a debian distribution, oddly.  So I'm looking at it.

KKent

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Fedora version 14 - compile error
« Reply #5 on: August 28, 2013, 08:16:02 pm »
ok. good... I'll check the forum for your response periodically

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1139
  • Hero Points: 107
Re: Fedora version 14 - compile error
« Reply #6 on: August 28, 2013, 08:38:29 pm »
Ends up another developer was already looking at this, it does look like a bug. 

In the meantime, try this as a workaround: bring up the slickedit command prompt, and type
Code: [Select]
set-var def_build_shell Then restart the editor, and then try building again.   

To set the build shell back to the default:
Code: [Select]
set-var def_build_shell %VSLICKBIN1%secsh -i

KKent

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Fedora version 14 - compile error
« Reply #7 on: August 29, 2013, 02:55:15 pm »
Thx for the follow-up... having said that, I not sure if I am reading your work around correctly.

I am new to Linux. I cannot find any command in Linux that refers to set-var. Also, I am not sure about the steps here. In order:

1- I start SlickEdit using: /opt/slickedit/bin/vs from Terminal
2- From the Tools menu, I select OS Shell... and type "set-var def_build_shell" (which gives me an error)
3- Exit the editor and start it again ?!???
« Last Edit: August 29, 2013, 03:07:33 pm by KKent »

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1139
  • Hero Points: 107
Re: Fedora version 14 - compile error
« Reply #8 on: August 29, 2013, 03:11:02 pm »
Actually, the command line I'm talking about is inside the editor itself.  The keypress you use to bring it up varies between the different editor emulations, it's Escape in CUA;  but if you click down on the left side of the grey status bar at the bottom of your editor window, the command prompt textbox will appear, and you can type the commands in there. 

Sorry about that, I'm so used to using that myself, I forget that it might not be obvious for new users, or certain types of workflows.

KKent

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Fedora version 14 - compile error
« Reply #9 on: August 29, 2013, 09:23:55 pm »
It just hangs and outputs this:

/opt/slickedit/bin/vsbuild -signal 36994 -command g++ -c  -g -o "/root/.slickedit/18.0.1/SampleProjects/ucpp/Debug/cpp"  "/root/.slickedit/18.0.1/SampleProjects/ucpp/cpp.cpp"

KKent

  • Community Member
  • Posts: 6
  • Hero Points: 0
Re: Fedora version 14 - compile error
« Reply #10 on: August 29, 2013, 09:29:15 pm »
Ok... sorry... must have missed something. Seems to work now.

Thx