timedata-org / old-timedata

Time arts data - high-performance color processing in C++ and Python.
7 stars 3 forks source link

`clean` cannot be called with any other targets. #104

Open rec opened 8 years ago

rec commented 8 years ago

I've known this for a long time, just documenting it.

It's very weird - it builds fine, and then it builds some bogus binary with warnings I don't understand, and then gets an error for a file I don't even understand: fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't create temporary output file: build/temp.macosx-10.6-intel-3.4/timedata.o.lipo (No such file or directory)

Solution: don't do that. 😈 Perhaps I'll track it down at some point.

-*- mode: compilation; default-directory: "/development/timedata/" -*-
Compilation started at Sat Aug  6 13:18:16

source /development/env/led3/bin/activate && TINY=true BUILDTYPE=debug python setup.py clean test
Building targets clean generate develop test
running clean
Deleting ./build/
running generate
Generate tiny
running develop
running egg_info
writing timedata.egg-info/PKG-INFO
writing top-level names to timedata.egg-info/top_level.txt
writing dependency_links to timedata.egg-info/dependency_links.txt
reading manifest file 'timedata.egg-info/SOURCES.txt'
writing manifest file 'timedata.egg-info/SOURCES.txt'
running build_ext
Compiling timedata.pyx because it depends on build/genfiles/timedata/signal/stripe.pyx.
[1/1] Cythonizing timedata.pyx
building 'timedata' extension
creating build/temp.macosx-10.6-intel-3.4
/usr/bin/clang -fno-strict-aliasing -Werror=declaration-after-statement -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -Isrc/cpp -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c timedata.cpp -o build/temp.macosx-10.6-intel-3.4/timedata.o -std=c++11 -ferror-limit=100 -DCOMPILE_TIMESTAMP="2016-08-06T17:18:16.684722" -DGIT_TAGS="2c6edb8+develop.rec" -Wall -Wextra -Wpedantic -Wno-unused-function -Wno-extended-offsetof -mmacosx-version-min=10.9 -Wno-tautological-constant-out-of-range-compare -O0 -DDEBUG -flto -fno-math-errno -fomit-frame-pointer -funroll-loops -ffast-math -DOPTIMIZATION_FLAGS="-DDEBUG -O0 -ffast-math -flto -fno-math-errno -fomit-frame-pointer -funroll-loops"
creating build/lib
/usr/bin/clang++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.4/timedata.o -o build/lib/timedata.so -O0 -DDEBUG -flto -fno-math-errno -fomit-frame-pointer -funroll-loops -ffast-math
copying build/lib/timedata.so ->
Creating /development/env/led3/lib/python3.4/site-packages/timedata.egg-link (link to .)
timedata 0.8 is already the active version in easy-install.pth

Installed /development/timedata
Processing dependencies for timedata==0.8
Finished processing dependencies for timedata==0.8
running test
running build_ext
copying build/lib/timedata.so ->
Building targets clean generate develop test
running clean
Deleting ./build/
running generate
Generate tiny
running develop
running egg_info
writing timedata.egg-info/PKG-INFO
writing top-level names to timedata.egg-info/top_level.txt
writing dependency_links to timedata.egg-info/dependency_links.txt
reading manifest file 'timedata.egg-info/SOURCES.txt'
writing manifest file 'timedata.egg-info/SOURCES.txt'
running build_ext
building 'timedata' extension
/usr/bin/clang -fno-strict-aliasing -Werror=declaration-after-statement -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -Isrc/cpp -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c timedata.cpp -o build/temp.macosx-10.6-intel-3.4/timedata.o -std=c++11 -ferror-limit=100 -DCOMPILE_TIMESTAMP="2016-08-06T17:18:16.684722" -DGIT_TAGS="2c6edb8+develop.rec" -Wall -Wextra -Wpedantic -Wno-unused-function -Wno-extended-offsetof -mmacosx-version-min=10.9 -Wno-tautological-constant-out-of-range-compare -O0 -DDEBUG -flto -fno-math-errno -fomit-frame-pointer -funroll-loops -ffast-math -DOPTIMIZATION_FLAGS="-DDEBUG -O0 -ffast-math -flto -fno-math-errno -fomit-frame-pointer -funroll-loops" -O0 -DDEBUG -flto -fno-math-errno -fomit-frame-pointer -funroll-loops -ffast-math -flto -fno-math-errno -fomit-frame-pointer -funroll-loops -ffast-math -DOPTIMIZATION_FLAGS="-DDEBUG -O0 -ffast-math -ffast-math -flto -flto -fno-math-errno -fno-math-errno -fomit-frame-pointer -fomit-frame-pointer -funroll-loops -funroll-loops" -DCOMPILE_TIMESTAMP="2016-08-06T17:18:35.745110"
In file included from <built-in>:183:
<command line>:7:9: warning: 'OPTIMIZATION_FLAGS' macro redefined
#define OPTIMIZATION_FLAGS "-DDEBUG -O0 -ffast-math -ffast-math -flto -flto -fno-math-errno -fno-mat...
        ^
<command line>:5:9: note: previous definition is here
#define OPTIMIZATION_FLAGS "-DDEBUG -O0 -ffast-math -flto -fno-math-errno -fomit-frame-pointer -funr...
        ^
<command line>:8:9: warning: 'COMPILE_TIMESTAMP' macro redefined
#define COMPILE_TIMESTAMP "2016-08-06T17:18:35.745110"
        ^
<command line>:2:9: note: previous definition is here
#define COMPILE_TIMESTAMP "2016-08-06T17:18:16.684722"
        ^
2 warnings generated.
In file included from <built-in>:189:
<command line>:7:9: warning: 'OPTIMIZATION_FLAGS' macro redefined
#define OPTIMIZATION_FLAGS "-DDEBUG -O0 -ffast-math -ffast-math -flto -flto -fno-math-errno -fno-mat...
        ^
<command line>:5:9: note: previous definition is here
#define OPTIMIZATION_FLAGS "-DDEBUG -O0 -ffast-math -flto -fno-math-errno -fomit-frame-pointer -funr...
        ^
<command line>:8:9: warning: 'COMPILE_TIMESTAMP' macro redefined
#define COMPILE_TIMESTAMP "2016-08-06T17:18:35.745110"
        ^
<command line>:2:9: note: previous definition is here
#define COMPILE_TIMESTAMP "2016-08-06T17:18:16.684722"
        ^
2 warnings generated.
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't create temporary output file: build/temp.macosx-10.6-intel-3.4/timedata.o.lipo (No such file or directory)
clang: error: lipo command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1

Compilation exited abnormally with code 1 at Sat Aug  6 13:18:41