Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.py cannot build flext debug libs #1

Open
cerkut opened this issue May 13, 2020 · 1 comment
Open

build.py cannot build flext debug libs #1

cerkut opened this issue May 13, 2020 · 1 comment

Comments

@cerkut
Copy link

cerkut commented May 13, 2020

Great initiative, thanks.
Unfortunately flext does not build all targets, which affects py and subsequently the whole build stalls.

OS 10.14.6
Xcode 11.3.1
pd-0.50.2

The error
`/Applications/Xcode.app/Contents/Developer/usr/bin/make -f /Users/cerkut/Developer/DeepLearningWithAudio/pyext-setup/flext/buildsys/gnumake-sub.mak PLATFORM=mac RTSYS=pd COMPILER=gcc BUILDPATH=/Users/cerkut/Developer/DeepLearningWithAudio/pyext-setup/flext/buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=debug TARGETTYPE=single DEBUG=1 install

/Users/cerkut/Developer/DeepLearningWithAudio/pyext-setup/flext/buildsys/mac/gnumake-gcc-targets.inc:22: warning: overriding commands for target `pd-darwin/debug-single'

/Users/cerkut/Developer/DeepLearningWithAudio/pyext-setup/flext/buildsys/mac/gnumake-gcc-targets.inc:18: warning: ignoring old commands for target `pd-darwin/debug-single'

install pd-darwin/debug-single/libflext-pd_sd.0.6.1.a /Users/cerkut/Developer/DeepLearningWithAudio/pyext-setup/build/flext/lib
install: pd-darwin/debug-single/libflext-pd_sd.0.6.1.a: No such file or directory
make[1]: *** [install] Error 71
make: *** [install-debug-single] Error 2
Traceback (most recent call last):
File "build.py", line 217, in
flext_build(args=("install",))
File "build.py", line 195, in
flext_build = lambda ok_codes=(0,), args=(): call_with_env(flext_build_cmd + args, flext_build_env, ok_codes)
File "build.py", line 119, in call_with_env
raise Exception("command exited with unexpected code {}".format(code))
Exception: command exited with unexpected code 2`

By selectively changing the flags BUILDMODE and TARGETMODE I am investigating where the error originates from, and will report. But appreciate the help if other people have the same problem.

flext_build_env = { "BUILDMODE": "debug", #"TARGETMODE": "single", "FLEXT_PD_APP": pd, "FLEXT_INSTALL_PATH": package_dir, "FLEXTPREFIX": flext_prefix, "FLEXT_NOATTREDIT": str(int(is_purr_data)) }

@ahihi
Copy link
Contributor

ahihi commented May 13, 2020

i also had some trouble with debug builds, don't remember if the error was the same though. the way i got it working was to add

DEBUG = 1
DFLAGS += -DFLEXT_DEBUG

to flext/build/gnumake-mac-gcc.inc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants