Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Shell errors during builds
Shell errors during builds [message #191939] Fri, 25 May 2007 20:36 Go to next message
Eclipse UserFriend
Originally posted by: DELETETHISyang.news.MAILNULLdeletethis.com

in cdt 4 on eclipse 3.3, i get this build error for the cdt-supplied
hello world project. for some reason, my bashrc is being sourced (by
/bin/sh); i don't think that should happen. thanks in advance for any
help. (a related thread went unanswered: <aravs6$h16$1@rogue.oti.com>)

**** Build of configuration Debug for project cc_sandbox ****

make all
Building file: ../src/cc_sandbox.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/cc_sandbox.d" -
MT"src/cc_sandbox.d" -o"src/cc_sandbox.o" "../src/cc_sandbox.cpp"
/bin/sh: ..: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `..'
/bin/sh: ezpy: line 7: syntax error: unexpected end of file
/bin/sh: error importing function definition for `ezpy'
/bin/sh: prepprint: line 4: syntax error: unexpected end of file
/bin/sh: error importing function definition for `prepprint'
/bin/sh: runemacs: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `runemacs'
Finished building: ../src/cc_sandbox.cpp

Building target: cc_sandbox
Invoking: GCC C++ Linker
g++ -o"cc_sandbox" ./src/cc_sandbox.o
/bin/sh: ..: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `..'
/bin/sh: ezpy: line 7: syntax error: unexpected end of file
/bin/sh: error importing function definition for `ezpy'
/bin/sh: prepprint: line 4: syntax error: unexpected end of file
/bin/sh: error importing function definition for `prepprint'
/bin/sh: runemacs: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `runemacs'
Finished building target: cc_sandbox
Re: Shell errors during builds [message #195382 is a reply to message #191939] Thu, 05 July 2007 20:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yaaangNOSPAM.REMOVECAPSgmail.com

Hello, I'm just reposting this as I got no replies. I am still seeing
this problem with the latest Europa release.

Yang wrote:
> in cdt 4 on eclipse 3.3, i get this build error for the cdt-supplied
> hello world project. for some reason, my bashrc is being sourced (by
> /bin/sh); i don't think that should happen. thanks in advance for any
> help. (a related thread went unanswered: <aravs6$h16$1@rogue.oti.com>)
>
> **** Build of configuration Debug for project cc_sandbox ****
>
> make all
> Building file: ../src/cc_sandbox.cpp
> Invoking: GCC C++ Compiler
> g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/cc_sandbox.d" -
> MT"src/cc_sandbox.d" -o"src/cc_sandbox.o" "../src/cc_sandbox.cpp"
> /bin/sh: ..: line 1: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `..'
> /bin/sh: ezpy: line 7: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `ezpy'
> /bin/sh: prepprint: line 4: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `prepprint'
> /bin/sh: runemacs: line 1: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `runemacs'
> Finished building: ../src/cc_sandbox.cpp
>
> Building target: cc_sandbox
> Invoking: GCC C++ Linker
> g++ -o"cc_sandbox" ./src/cc_sandbox.o
> /bin/sh: ..: line 1: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `..'
> /bin/sh: ezpy: line 7: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `ezpy'
> /bin/sh: prepprint: line 4: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `prepprint'
> /bin/sh: runemacs: line 1: syntax error: unexpected end of file
> /bin/sh: error importing function definition for `runemacs'
> Finished building target: cc_sandbox
Re: Shell errors during builds [message #195548 is a reply to message #195382] Fri, 06 July 2007 20:04 Go to previous messageGo to next message
Geoff Ruscoe is currently offline Geoff RuscoeFriend
Messages: 4
Registered: July 2009
Junior Member
I am also having a similar error.

/bin/bash is setup as my shell. /bin/sh is a symbolic link to /bin/bash

I am not sure what I can do to make these errors stop.

Thanks in advance.

-Geoff
Re: Shell errors during builds [message #195707 is a reply to message #195548] Mon, 09 July 2007 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

They look like errors in your .bashrc file.

--
Derek


exquisitus wrote:
> I am also having a similar error.
>
> /bin/bash is setup as my shell. /bin/sh is a symbolic link to /bin/bash
>
> I am not sure what I can do to make these errors stop.
>
> Thanks in advance.
>
> -Geoff
Re: Shell errors during builds [message #196103 is a reply to message #195707] Tue, 10 July 2007 17:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gruscoe.sigmavisions.com

No errors reported when I use bash in a terminal and I use it
constantly. I can run sh by itself or even sh /path/to/some/script and
that works fine as well. In fact one of the errors that is reported is
when it calls a script like that. But it works fine from the command
line when I try it.

I have narrowed down that a bunch of the errors that are being reported
are because of variables being set inside the function.

function some_function() {
local variable="test"
var2="test2"
}

both of these lines would be in error. It seems that this has to have
something to do with how eclipse is running the external commands.

How this helps.

-Geoff



Derek Morris wrote:
> They look like errors in your .bashrc file.
>
Re: Shell errors during builds [message #197502 is a reply to message #195382] Mon, 16 July 2007 22:58 Go to previous message
Eclipse UserFriend
Originally posted by: gruscoe.sigmavisions.com

First off, best I can tell this has nothing to do with the CDT but is an
Eclipse feature (I get these errors with ant as well).

While I have not been able to completely solve the problem, I was able
to come up with a workaround -- And I think a workaround is necessary
because the shell errors are counted as errors during the compile.

Anyway, by changing the build settings to "Replace" the environment with
the one I had this gets rid of the error. On the down side I have to
set a few environment variables (PATH, etc.) for this to work, but at
least the builds complete successfully now.

I was unable to find anything on the eclipse lists that had anything to
do with this. If anybody can be of any help, that would be great!

-Geoff



Yang wrote:
> Hello, I'm just reposting this as I got no replies. I am still seeing
> this problem with the latest Europa release.
>
> Yang wrote:
>> in cdt 4 on eclipse 3.3, i get this build error for the cdt-supplied
>> hello world project. for some reason, my bashrc is being sourced (by
>> /bin/sh); i don't think that should happen. thanks in advance for any
>> help. (a related thread went unanswered: <aravs6$h16$1@rogue.oti.com>)
>>
>> **** Build of configuration Debug for project cc_sandbox ****
>>
>> make all Building file: ../src/cc_sandbox.cpp
>> Invoking: GCC C++ Compiler
>> g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/cc_sandbox.d" -
>> MT"src/cc_sandbox.d" -o"src/cc_sandbox.o" "../src/cc_sandbox.cpp"
>> /bin/sh: ..: line 1: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `..'
>> /bin/sh: ezpy: line 7: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `ezpy'
>> /bin/sh: prepprint: line 4: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `prepprint'
>> /bin/sh: runemacs: line 1: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `runemacs'
>> Finished building: ../src/cc_sandbox.cpp
>>
>> Building target: cc_sandbox
>> Invoking: GCC C++ Linker
>> g++ -o"cc_sandbox" ./src/cc_sandbox.o /bin/sh: ..: line 1: syntax
>> error: unexpected end of file
>> /bin/sh: error importing function definition for `..'
>> /bin/sh: ezpy: line 7: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `ezpy'
>> /bin/sh: prepprint: line 4: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `prepprint'
>> /bin/sh: runemacs: line 1: syntax error: unexpected end of file
>> /bin/sh: error importing function definition for `runemacs'
>> Finished building target: cc_sandbox
Previous Topic:Seeing std::string values while debugging
Next Topic:gdb receives SIGTERM - remote debug
Goto Forum:
  


Current Time: Fri Apr 26 11:59:36 GMT 2024

Powered by FUDForum. Page generated in 0.03338 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top