Jump to content

Strange Errors (On-Device Theos Install)


Go to solution Solved by Rook,

28 posts in this topic

Recommended Posts

Posted

I can compile it without an issue:


Ls-iPad:~/tes root# make package
Making all for tweak tes...
 Preprocessing tes.x...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling tes.x...
 Linking tweak tes...
 Stripping tes...
 Signing tes...
Making stage for tweak tes...
dpkg-deb: building package `com.yourcompany.tes' in `Packages/com.yourcompany.tes_0.0.1-1_iphoneos-arm.deb'.

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

Posted

 

I can compile it without an issue:


Ls-iPad:~/tes root# make package
Making all for tweak tes...
 Preprocessing tes.x...
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
Constants from lexical variables potentially modified elsewhere are deprecated at /private/var/theos/bin/lib/aliased.pm line 42.
 Compiling tes.x...
 Linking tweak tes...
 Stripping tes...
 Signing tes...
Making stage for tweak tes...
dpkg-deb: building package `com.yourcompany.tes' in `Packages/com.yourcompany.tes_0.0.1-1_iphoneos-arm.deb'.

His theos is probably broken.

  • Solution
Posted

His theos is probably broken.

That's what it comes down to if I can compile the same project without the error. :)

Posted

Reinstall theos using this

 

This helped get rid of a few errors, but now I'm stuck on:

Zanes-iPhone:/User/Documents/iOSTweaks/tes root# make package messages=yes
Making all for tweak tes...
make -f Makefile --no-print-directory --no-keep-going \
		internal-library-compile \
		_THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=tes _THEOS_CURRENT_OPERATION=compile \
		THEOS_BUILD_DIR="/User/Documents/iOSTweaks/tes/Packages" _THEOS_MAKE_PARALLEL=yes
clang++ -L/User/Documents/iOSTweaks/tes/theos/lib -lobjc -framework Foundation -framework CoreFoundation  -framework Foundation     -lsubstrate -dynamiclib -install_name "/Library/MobileSubstrate/DynamicLibraries/tes.dylib"  -isysroot "/User/Documents/iOSTweaks/tes/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -multiply_defined suppress   -o "/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned" /User/Documents/iOSTweaks/tes/Packages/obj/tes.x.940a2e73.o
clang++: error: unable to execute command: posix_spawn failed: Bad executable (or shared library)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tes.all.tweak.variables] Error 2

That's what it comes down to if I can compile the same project without the error. :)

 

I know the project works, it's my environment that's broken.

Posted

This helped get rid of a few errors, but now I'm stuck on:

Zanes-iPhone:/User/Documents/iOSTweaks/tes root# make package messages=yes
Making all for tweak tes...
make -f Makefile --no-print-directory --no-keep-going \
		internal-library-compile \
		_THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=tes _THEOS_CURRENT_OPERATION=compile \
		THEOS_BUILD_DIR="/User/Documents/iOSTweaks/tes/Packages" _THEOS_MAKE_PARALLEL=yes
clang++ -L/User/Documents/iOSTweaks/tes/theos/lib -lobjc -framework Foundation -framework CoreFoundation  -framework Foundation     -lsubstrate -dynamiclib -install_name "/Library/MobileSubstrate/DynamicLibraries/tes.dylib"  -isysroot "/User/Documents/iOSTweaks/tes/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -multiply_defined suppress   -o "/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned" /User/Documents/iOSTweaks/tes/Packages/obj/tes.x.940a2e73.o
clang++: error: unable to execute command: posix_spawn failed: Bad executable (or shared library)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tes.all.tweak.variables] Error 2

 

I know the project works, it's my environment that's broken.

Try installing the packages from: apt.openios.org repo

Posted

Try installing the packages from: apt.openios.org repo

 

I replaced all the packages that OpeniOS offered with the ones I currently had installed and I'm getting the same error.

Zanes-iPhone:/User/Documents/iOSTweaks/tes root# make package messages=yes
Making all for tweak tes...
make -f Makefile --no-print-directory --no-keep-going \
	internal-library-compile \
	_THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=tes _THEOS_CURRENT_OPERATION=compile \
	THEOS_BUILD_DIR="/User/Documents/iOSTweaks/tes/Packages" _THEOS_MAKE_PARALLEL=yes
clang++ -L/User/Documents/iOSTweaks/tes/theos/lib -lobjc -framework Foundation -framework CoreFoundation  -framework Foundation     -lsubstrate -dynamiclib -install_name "/Library/MobileSubstrate/DynamicLibraries/tes.dylib"  -isysroot "/User/Documents/iOSTweaks/tes/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -multiply_defined suppress   -o "/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned" /User/Documents/iOSTweaks/tes/Packages/obj/tes.x.940a2e73.o
/bin/sh: clang++: command not found
/User/Documents/iOSTweaks/tes/theos/makefiles/instance/library.mk:27: recipe for target '/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned' failed
make[2]: *** [/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned] Error 127
/User/Documents/iOSTweaks/tes/theos/makefiles/instance/library.mk:19: recipe for target 'internal-library-all_' failed
make[1]: *** [internal-library-all_] Error 2
/User/Documents/iOSTweaks/tes/theos/makefiles/master/rules.mk:54: recipe for target 'tes.all.tweak.variables' failed
make: *** [tes.all.tweak.variables] Error 2
Posted

 

I replaced all the packages that OpeniOS offered with the ones I currently had installed and I'm getting the same error.

Zanes-iPhone:/User/Documents/iOSTweaks/tes root# make package messages=yes
Making all for tweak tes...
make -f Makefile --no-print-directory --no-keep-going \
	internal-library-compile \
	_THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=tes _THEOS_CURRENT_OPERATION=compile \
	THEOS_BUILD_DIR="/User/Documents/iOSTweaks/tes/Packages" _THEOS_MAKE_PARALLEL=yes
clang++ -L/User/Documents/iOSTweaks/tes/theos/lib -lobjc -framework Foundation -framework CoreFoundation  -framework Foundation     -lsubstrate -dynamiclib -install_name "/Library/MobileSubstrate/DynamicLibraries/tes.dylib"  -isysroot "/User/Documents/iOSTweaks/tes/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -multiply_defined suppress   -o "/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned" /User/Documents/iOSTweaks/tes/Packages/obj/tes.x.940a2e73.o
/bin/sh: clang++: command not found
/User/Documents/iOSTweaks/tes/theos/makefiles/instance/library.mk:27: recipe for target '/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned' failed
make[2]: *** [/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned] Error 127
/User/Documents/iOSTweaks/tes/theos/makefiles/instance/library.mk:19: recipe for target 'internal-library-all_' failed
make[1]: *** [internal-library-all_] Error 2
/User/Documents/iOSTweaks/tes/theos/makefiles/master/rules.mk:54: recipe for target 'tes.all.tweak.variables' failed
make: *** [tes.all.tweak.variables] Error 2

 

 

"/bin/sh: clang++: command not found"

 

Did the packages you installed contain Clang? You probably uninstall the old package LLVM+Clang

Posted

This helped get rid of a few errors, but now I'm stuck on:

Zanes-iPhone:/User/Documents/iOSTweaks/tes root# make package messages=yes
Making all for tweak tes...
make -f Makefile --no-print-directory --no-keep-going \
		internal-library-compile \
		_THEOS_CURRENT_TYPE=tweak THEOS_CURRENT_INSTANCE=tes _THEOS_CURRENT_OPERATION=compile \
		THEOS_BUILD_DIR="/User/Documents/iOSTweaks/tes/Packages" _THEOS_MAKE_PARALLEL=yes
clang++ -L/User/Documents/iOSTweaks/tes/theos/lib -lobjc -framework Foundation -framework CoreFoundation  -framework Foundation     -lsubstrate -dynamiclib -install_name "/Library/MobileSubstrate/DynamicLibraries/tes.dylib"  -isysroot "/User/Documents/iOSTweaks/tes/theos/sdks/iPhoneOS8.1.sdk" -arch armv7 -arch armv7s -arch arm64 -D__IPHONE_OS_VERSION_MIN_REQUIRED=__IPHONE_8_1 -miphoneos-version-min=8.1 -multiply_defined suppress   -o "/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned" /User/Documents/iOSTweaks/tes/Packages/obj/tes.x.940a2e73.o
clang++: error: unable to execute command: posix_spawn failed: Bad executable (or shared library)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/User/Documents/iOSTweaks/tes/Packages/obj/tes.dylib.64873355.unsigned] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [tes.all.tweak.variables] Error 2

 

I know the project works, it's my environment that's broken.

Use the packages option in setuptheos ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines