pkgsrc-Bugs archive

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

pkg/48823: building xtrs on big endian arch's fails; requires var to be set



>Number:         48823
>Category:       pkg
>Synopsis:       building xtrs on big endian arch's fails; requires var to be 
>set
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 20 10:50:00 +0000 2014
>Originator:     Ben Gergely
>Release:        current Tue May 20 10:42:50 UTC 2014
>Organization:
>Environment:
NetBSD Spackintosh 6.99.41 NetBSD 6.99.41 (PISMO) #2: Fri May 16 03:17:59 UTC 
2014  root@Spackintosh:/usr/src/sys/arch/macppc/compile/PISMO macppc
>Description:
When building on a big endian arch the package builds/installs fine but the 
user is greeted with: xtrs fatal error: Program compiled with wrong ENDIAN 
value -- adjust the Makefile.local, type "rm *.o", recompile, and try again.


>How-To-Repeat:
cd /usr/pkgsrc/emulators/xtrs ; make ; ./work/xtrs-4.9d/xtrs
>Fix:
$NetBSD$: Makefile.local

--- Makefile.local      2014-05-20 09:45:37.000000000 +0000
+++ /tmp/Makefile.local
@@ -7,7 +7,9 @@
 # if the processor has big-endian byte ordering.  If you're not sure what
 # to do, don't worry -- the program will complain if it's not right.

-# ENDIAN = -Dbig_endian
+.if (${MACHINE_ARCH} == powerpc) || (${MACHINE_ARCH} == sparc)
+  ENDIAN = -Dbig_endian
+.endif

 # If you would like the TRS-80 ROM to be built into the application,
 # use the following lines (with the appropriate file names).  You can



Home | Main Index | Thread Index | Old Index