Erreur de compilation (unknown flag: -Wl,-all_load) !!!
zenx
Membre
J'ai récemment installé un compilateur Pascal (www.freepascal.org) sur mon iMac et j'ai suivi la procédure indiquée par le site pour l'intégrer dans XCode. Tout fonctionnait bien jusqu'à la version 2.2 de XCode (après avoir modifier un peu les templates du compilateur pascal). Malheureusement, depuis que je suis passé à la 2.3, j'ai systématiquement une erreur de compilation, le message étant :
Building target "nomProjet" of project "nomProjet" with configuration "Development"
Building ZeroLink launcher /Users/zenx/Documents/nomProjet/build/Developement/nomProjet
unknown flag: -Wl,-all_load
J'ai essayé de changer le type de build en prenant Deployment, mais rien y fait !. J'obtiens toujours le même genre d'erreur à la différence qu'il m'affiche ceci :
Building target "nomProjet" of project "nomProjet" with configuration "Deployment"
Building ZeroLink launcher /Users/zenx/Documents/nomProjet/build/Deployment/nomProjet
unknown flag: -Wl,-Y,1455
Quelqu'un a-t-il une idée de la signification de ce message, ou se trouve ces paramètres (flags), et comment les changer ? (quoi mettre à la place)
Merci d'avance !
Building target "nomProjet" of project "nomProjet" with configuration "Development"
Building ZeroLink launcher /Users/zenx/Documents/nomProjet/build/Developement/nomProjet
unknown flag: -Wl,-all_load
J'ai essayé de changer le type de build en prenant Deployment, mais rien y fait !. J'obtiens toujours le même genre d'erreur à la différence qu'il m'affiche ceci :
Building target "nomProjet" of project "nomProjet" with configuration "Deployment"
Building ZeroLink launcher /Users/zenx/Documents/nomProjet/build/Deployment/nomProjet
unknown flag: -Wl,-Y,1455
Quelqu'un a-t-il une idée de la signification de ce message, ou se trouve ces paramètres (flags), et comment les changer ? (quoi mettre à la place)
Merci d'avance !
Connectez-vous ou Inscrivez-vous pour répondre.
Réponses
Copie-colle ici le contenu de la console Xcode après le build défaillant.
Pour afficher le contenu de la console Xcode, suis les instructions de ce post.
.
Checking Dependencies
PhaseScriptExecution /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/Script-34184544.sh
mkdir /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/DerivedSources/build/Development
cd /Users/jeandiet/CompteBon
setenv ACTION build
setenv ALWAYS_SEARCH_USER_PATHS YES
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
setenv APPLE_INTERNAL_DIR /AppleInternal
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
setenv ARCHS ppc
setenv BUILD_COMPONENTS "headers build"
setenv BUILD_DIR /Users/jeandiet/CompteBon/build
setenv BUILD_ROOT /Users/jeandiet/CompteBon/build
setenv BUILD_STYLE Development
setenv BUILD_VARIANTS normal
setenv BUILT_PRODUCTS_DIR /Users/jeandiet/CompteBon/build/Development
setenv CACHE_ROOT /Library/Caches/com.apple.Xcode.501
setenv CCHROOT /Library/Caches/com.apple.Xcode.501
setenv CHMOD /bin/chmod
setenv CHOWN /usr/sbin/chown
setenv CLASS_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/JavaClasses
setenv CLEAN_PRECOMPS YES
setenv CLONE_HEADERS NO
setenv CONFIGURATION Development
setenv CONFIGURATION_BUILD_DIR /Users/jeandiet/CompteBon/build/Development
setenv CONFIGURATION_TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development
setenv COPY_PHASE_STRIP NO
setenv COPY_RESOURCES_FROM_STATIC_FRAMEWORKS YES
setenv CP /bin/cp
setenv CURRENT_ARCH ppc
setenv CURRENT_VARIANT normal
setenv DEBUGGING_SYMBOLS YES
setenv DEBUG_INFORMATION_FORMAT stabs
setenv DEPLOYMENT_LOCATION NO
setenv DERIVED_FILES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/DerivedSources
setenv DERIVED_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/DerivedSources
setenv DERIVED_SOURCES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/DerivedSources
setenv DEVELOPMENT_LANGUAGE English
setenv DSTROOT /tmp/CompteBon.dst
setenv DWARF_DSYM_FILE_NAME CompteBon.dSYM
setenv DWARF_DSYM_FOLDER_PATH /Users/jeandiet/CompteBon/build/Development
setenv ENABLE_HEADER_DEPENDENCIES YES
setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib *.lproj *.framework *.gch (*) CVS .svn *.xcodeproj *.xcode *.pbproj *.pbxproj"
setenv EXECUTABLE_NAME CompteBon
setenv EXECUTABLE_PATH CompteBon
setenv FIXED_FILES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/FixedFiles
setenv FRAMEWORK_FLAG_PREFIX -framework
setenv FRAMEWORK_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development
setenv FRAMEWORK_VERSION A
setenv FULL_PRODUCT_NAME CompteBon
setenv GCC_DYNAMIC_NO_PIC NO
setenv GCC_ENABLE_AUTO_PCH NO
setenv GCC_ENABLE_FIX_AND_CONTINUE YES
setenv GCC_GENERATE_DEBUGGING_SYMBOLS YES
setenv GCC_INLINES_ARE_PRIVATE_EXTERN YES
setenv GCC_OPTIMIZATION_LEVEL 0
setenv GCC_PFE_FILE_C_DIALECTS "c objective-c c++ objective-c++"
setenv GCC_SYMBOLS_PRIVATE_EXTERN YES
setenv GCC_TREAT_WARNINGS_AS_ERRORS NO
setenv GCC_VERSION 4.0
setenv GENERATE_PKGINFO_FILE NO
setenv GENERATE_PROFILING_CODE NO
setenv GROUP jeandiet
setenv HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT YES
setenv HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES YES
setenv HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS YES
setenv HEADERMAP_INCLUDES_PROJECT_HEADERS YES
setenv HEADER_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development/include
setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
setenv INPUT_FILE_BASE EmptyPlaceHolderUnit
setenv INPUT_FILE_DIR /Users/jeandiet/CompteBon
setenv INPUT_FILE_NAME EmptyPlaceHolderUnit.pas
setenv INPUT_FILE_PATH /Users/jeandiet/CompteBon/EmptyPlaceHolderUnit.pas
setenv INPUT_FILE_REGION_PATH_COMPONENT
setenv INPUT_FILE_SUFFIX .pas
setenv INSTALL_DIR /tmp/CompteBon.dst/usr/local/bin
setenv INSTALL_GROUP jeandiet
setenv INSTALL_MODE_FLAG a-w,a+rX
setenv INSTALL_OWNER jeandiet
setenv INSTALL_PATH /usr/local/bin
setenv INSTALL_ROOT /tmp/CompteBon.dst
setenv JAVAC_DEFAULT_FLAGS "-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
setenv JAVA_APP_STUB /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
setenv JAVA_ARCHIVE_CLASSES YES
setenv JAVA_ARCHIVE_TYPE JAR
setenv JAVA_COMPILER /usr/bin/javac
setenv JAVA_FRAMEWORK_RESOURCES_DIRS Resources
setenv JAVA_JAR_FLAGS cv
setenv JAVA_SOURCE_SUBDIR .
setenv JAVA_USE_DEPENDENCIES YES
setenv JAVA_ZIP_FLAGS -urg
setenv JIKES_DEFAULT_FLAGS "+E +OLDCSO"
setenv LEX /usr/bin/lex
setenv LIBRARY_FLAG_NOSPACE YES
setenv LIBRARY_FLAG_PREFIX -l
setenv LIBRARY_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development
setenv LINK_FILE_LIST_normal_ppc /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/Objects-normal/ppc/CompteBon.LinkFileList
setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
setenv LOCAL_APPS_DIR /Applications
setenv LOCAL_DEVELOPER_DIR /Library/Developer
setenv LOCAL_LIBRARY_DIR /Library
setenv NATIVE_ARCH ppc
setenv NO_COMMON YES
setenv OBJECT_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/Objects
setenv OBJECT_FILE_DIR_normal /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/Objects-normal
setenv OBJROOT /Users/jeandiet/CompteBon/build
setenv OPTIMIZATION_CFLAGS -O0
setenv OPTIMIZATION_LEVEL 0
setenv OS MACOS
setenv OSAC /usr/bin/osacompile
setenv PACKAGE_TYPE com.apple.package-type.mach-o-executable
setenv PASCAL_STRINGS YES
setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Developer/Headers"
setenv PKGINFO_FILE_PATH /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/PkgInfo
setenv PREBINDING YES
setenv PRECOMP_DESTINATION_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/PrefixHeaders
setenv PRODUCT_NAME CompteBon
setenv PRODUCT_SETTINGS_PATH
setenv PRODUCT_TYPE com.apple.product-type.tool
setenv PROJECT CompteBon
setenv PROJECT_DERIVED_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/DerivedSources
setenv PROJECT_DIR /Users/jeandiet/CompteBon
setenv PROJECT_FILE_PATH /Users/jeandiet/CompteBon/CompteBon.xcodeproj
setenv PROJECT_NAME CompteBon
setenv PROJECT_TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build
setenv RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS YES
setenv REMOVE_CVS_FROM_RESOURCES YES
setenv REMOVE_SVN_FROM_RESOURCES YES
setenv REZ_COLLECTOR_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/ResourceManagerResources
setenv REZ_EXECUTABLE YES
setenv REZ_OBJECTS_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/ResourceManagerResources/Objects
setenv REZ_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development
setenv SCRIPT_INPUT_FILE /Users/jeandiet/CompteBon/EmptyPlaceHolderUnit.pas
setenv SCRIPT_OUTPUT_FILE_0 build/Development/CompteBon
setenv SCRIPT_OUTPUT_FILE_COUNT 1
setenv SDKROOT
setenv SED /usr/bin/sed
setenv SET_DIR_MODE_OWNER_GROUP YES
setenv SET_FILE_MODE_OWNER_GROUP NO
setenv SHARED_DERIVED_FILE_DIR /Users/jeandiet/CompteBon/build/Development/DerivedSources
setenv SHARED_PRECOMPS_DIR /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders
setenv SOURCE_ROOT /Users/jeandiet/CompteBon
setenv SRCROOT /Users/jeandiet/CompteBon
setenv STRIP_INSTALLED_PRODUCT YES
setenv STRIP_STYLE all
setenv SYMBOL_REPOSITORY_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build/SymbolRepositories
setenv SYMROOT /Users/jeandiet/CompteBon/build
setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
setenv SYSTEM_APPS_DIR /Applications
setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
setenv SYSTEM_DEMOS_DIR /Applications/Extras
setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
setenv SYSTEM_DEVELOPER_DEMOS_DIR "/Developer/Applications/Utilities/Built Examples"
setenv SYSTEM_DEVELOPER_DIR /Developer
setenv SYSTEM_DEVELOPER_DOC_DIR "/Developer/ADC Reference Library"
setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR "/Developer/Applications/Graphics Tools"
setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Developer/Applications/Java Tools"
setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR "/Developer/Applications/Performance Tools"
setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes"
setenv SYSTEM_DEVELOPER_TOOLS /Developer/Tools
setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Developer/ADC Reference Library/documentation/DeveloperTools"
setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes/DeveloperTools"
setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
setenv SYSTEM_LIBRARY_DIR /System/Library
setenv TARGETNAME CompteBonUnits
setenv TARGET_BUILD_DIR /Users/jeandiet/CompteBon/build/Development
setenv TARGET_NAME CompteBonUnits
setenv TARGET_TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build
setenv TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build
setenv TEMP_FILES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build
setenv TEMP_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBonUnits.build
setenv TEMP_ROOT /Users/jeandiet/CompteBon/build
setenv UID 501
setenv UNSTRIPPED_PRODUCT NO
setenv USER jeandiet
setenv USER_APPS_DIR /Users/jeandiet/Applications
setenv USER_LIBRARY_DIR /Users/jeandiet/Library
setenv USE_DYNAMIC_NO_PIC YES
setenv VALID_ARCHS "m68k i386 sparc hppa ppc ppc7400 ppc970 ppc64"
setenv VERBOSE_PBXCP NO
setenv VERSION_INFO_BUILDER jeandiet
setenv VERSION_INFO_STRING "\"@(#)PROGRAM:CompteBon PROJECT:CompteBon- DEVELOPER:jeandiet BUILT:\" __DATE__ \" \" __TIME__ \"\""
setenv WARNING_CFLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"
setenv XCODE_APP_SUPPORT_DIR "/Library/Application Support/Apple/Developer Tools"
setenv YACC /usr/bin/yacc
setenv ZERO_LINK YES
/bin/sh -c rm\ -f\ build/${CONFIGURATION}/${PRODUCT_NAME}
Building target ?CompteBon? of project ?CompteBon? with configuration ?Development?
Checking Dependencies
PhaseScriptExecution /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/Script-9e5f7906.sh
mkdir /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/DerivedSources/build/CompteBon.build/Development/CompteBon.build
mkdir /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/DerivedSources/build/Development
cd /Users/jeandiet/CompteBon
setenv ACTION build
setenv ALWAYS_SEARCH_USER_PATHS YES
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
setenv APPLE_INTERNAL_DIR /AppleInternal
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
setenv ARCHS ppc
setenv BUILD_COMPONENTS "headers build"
setenv BUILD_DIR /Users/jeandiet/CompteBon/build
setenv BUILD_ROOT /Users/jeandiet/CompteBon/build
setenv BUILD_STYLE Development
setenv BUILD_VARIANTS normal
setenv BUILT_PRODUCTS_DIR /Users/jeandiet/CompteBon/build/Development
setenv CACHE_ROOT /Library/Caches/com.apple.Xcode.501
setenv CCHROOT /Library/Caches/com.apple.Xcode.501
setenv CHMOD /bin/chmod
setenv CHOWN /usr/sbin/chown
setenv CLASS_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/JavaClasses
setenv CLEAN_PRECOMPS YES
setenv CLONE_HEADERS NO
setenv CONFIGURATION Development
setenv CONFIGURATION_BUILD_DIR /Users/jeandiet/CompteBon/build/Development
setenv CONFIGURATION_TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development
setenv COPY_PHASE_STRIP NO
setenv COPY_RESOURCES_FROM_STATIC_FRAMEWORKS YES
setenv CP /bin/cp
setenv CURRENT_ARCH ppc
setenv CURRENT_VARIANT normal
setenv DEBUGGING_SYMBOLS YES
setenv DEBUG_INFORMATION_FORMAT stabs
setenv DEPLOYMENT_LOCATION NO
setenv DERIVED_FILES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/DerivedSources
setenv DERIVED_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/DerivedSources
setenv DERIVED_SOURCES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/DerivedSources
setenv DEVELOPMENT_LANGUAGE English
setenv DSTROOT /tmp/CompteBon.dst
setenv DWARF_DSYM_FILE_NAME CompteBon.dSYM
setenv DWARF_DSYM_FOLDER_PATH /Users/jeandiet/CompteBon/build/Development
setenv ENABLE_HEADER_DEPENDENCIES YES
setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib *.lproj *.framework *.gch (*) CVS .svn *.xcodeproj *.xcode *.pbproj *.pbxproj"
setenv EXECUTABLE_NAME CompteBon
setenv EXECUTABLE_PATH CompteBon
setenv FIXED_FILES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/FixedFiles
setenv FRAMEWORK_FLAG_PREFIX -framework
setenv FRAMEWORK_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development
setenv FRAMEWORK_VERSION A
setenv FULL_PRODUCT_NAME CompteBon
setenv GCC_DYNAMIC_NO_PIC NO
setenv GCC_ENABLE_AUTO_PCH NO
setenv GCC_ENABLE_FIX_AND_CONTINUE YES
setenv GCC_ENABLE_TRIGRAPHS NO
setenv GCC_GENERATE_DEBUGGING_SYMBOLS YES
setenv GCC_INLINES_ARE_PRIVATE_EXTERN YES
setenv GCC_OPTIMIZATION_LEVEL 0
setenv GCC_PFE_FILE_C_DIALECTS "c objective-c c++ objective-c++"
setenv GCC_PRECOMPILE_PREFIX_HEADER NO
setenv GCC_SYMBOLS_PRIVATE_EXTERN YES
setenv GCC_TREAT_WARNINGS_AS_ERRORS NO
setenv GCC_VERSION 4.0
setenv GCC_WARN_ABOUT_MISSING_PROTOTYPES NO
setenv GCC_WARN_FOUR_CHARACTER_CONSTANTS NO
setenv GCC_WARN_UNKNOWN_PRAGMAS NO
setenv GENERATE_PKGINFO_FILE NO
setenv GENERATE_PROFILING_CODE NO
setenv GROUP jeandiet
setenv HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT YES
setenv HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES YES
setenv HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS YES
setenv HEADERMAP_INCLUDES_PROJECT_HEADERS YES
setenv HEADER_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development/include
setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
setenv INPUT_FILE_BASE CompteBon
setenv INPUT_FILE_DIR /Users/jeandiet/CompteBon
setenv INPUT_FILE_NAME CompteBon.pas
setenv INPUT_FILE_PATH /Users/jeandiet/CompteBon/CompteBon.pas
setenv INPUT_FILE_REGION_PATH_COMPONENT
setenv INPUT_FILE_SUFFIX .pas
setenv INSTALL_DIR /tmp/CompteBon.dst/Users/jeandiet/bin
setenv INSTALL_GROUP jeandiet
setenv INSTALL_MODE_FLAG a-w,a+rX
setenv INSTALL_OWNER jeandiet
setenv INSTALL_PATH /Users/jeandiet/bin
setenv INSTALL_ROOT /tmp/CompteBon.dst
setenv JAVAC_DEFAULT_FLAGS "-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
setenv JAVA_APP_STUB /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
setenv JAVA_ARCHIVE_CLASSES YES
setenv JAVA_ARCHIVE_TYPE JAR
setenv JAVA_COMPILER /usr/bin/javac
setenv JAVA_FRAMEWORK_RESOURCES_DIRS Resources
setenv JAVA_JAR_FLAGS cv
setenv JAVA_SOURCE_SUBDIR .
setenv JAVA_USE_DEPENDENCIES YES
setenv JAVA_ZIP_FLAGS -urg
setenv JIKES_DEFAULT_FLAGS "+E +OLDCSO"
setenv LEX /usr/bin/lex
setenv LIBRARY_FLAG_NOSPACE YES
setenv LIBRARY_FLAG_PREFIX -l
setenv LIBRARY_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development
setenv LINK_FILE_LIST_normal_ppc /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/Objects-normal/ppc/CompteBon.LinkFileList
setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
setenv LOCAL_APPS_DIR /Applications
setenv LOCAL_DEVELOPER_DIR /Library/Developer
setenv LOCAL_LIBRARY_DIR /Library
setenv MACOSX_DEPLOYMENT_TARGET 10.1
setenv NATIVE_ARCH ppc
setenv NO_COMMON YES
setenv OBJECT_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/Objects
setenv OBJECT_FILE_DIR_normal /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/Objects-normal
setenv OBJROOT /Users/jeandiet/CompteBon/build
setenv OPTIMIZATION_CFLAGS -O0
setenv OPTIMIZATION_LEVEL 0
setenv OS MACOS
setenv OSAC /usr/bin/osacompile
setenv PACKAGE_TYPE com.apple.package-type.mach-o-executable
setenv PASCAL_STRINGS YES
setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Developer/Headers"
setenv PKGINFO_FILE_PATH /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/PkgInfo
setenv PREBINDING YES
setenv PRECOMP_DESTINATION_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/PrefixHeaders
setenv PRODUCT_NAME CompteBon
setenv PRODUCT_SETTINGS_PATH
setenv PRODUCT_TYPE com.apple.product-type.tool
setenv PROJECT CompteBon
setenv PROJECT_DERIVED_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/DerivedSources
setenv PROJECT_DIR /Users/jeandiet/CompteBon
setenv PROJECT_FILE_PATH /Users/jeandiet/CompteBon/CompteBon.xcodeproj
setenv PROJECT_NAME CompteBon
setenv PROJECT_TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build
setenv RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS YES
setenv REMOVE_CVS_FROM_RESOURCES YES
setenv REMOVE_SVN_FROM_RESOURCES YES
setenv REZ_COLLECTOR_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/ResourceManagerResources
setenv REZ_EXECUTABLE YES
setenv REZ_OBJECTS_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/ResourceManagerResources/Objects
setenv REZ_SEARCH_PATHS /Users/jeandiet/CompteBon/build/Development
setenv SCRIPT_INPUT_FILE /Users/jeandiet/CompteBon/CompteBon.pas
setenv SCRIPT_OUTPUT_FILE_0 build/CompteBon.build/Development/CompteBon.build/CompteBon.o
setenv SCRIPT_OUTPUT_FILE_1 build/Development/CompteBon
setenv SCRIPT_OUTPUT_FILE_COUNT 2
setenv SDKROOT
setenv SED /usr/bin/sed
setenv SET_DIR_MODE_OWNER_GROUP YES
setenv SET_FILE_MODE_OWNER_GROUP NO
setenv SHARED_DERIVED_FILE_DIR /Users/jeandiet/CompteBon/build/Development/DerivedSources
setenv SHARED_PRECOMPS_DIR /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders
setenv SOURCE_ROOT /Users/jeandiet/CompteBon
setenv SRCROOT /Users/jeandiet/CompteBon
setenv STRIP_INSTALLED_PRODUCT YES
setenv STRIP_STYLE all
setenv SYMBOL_REPOSITORY_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/SymbolRepositories
setenv SYMROOT /Users/jeandiet/CompteBon/build
setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
setenv SYSTEM_APPS_DIR /Applications
setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
setenv SYSTEM_DEMOS_DIR /Applications/Extras
setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
setenv SYSTEM_DEVELOPER_DEMOS_DIR "/Developer/Applications/Utilities/Built Examples"
setenv SYSTEM_DEVELOPER_DIR /Developer
setenv SYSTEM_DEVELOPER_DOC_DIR "/Developer/ADC Reference Library"
setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR "/Developer/Applications/Graphics Tools"
setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Developer/Applications/Java Tools"
setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR "/Developer/Applications/Performance Tools"
setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes"
setenv SYSTEM_DEVELOPER_TOOLS /Developer/Tools
setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Developer/ADC Reference Library/documentation/DeveloperTools"
setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes/DeveloperTools"
setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
setenv SYSTEM_LIBRARY_DIR /System/Library
setenv TARGETNAME CompteBon
setenv TARGET_BUILD_DIR /Users/jeandiet/CompteBon/build/Development
setenv TARGET_NAME CompteBon
setenv TARGET_TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build
setenv TEMP_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build
setenv TEMP_FILES_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build
setenv TEMP_FILE_DIR /Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build
setenv TEMP_ROOT /Users/jeandiet/CompteBon/build
setenv UID 501
setenv UNSTRIPPED_PRODUCT NO
setenv USER jeandiet
setenv USER_APPS_DIR /Users/jeandiet/Applications
setenv USER_LIBRARY_DIR /Users/jeandiet/Library
setenv USE_DYNAMIC_NO_PIC YES
setenv VALID_ARCHS "m68k i386 sparc hppa ppc ppc7400 ppc970 ppc64"
setenv VERBOSE_PBXCP NO
setenv VERSION_INFO_BUILDER jeandiet
setenv VERSION_INFO_STRING "\"@(#)PROGRAM:CompteBon PROJECT:CompteBon- DEVELOPER:jeandiet BUILT:\" __DATE__ \" \" __TIME__ \"\""
setenv WARNING_CFLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas"
setenv XCODE_APP_SUPPORT_DIR "/Library/Application Support/Apple/Developer Tools"
setenv YACC /usr/bin/yacc
setenv ZERO_LINK YES
/bin/sh -c
if\ [\ $BUILD_STYLE\ =\ Development\ ];\ then
\ \ \ echo\ \"Build\ Style\ =\ Development\"
\ \ \ /usr/local/bin/ppcppc\ ${INPUT_FILE_NAME}\ -Ci\ -Co\ -g\ -gl\ -O1\ -vr\ -FEbuild/${PROJECT_NAME}.build/${CONFIGURATION}/${TARGET_NAME}.build\ -o${PRODUCT_NAME}
else
\ \ \ echo\ \"Build\ Style\ =\ Deployment\"
\ \ \ /usr/local/bin/ppcppc\ ${INPUT_FILE_NAME}\ -O3\ -vr\ -Xs\ -k-prebind\ -FEbuild/${PROJECT_NAME}.build/${CONFIGURATION}/${TARGET_NAME}.build\ -o${PRODUCT_NAME}
\ \ \ strip\ build/${PROJECT_NAME}.build/${CONFIGURATION}/${TARGET_NAME}.build/${PRODUCT_NAME}
fi
mkdir\ -p\ build/${CONFIGURATION}
mv\ -f\ build/${PROJECT_NAME}.build/${CONFIGURATION}/${TARGET_NAME}.build/${PRODUCT_NAME}\ build/${CONFIGURATION}/${PRODUCT_NAME}
Build Style = Development
Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling CompteBon.pas
Compiling EmptyPlaceHolderUnit.pas
Assembling emptyplaceholderunit
Assembling comptebon
Linking build/CompteBon.build/Development/CompteBon.build/CompteBon
17 Lines compiled, 1.4 sec
Building ZeroLink launcher /Users/jeandiet/CompteBon/build/Development/CompteBon
cd /Users/jeandiet/CompteBon
setenv MACOSX_DEPLOYMENT_TARGET 10.1
/usr/bin/ld -o /Users/jeandiet/CompteBon/build/Development/CompteBon -arch ppc /System/Library/PrivateFrameworks/ZeroLink.framework/Resources/libZeroLinkAppStub.a -Wl,-all_load -L/Users/jeandiet/CompteBon/build/Development -F/Users/jeandiet/CompteBon/build/Development -Wl,-Y,1455 -framework ZeroLink -F/System/Library/PrivateFrameworks/ -Wl,-x -Wl,-unexported_symbols_list -Wl,/System/Library/PrivateFrameworks/ZeroLink.framework/Versions/A/Resources/ZeroLinkAppStub.nexp -Wl,-sectcreate -Wl,__TEXT -Wl,__zerolink -Wl,/Users/jeandiet/CompteBon/build/CompteBon.build/Development/CompteBon.build/Objects-normal/ppc/CompteBon.zerolink
/usr/bin/ld: unknown flag: -Wl,-all_load
-Wl est une option utilisée par gcc, et non par ld.
Envoie moi ton projet Xcode pour que j'y jette un oeil.
.
Merci pour ton aide. Je vais faire mieux, je vais t'envoyer mon projet, ainsi que le résultat de la compilation sous XCode 2.2 et XCode 2.3. Dans un cas la compilation est reussie et dans l'autre, il y a l'erreur que tu sais. J'y ai d'ailleurs jeté un oeil, et à part quelques petites différences dans le déroulement du script, j'ai noté que dans le cas ou il n'y a pas d'erreur (dans XCode 2.2) celui-ci n'éxecute pas la dernière partie concernant la commande ld :
-XCode 2.2 (compilation reussie) :
...
Build Style = Development
Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling FreePascaldemo.pas
Compiling EmptyPlaceHolderUnit.pas
Assembling emptyplaceholderunit
Assembling freepascaldemo
Linking build/FreePascaldemo.build/Development/FreePascaldemo.build/FreePascaldemo
17 Lines compiled, 1.2 sec
-XCode 2.3 (erreur unknown flag: -Wl,-all_load) :
...
Build Style = Development
Free Pascal Compiler version 2.0.2 [2005/11/15] for powerpc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling FreePascaldemo.pas
Compiling EmptyPlaceHolderUnit.pas
Assembling emptyplaceholderunit
Assembling freepascaldemo
Linking build/FreePascaldemo.build/Development/FreePascaldemo.build/FreePascaldemo
17 Lines compiled, 0.9 sec
Building ZeroLink launcher /Users/zenx/Desktop/FreePascaldemo/build/Development/FreePascaldemo
  cd /Users/zenx/Desktop/FreePascaldemo
  setenv MACOSX_DEPLOYMENT_TARGET 10.1
  /usr/bin/ld -o /Users/zenx/Desktop/FreePascaldemo/build/Development/FreePascaldemo -arch ppc /System/Library/PrivateFrameworks/ZeroLink.framework/Resources/libZeroLinkAppStub.a -Wl,-all_load -L/Users/zenx/Desktop/FreePascaldemo/build/Development -F/Users/zenx/Desktop/FreePascaldemo/build/Development -Wl,-Y,1455 -framework ZeroLink -F/System/Library/PrivateFrameworks/ -Wl,-x -Wl,-unexported_symbols_list -Wl,/System/Library/PrivateFrameworks/ZeroLink.framework/Versions/A/Resources/ZeroLinkAppStub.nexp -Wl,-sectcreate -Wl,__TEXT -Wl,__zerolink -Wl,/Users/zenx/Desktop/FreePascaldemo/build/FreePascaldemo.build/Development/FreePascaldemo.build/Objects-normal/ppc/FreePascaldemo.zerolink
/usr/bin/ld: unknown flag: -Wl,-all_load
Bonne chance et merci pour moi !Â
En effet il y a marqué "Linking..." dans les 2 cas (correspond au lancement du linker, donc de "ld", mais la sortie n'est pas très verbeuse dans ce cas), mais dans le 2e c'est un linking avec ZeroLink (donc pas de vrai linkage complet en fait, juste de quoi executer ton programme vite fait sur la machine de dévelopement sans attendre 3 plombes).
Cette différence (execution de ZeroLink ou pas) peut simplement être dû au fait que dans un cas tu es en mode "Debug" (Development) et dans l'autre "Release" (Deployment).
Ou que dans les réglages du projet (clic sur le projet dans "Groups & Files", pomme-i) la case "ZeroLink" est cochée dans un cas (elle devrait l'être en mode Debug, pas Release) et pas dans l'autre.
Mon hypothèse est que le projet Pascal sous Xcode 10.3 a une mauvaise définition des targets debug/development et release/deployment.
En effet, le compilateur Pascal qui est utilisé ne devrait pas utiliser ld (il a son propre outil de liage).
Il se peut qu'entre code 2.2 et 2.3, il y a eu une modification de comportement des targets, ce qui expliquerait le probléme de Zenx.
La correction serait donc de corriger le template Pascal sous 2.3 pour que tout rentre dans l'ordre.
.