Opened 14 years ago
Closed 13 years ago
#26807 closed defect (wontfix)
lbdb: one or more PCH files were found, but they were invalid
Reported by: | tkren@… | Owned by: | reilles@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | lbdb |
Description
I encountered the following error while running sudo port install -c lbdb +gpg+ldap
:
---> Computing dependencies for lbdb ---> Fetching lbdb ---> Attempting to fetch lbdb_0.36.tar.gz from http://lil.fr.distfiles.macports.org/lbdb ---> Verifying checksum(s) for lbdb ---> Extracting lbdb ---> Applying patches to lbdb ---> Configuring lbdb ---> Building lbdb Error: Target org.macports.build returned: shell command failed Log for lbdb is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
The log file is attached.
Attachments (1)
Change History (5)
Changed 14 years ago by tkren@…
comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to reilles@… |
---|---|
Summary: | lbdb does not build: cp: ABQuery/build/ABQuery: No such file or directory → lbdb: one or more PCH files were found, but they were invalid |
comment:2 Changed 14 years ago by jmroot (Joshua Root)
A new version of the port isn't going to uncorrupt Xcode's PCH cache. Launch Xcode.app and choose "Empty Caches…" from the application menu.
comment:3 Changed 14 years ago by tkren@…
unfortunately, this didn't fix the problem. after emptying the Xcode caches and removing the build dir of lbdb, I still get the following build failure:
[...] :info:build if [ "/usr/bin/xcodebuild" != "no" ]; then \ :info:build (cd ABQuery; xcodebuild -buildstyle Deployment; printf '#!/bin/sh\nmkdir ABQuery/sym\nEXE=ABQuery/build/ABQuery\nif test -x ABQuery/build/Deployment/ABQuery; then EXE=ABQuery/build/Deployment/ABQuery; fi\ncp $EXE ABQuery/sym\n' > pbxbuild.sh; chmod a+x pbxbuild.sh) \ :info:build else \ :info:build (cd ABQuery; pbxbuild -buildstyle Deployment export) \ :info:build fi :info:build cat tac.awk > tac :info:build chmod a+x tac :info:build /usr/bin/gcc-4.2 -O2 -I/opt/local/include -arch x86_64 -liconv -L/opt/local/lib -arch x86_64 fetchaddr.o rfc822.o helpers.o rfc2047.o -o fetchaddr :info:build /usr/bin/gcc-4.2 -O2 -I/opt/local/include -arch x86_64 -liconv -L/opt/local/lib -arch x86_64 qpto8bit.o rfc822.o helpers.o rfc2047.o -o qpto8bit :info:build deprecated option: -buildstyle is no longer supported in xcodebuild. Use -configuration instead. :info:build :info:build === BUILD NATIVE TARGET ABQuery (Upgraded) OF PROJECT ABQuery WITH CONFIGURATION Deployment === :info:build Check dependencies :info:build CompileC "build/ABQuery.build/Deployment/ABQuery (Upgraded).build/Objects-normal/i386/ABQuery.o" ABQuery.m normal i386 objective-c com.apple.compilers.gcc.4_2 :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery :info:build setenv LANG en_US.US-ASCII :info:build /Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -fvisibility=hidden -mmacosx-version-min=10.6 -gdwarf-2 "-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/build/ABQuery.build/Deployment/ABQuery (Upgraded).build/ABQuery.hmap" -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/build/Deployment -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/build/Deployment/include "-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/build/ABQuery.build/Deployment/ABQuery (Upgraded).build/DerivedSources/i386" "-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/build/ABQuery.build/Deployment/ABQuery (Upgraded).build/DerivedSources" -include /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Caches-/com.apple.Xcode.0/SharedPrecompiledHeaders/ABQuery_Prefix-etiauvswuqamyxatnsyzuxkjgqpk/ABQuery_Prefix.h -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/ABQuery.m -o "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/build/ABQuery.build/Deployment/ABQuery (Upgraded).build/Objects-normal/i386/ABQuery.o" :info:build :info:build cc1obj: error: /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Caches-/com.apple.Xcode.0/SharedPrecompiledHeaders/ABQuery_Prefix-etiauvswuqamyxatnsyzuxkjgqpk/ABQuery_Prefix.h: No such file or directory :info:build cc1obj: error: one or more PCH files were found, but they were invalid :info:build cc1obj: error: use -Winvalid-pch for more information :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/ABQuery.m: In function 'main': :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/ABQuery.m:34: warning: 'stringWithCString:' is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:386) :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/ABQuery.m:66: warning: 'cString' is deprecated (declared at /System/Library/Frameworks/Foundation.framework/Headers/NSString.h:367) :info:build ** BUILD FAILED ** :info:build :info:build :info:build The following build commands failed: :info:build ABQuery (Upgraded): :info:build CompileC "build/ABQuery.build/Deployment/ABQuery (Upgraded).build/Objects-normal/i386/ABQuery.o" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36/ABQuery/ABQuery.m normal i386 objective-c com.apple.compilers.gcc.4_2 :info:build (1 failure) :info:build :info:build ABQuery/pbxbuild.sh :info:build cp: ABQuery/build/ABQuery: No such file or directory :info:build make: *** [ABQuery/sym/ABQuery] Error 1 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/work/lbdb-0.36" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for lbdb): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for lbdb is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_mail_lbdb/main.log
I tried out version 0.37 of lbdb, but runningmake
gives me the following error:
[...] if [ "/usr/bin/xcodebuild" != "no" ]; then \ (cd ABQuery; xcodebuild -buildstyle Deployment; printf '#!/bin/sh\nmkdir ABQuery/sym\nEXE=ABQuery/build/ABQuery\nif test -x ABQuery/build/Deployment/ABQuery; then EXE=ABQuery/build/Deployment/ABQuery; fi\ncp $EXE ABQuery/sym\n' > pbxbuild.sh; chmod a+x pbxbuild.sh) \ else \ (cd ABQuery; pbxbuild -buildstyle Deployment export) \ fi deprecated option: -buildstyle is no longer supported in xcodebuild. Use -configuration instead. (NOTE: project ABQuery was written by an older Xcode version (38) -- temporarily upgrading it (without modifying project file)) === BUILD TOOL TARGET ABQuery OF PROJECT ABQuery WITH CONFIGURATION Deployment === Check dependencies Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation. ** BUILD FAILED ** ABQuery/pbxbuild.sh cp: ABQuery/build/ABQuery: No such file or directory make: *** [ABQuery/sym/ABQuery] Error 1
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
There doesn't appear to be anything that could be done about this Xcode bug in the port. Deleting the PCH cache (/var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Caches-/com.apple.Xcode.0/SharedPrecompiledHeaders
in the above example) manually in the terminal is the workaround if doing it through Xcode.app doesn't work.
Please remember to Cc the port's maintainer.
The relevant lines in the log seems to be:
A new version of lbdb is available; perhaps updating the port would help.