Skip to content
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

Problem compiling ffi part of build on AIX 5.3. #49968

Closed
dbyrne mannequin opened this issue Apr 7, 2009 · 6 comments
Closed

Problem compiling ffi part of build on AIX 5.3. #49968

dbyrne mannequin opened this issue Apr 7, 2009 · 6 comments
Labels
build The build process and cross-build topic-ctypes

Comments

@dbyrne
Copy link
Mannequin

dbyrne mannequin commented Apr 7, 2009

BPO 5718
Nosy @loewis, @skrah

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-07-24.13:06:47.352>
created_at = <Date 2009-04-07.15:15:42.034>
labels = ['ctypes', 'build']
title = 'Problem compiling ffi part of build on AIX 5.3.'
updated_at = <Date 2014-07-24.13:06:47.350>
user = 'https://bugs.python.org/dbyrne'

bugs.python.org fields:

activity = <Date 2014-07-24.13:06:47.350>
actor = 'skrah'
assignee = 'none'
closed = True
closed_date = <Date 2014-07-24.13:06:47.352>
closer = 'skrah'
components = ['ctypes']
creation = <Date 2009-04-07.15:15:42.034>
creator = 'dbyrne'
dependencies = []
files = []
hgrepos = []
issue_num = 5718
keywords = []
message_count = 6.0
messages = ['85714', '85737', '220423', '223754', '223830', '223832']
nosy_count = 6.0
nosy_names = ['loewis', 'sable', 'dbyrne', 'skrah', 'BreamoreBoy', 'David.Edelsohn']
pr_nums = []
priority = 'low'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue5718'
versions = ['Python 2.6']

@dbyrne
Copy link
Mannequin Author

dbyrne mannequin commented Apr 7, 2009

I am using AIX 5.3 xlc 9.0. I am unable to get the libffi section to
build. It also happens with the separate libffi code, so I will try to
report there as well. I get the following:

cc_r -qlanglvl=extc89 -DNDEBUG -O -I.
-I/appl/bwc/src/Python-2.6.1/./Include
-Ibuild/temp.aix-5.3-2.6/libffi/include -Ibuild/temp.aix-5.3-2.6/libffi
-I/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src
-I/appl/bwc/local2/include -I. -IInclude -I./Include
-I/usr/local/include -I/appl/bwc/src/Python-2.6.1/Include
-I/appl/bwc/src/Python-2.6.1 -c
/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src/powerpc/aix_closure.S
-o
build/temp.aix-5.3-2.6/appl/bwc/src/Python-2.6.1/Modules/_ctypes/libffi/src/powerpc/aix_closure.o
Assembler:
/tmp/xlcS00-Mgqd.s: line 111: undefined symbol ".ffi_closure_helper_DARWIN"
/tmp/xlcS00-Mgqd.s: line 111: illegal expression type for branch address

@dbyrne dbyrne mannequin assigned theller Apr 7, 2009
@dbyrne dbyrne mannequin added topic-ctypes build The build process and cross-build labels Apr 7, 2009
@loewis
Copy link
Mannequin

loewis mannequin commented Apr 7, 2009

Can you provide a patch? If not, chances are high that no action is taken.

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jun 13, 2014

As we're now on 3.5, AIX is up to 7.1 and there's no patch can we close this one as out of date?

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jul 23, 2014

@david what is your opinion on this issue?

@DavidEdelsohn
Copy link
Mannequin

DavidEdelsohn mannequin commented Jul 24, 2014

ffi_closure_helper_DARWIN should have been declared "extern" in the assembly file. This has been fixed in more recent versions of libffi and imported into more recent versions of CPython, including 2.7.

.extern .ffi_closure_helper_DARWIN

Is it worth updating libffi.diff to insert the appropriate fix in 2.6 or not?

@skrah
Copy link
Mannequin

skrah mannequin commented Jul 24, 2014

Thanks, David. If this is fixed in 2.7 we can close the issue.

@skrah skrah mannequin closed this as completed Jul 24, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build topic-ctypes
Projects
None yet
Development

No branches or pull requests

1 participant