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

missing byteorder #10

Closed
fperrad opened this issue Oct 4, 2014 · 6 comments
Closed

missing byteorder #10

fperrad opened this issue Oct 4, 2014 · 6 comments
Assignees

Comments

@fperrad
Copy link
Contributor

fperrad commented Oct 4, 2014

BuildRoot just switched on Perl 5.20.1 & perl-cross 0.9.2.
Our autobuilders (http://autobuild.buildroot.org/?reason=perl-5.20.1) report many failures on big endian architecture.

../../config.h:982:19: error: invalid suffix "x" on integer constant
 #define BYTEORDER 0x /* large digits for MSB */
                   ^
../../perl.h:3477:30: note: in expansion of macro `BYTEORDER`
 #elif BYTEORDER == 0x4321 || BYTEORDER == 0x87654321
                              ^
In file included from DynaLoader.xs:122:0:
../../perl.h:3486:4: error: #error "Unsupported byteorder"
 #  error "Unsupported byteorder"
    ^
@fperrad
Copy link
Contributor Author

fperrad commented Oct 5, 2014

I found this workaround http://patchwork.ozlabs.org/patch/396615/

@arsv
Copy link
Owner

arsv commented Oct 6, 2014

Hinting is definitely ok in this case, either multiarch or byteorder. The test I put there is rather fragile.

However, it did work, and I assume it worked for 5.20.0.
Looking at the problem now, chances are it can be fixed without using explicit hints.

@arsv arsv self-assigned this Oct 6, 2014
@arsv
Copy link
Owner

arsv commented Oct 8, 2014

Ok, fixed I think, at least for powerpc.
Turns out its data section is named .sdata instead of .data

@arsv
Copy link
Owner

arsv commented Oct 8, 2014

Checked nios, same problem there. So the fix should work for both.

@fperrad
Copy link
Contributor Author

fperrad commented Oct 11, 2014

Tested with powerpc.

It works now. Thanks

@arsv
Copy link
Owner

arsv commented Oct 14, 2014

Ok, that's good. Tagged it as 0.9.3, along with perl version change to 5.20.1.

@arsv arsv closed this as completed Oct 14, 2014
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