Package Base Details: mmixware

Git Clone URL: https://aur.archlinux.org/mmixware.git (read-only, click to copy)
Submitter: chungy
Maintainer: chungy
Last Packager: chungy
Votes: 2
Popularity: 0.000000
First Submitted: 2015-09-18 14:39 (UTC)
Last Updated: 2021-12-24 00:15 (UTC)

Latest Comments

Gobidev commented on 2021-12-21 16:15 (UTC)

I get the following error message when trying to install mmixware:

cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wl,-allow-multiple-definition mmix-sim.c mmix-arith.o mmix-io.o -o mmix
mmix-sim.w: In function ‘trace_print’:
mmix-sim.w:2835:1: error: format not a string literal and no format arguments [-Werror=format-security]
 2835 |  case handle:@+if (o.h==0 && o.l<3) printf(stream_name[o.l]);
      | ^~~~
mmix-sim.w: In function ‘scan_option’:
mmix-sim.w:2987:1: error: format not a string literal and no format arguments [-Werror=format-security]
 2987 |     for (k=0;usage_help[k][0];k++) fprintf(stderr,usage_help[k]);
      | ^  
mmix-sim.w:2989:1: error: format not a string literal and no format arguments [-Werror=format-security]
 2989 |   }@+else@+ for (k=0;usage_help[k][1]!='b';k++) printf(usage_help[k]);
      | ^
mmix-sim.w: In function ‘main’:
mmix-sim.w:3093:1: error: format not a string literal and no format arguments [-Werror=format-security]
 3093 |   case 'h':@+ for (k=0;interactive_help[k][0];k++) printf(interactive_help[k]);
      | ^ ~~
mmix-sim.w:2846:1: error: format not a string literal and no format arguments [-Werror=format-security]
 2846 | case 's': printf(special_name[zz]);@+break;
      | ^~~~
mmix-sim.w:2848:16: error: format not a string literal and no format arguments [-Werror=format-security]
 2848 | case 'l': printf(lhs);@+break;
      |                ^~~
mmix-sim.w: In function ‘show_line’:
mmix-sim.w:1204:6: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1204 |   else freopen(file_info[cur_file].name,"r",src_file);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make: *** [Makefile:92: mmix] Error 1

y2kbugger commented on 2020-12-28 03:08 (UTC)

diff --git a/PKGBUILD b/PKGBUILD
index 8f1476d..e6b39f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,8 +25,8 @@ build() {
   cd "$pkgname-$pkgver"

   unset MAKEFLAGS
-  make {mmixal,mmix-{arith,config,doc,io,mem,pipe,sim},mmmix,mmotype}.pdf
-  make all
+  make CFLAGS=-Wl,-allow-multiple-definition {mmixal,mmix-{arith,config,doc,io,mem,pipe,sim},mmmix,mmotype}.pdf
+  make CFLAGS=-Wl,-allow-multiple-definition all
 }