View Issue Details

IDProjectCategoryView StatusLast Update
0000650Cinelerra-GG[All Projects] Bugpublic2024-09-06 19:08
ReporterPhyllisSmith Assigned ToPhyllisSmith  
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000650: Syntax error : "(" unexpected when patch for Multibit in x265
DescriptionTo compile x265 for addition 10 and 12 bit by patching with ./thirdparty/compile_multibit.txt, a bash shell, multibit.sh is executed. This shell (at least I think it comes from the shell) has the error "/bin/sh: 1: Syntax error : "(" unexpected" which does not prevent compilation but is distracting when looking for errors in the build log file.

Ran the program "shellcheck" on Fedora on multibit.sh and all it found was warnings and style issues but no unexpected (. Maybe the error is from ./thirdparty/Makefile line "x265.cfg_vars?=chmod +x ./configure; chmod +x ./multilib.sh;" but I could not determine if that is so.
Steps To Reproducecd thirdparty
patch < compile_multibit.txt
mv x265_3.517122034.patch* src/.
cd ..
./bld.sh

then check the log file for the error message of Syntax error or syntax error.
TagsNo tags attached.

Activities

PhyllisSmith

PhyllisSmith

2024-09-06 19:08

manager   ~0005712

@tarantas
Not sure if bash shell global "set +e" workaround works for you.
However, not using the latest GIT is not recommended and if there is a fix added for 0000665, it will become inconvenient. I am still trying to correct the "unexpected (.

Here is the workaround to continue to use the latest GIT.
In cinelerra-5.1/thirdparty, edit Makefile by commenting the line: x265.cfg_vars?=(chmod +x ./configure ./multilib.sh)
and uncommenting the lines: x265.cfg_vars?=$(call cmake_config,source)
and x265.cfg_params?= -DENABLE_SHARED=no -DENABLE_CLI=no

They should look like this to compile without multibit capability (which is what you are doing when using the older GIT).:
#x265.cfg_vars?=(chmod +x ./configure ./multilib.sh)
x265.cfg_vars?=$(call cmake_config,source)
x265.cfg_params?= -DENABLE_SHARED=no -DENABLE_CLI=no
Andrew-R

Andrew-R

2024-09-04 17:46

reporter   ~0005704

may be also " set +e" if your shell (bash session) already added "set -e" globally?
tarantas

tarantas

2024-09-03 19:48

reporter   ~0005694

Anyone having the same issue could back off several commits by doing: git reset --hard 73eb8f8d040d50f33db883d12adaaf33a2d1520c
tarantas

tarantas

2024-09-03 17:22

reporter   ~0005693

Well, same here. Can't compile the last git version.

Issue History

Date Modified Username Field Change
2024-01-01 01:28 PhyllisSmith New Issue
2024-01-01 01:28 PhyllisSmith Assigned To => PhyllisSmith
2024-01-01 01:28 PhyllisSmith Status new => confirmed
2024-09-03 17:22 tarantas Note Added: 0005693
2024-09-03 19:48 tarantas Note Added: 0005694
2024-09-04 17:46 Andrew-R Note Added: 0005704
2024-09-06 19:08 PhyllisSmith Note Added: 0005712