pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/58591: AIX pkgsrc build fail with worng object format ELF



>Number:         58591
>Category:       pkg
>Synopsis:       AIX pkgsrc build fail with worng object format ELF
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 13 17:40:00 +0000 2024
>Originator:     Vicente Chaves de Melo
>Release:        pkgsrc-2024Q2
>Organization:
>Environment:
AIX plsasmbtest 2 7 00F9EC384C00
>Description:
AIX build with follo error:

ERROR: [depends.mk] Installed package digest-20220214 has an
ERROR:     object format ``XCOFF'' which differs from ``ELF''.  Please
ERROR:     update the digest-20220214 package to ELF.
*** Error code 1

>How-To-Repeat:
Install pkgsrc 2024Q2 on AIX 7.2 + GCC10 from IBM AIXTOOLBOX and try bootstrap

export CC=/opt/freeware/bin/gcc
export LIBS=-lpthread

./bootstrap --prefix=/opt/pkg --pkgdbdir=/var/opt/pkg
>Fix:
 cvs diff
Index: AIX.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/platform/AIX.mk,v
retrieving revision 1.43
diff -u -r1.43 AIX.mk
--- AIX.mk      1 Nov 2017 15:29:09 -0000       1.43
+++ AIX.mk      13 Aug 2024 17:24:58 -0000
@@ -15,6 +15,8 @@
 .endif
 SU?=           /usr/bin/su
 TYPE?=         type                            # Shell builtin
+OBJECT_FMT=            XCOFF
+NATIVE_OBJECT_FMT=     XCOFF

 CPP_PRECOMP_FLAGS?=    # unset
 DEF_UMASK?=            0022



Home | Main Index | Thread Index | Old Index