NetBSD-Bugs archive

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

bin/53762: tradcpp doesn't propagate __aarch64__



>Number:         53762
>Category:       bin
>Synopsis:       tradcpp doesn't propagate __aarch64__
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 05 19:05:00 +0000 2018
>Originator:     Dmitry Kalinkin
>Release:        
>Organization:
>Environment:
aarch64-linux
>Description:
The title says it all. This breaks imake support of AArch64 because they detect it in a following way (from xorg-cf-files-1.0.6/lib/X11/config/Imake.cf):

# if defined(__aarch64__)
#   define AArch64Architecture
#   undef __aarch64__
# endif

I apologise if I'm reporting the bug incorrectly, I was directed here from this page: ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/tradcpp/README.html
>How-To-Repeat:
I don't run any machine with aarch64, but I imagine it would be along the lines of:

cat > test.c <<EOF
#ifndef __aarch64__
#error "Oh no!"
#endif
>Fix:
diff a/config.h b/config.h
--- a/config.h
+++ b/config.h
@@ -124,6 +124,8 @@
 #define CONFIG_CPU "__ppc64__"
 #elif defined(__ARM__)
 #define CONFIG_CPU "__ARM__"
+#elif defined(__aarch64__)
+#define CONFIG_CPU "__aarch64__"
 #else
 /* let it go */
 #endif



Home | Main Index | Thread Index | Old Index