8000 ld misinterprets `-object_path_lto` flag: `error: unable to open executable 'bject_path_lto'` · Issue #13 · iains/darwin-xtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ld misinterprets -object_path_lto flag: error: unable to open executable 'bject_path_lto' #13

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

Open
barracuda156 opened this issue Apr 12, 2025 · 6 comments

Comments

@barracuda156
Copy link
/opt/local/bin/gcc-mp-14 -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc  -flto -Wl,-export_dynamic -Wl,-object_path_lto,"Modules/_[contextvars.cpython-313-darwin.so](http://contextvars.cpython-313-darwin.so/)".lto -g   Modules/_contextvarsmodule.o   -o Modules/_[contextvars.cpython-313-darwin.so](http://contextvars.cpython-313-darwin.so/)
/opt/local/bin/gcc-mp-14 -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc  -flto -Wl,-export_dynamic -Wl,-object_path_lto,"Modules/_[csv.cpython-313-darwin.so](http://csv.cpython-313-darwin.so/)".lto -g   Modules/_csv.o   -o Modules/_[csv.cpython-313-darwin.so](http://csv.cpython-313-darwin.so/)
ld(29920) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29920) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29919) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29919) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29922) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29922) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29915) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29915) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29923) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29923) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29921) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29921) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29953) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29953) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
error: unable to open executable 'bject_path_lto'
collect2: fatal error: /usr/bin/dsymutil returned 1 exit status
compilation terminated.
make: *** [Modules/_[contextvars.cpython-313-darwin.so](http://contextvars.cpython-313-darwin.so/)] Error 1
make: *** Waiting for unfinished jobs....
ld(29957) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29957) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
error: unable to open executable 'bject_path_lto'
collect2: fatal error: /usr/bin/dsymutil returned 1 exit status
compilation terminated.
make: *** [Modules/_[bisect.cpython-313-darwin.so](http://bisect.cpython-313-darwin.so/)] Error 1
ld(29964) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29964) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
error: unable to open executable 'bject_path_lto'
collect2: fatal error: /usr/bin/dsymutil returned 1 exit status
compilation terminated.
make: *** [Modules/_[csv.cpython-313-darwin.so](http://csv.cpython-313-darwin.so/)] Error 1
ld(29969) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29969) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
error: unable to open executable 'bject_path_lto'
collect2: fatal error: /usr/bin/dsymutil returned 1 exit status
compilation terminated.
make: *** [Modules/[array.cpython-313-darwin.so](http://array.cpython-313-darwin.so/)] Error 1
ld(29971) malloc: *** error for object 0xa00a6754: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
ld(29971) malloc: *** error for object 0xa00a67c4: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
error: unable to open executable 'bject_path_lto'
collect2: fatal error: /usr/bin/dsymutil returned 1 exit status
compilation terminated.
make: *** [Modules/_[asyncio.cpython-313-darwin.so](http://asyncio.cpython-313-darwin.so/)] Error 1
@iains
Copy link
Owner
iains commented Apr 12, 2025

what OS version?
and what xtools version?

error: unable to open executable 'bject_path_lto'
collect2: fatal error: /usr/bin/dsymutil returned 1 exit status

seems to suggest that the program reporting the problem is dsymutil

@barracuda156
Copy link
Author
barracuda156 commented Apr 12, 2025

This is 10.6.8 (ppc, but arch should be irrelevant). Wonder why it uses dsymutil from system prefix. I can try using the one from LLVM 7.1.1.
I tried with xtools 1.1.0 and 3.3.0.

@iains
Copy link
Owner
iains commented Apr 12, 2025

-Wl,-object_path_lto,"Modules/_[contextvars.cpython-313-darwin.so](http://contextvars.cpython-313-darwin.so/)".lto

looks weird to me - AFAIK that should be a path in your build.

@barracuda156
Copy link
Author

-Wl,-object_path_lto,"Modules/_[contextvars.cpython-313-darwin.so](http://contextvars.cpython-313-darwin.so/)".lto

looks weird to me - AFAIK that should be a path in your build.

I think so, but this is what Python build system does. It is not something I messed with manually. I can check how it looks on x86 with clang.

@iains
Copy link
Owner
iains commented Apr 13, 2025

I have just pushed https://github.com/iains/darwin-xtools/tree/darwin-xtools-0-7-0p0 - prerelease. I would recommend using that on 10.5 .. 10.8 and strongly recommend using it for any powerpc/powerpc64 stuff.

@barracuda156
Copy link
Author

@iains Thank you very much! I will try that and, provided no issues emerge, will switch to this version by default.

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
0