openframeworks / openframeworks/openFrameworks

Linux64: Error when bin folder contains folder name with a space followed by a round bracket

Open
#4,678 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I had this error when comiling an application via Makefile under Linux64 that I could not figure out:

/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")
/bin/sh: 1: Syntax error: "(" unexpected (expecting "fi")
libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:188: recipe for target 'obj/linux64/Release/.compiler_flags' failed
make[1]: *** [obj/linux64/Release/.compiler_flags] Error 2

Now I got it: It is related to a folder in bin/ that was named session (last). If I remove the space, it works. If I remove the brackets, it works. Just not with the space followed by the bracket.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk around line 188 and reproduce the failure with a bin/ folder named session (last). Inspect the shell command generated for the .compiler_flags target. Done means the Linux64 build completes when bin/ contains paths with spaces followed by parentheses.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, shell
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.