Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1365193 - [acpica-tools] error: cast from pointer to integer of different size
Summary: [acpica-tools] error: cast from pointer to integer of different size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: acpica-tools
Version: rawhide
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Al Stone
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2016-08-08 15:11 UTC by Dan Horák
Modified: 2020-02-24 17:23 UTC (History)
2 users (show)

Fixed In Version: acpica-tools-20160831-1.fc25 acpica-tools-20160831-1.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-20 17:09:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dan Horák 2016-08-08 15:11:49 UTC
we see following error when building latest acpica-tools on Fedora/s390x

...
gcc -c -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_ASL_COMPILER -I../../../source/compiler -Iobj -fPIC -pie -Wall -Werror -oobj/aslcompilerlex.o obj/aslcompilerlex.c
gcc -c -D_CYGWIN -D_GNU_SOURCE -I../../../source/include -DACPI_ASL_COMPILER -I../../../source/compiler -Iobj -fPIC -pie -Wall -Werror -oobj/aslcompilerparse.o obj/aslcompilerparse.c
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y: In function 'AslCompilerparse':
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1066:62: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     | PARSEOP_NAMESTRING            {$$ = TrCreateValuedLeafNode (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) $1);}
                                                              ^
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1067:62: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     | PARSEOP_IO                    {$$ = TrCreateValuedLeafNode (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "IO");}
                                                              ^
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1068:62: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     | PARSEOP_DMA                   {$$ = TrCreateValuedLeafNode (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "DMA");}
                                                              ^
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1069:62: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     | PARSEOP_IRQ                   {$$ = TrCreateValuedLeafNode (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "IRQ");}
                                                              ^
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1070:62: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
     | PARSEOP_FOR                   {$$ = TrCreateValuedLeafNode (PARSEOP_NAMESTRING, (ACPI_NATIVE_INT) "FOR");}
                                                              ^
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1081:45: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
                                             (ACPI_NATIVE_INT) AslCompilerlval.s);}
                                             ^
/builddir/build/BUILD/acpica-unix2-20160729/generate/unix/iasl/obj/aslcompiler.y:1438:41: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
                                         (ACPI_NATIVE_INT) AslCompilerlval.s);}
                                         ^
cc1: all warnings being treated as errors
...

please see http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2312985 for a complete log


Version-Release number of selected component (if applicable):
acpica-tools-20160729-1.fc26

Comment 1 Dan Horák 2016-09-01 06:42:11 UTC
Al, can you take a look on these, please? It's blocking new builds of qemu that depends on acpica-tools for its x86 emulators.

Comment 2 Al Stone 2016-09-01 22:44:43 UTC
(In reply to Dan Horák from comment #1)
> Al, can you take a look on these, please? It's blocking new builds of qemu
> that depends on acpica-tools for its x86 emulators.

Please try the packages in this scratch build:

http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2334332

It turns out s390x was not being recognized as a 64-bit platform, so added a fix for that and it now at least builds.  If you find this works out okay, I'll make it the official version.

Comment 3 Al Stone 2016-09-01 22:56:19 UTC
(In reply to Al Stone from comment #2)
> (In reply to Dan Horák from comment #1)
> > Al, can you take a look on these, please? It's blocking new builds of qemu
> > that depends on acpica-tools for its x86 emulators.
> 
> Please try the packages in this scratch build:
> 
> http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2334332
> 
> It turns out s390x was not being recognized as a 64-bit platform, so added a
> fix for that and it now at least builds.  If you find this works out okay,
> I'll make it the official version.

Forgot to click the needinfo response with this comment....

Comment 4 Dan Horák 2016-09-02 07:12:19 UTC
A good news, thanks :-)

Comment 5 Fedora Update System 2016-09-02 20:59:22 UTC
acpica-tools-20160831-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8389220940

Comment 6 Fedora Update System 2016-09-02 20:59:36 UTC
acpica-tools-20160831-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-dd76f56b0b

Comment 7 Fedora Update System 2016-09-04 01:21:45 UTC
acpica-tools-20160831-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-dd76f56b0b

Comment 8 Fedora Update System 2016-09-04 01:24:06 UTC
acpica-tools-20160831-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8389220940

Comment 9 Fedora Update System 2016-09-20 17:09:16 UTC
acpica-tools-20160831-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-09-22 00:26:23 UTC
acpica-tools-20160831-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.