[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] [GM2] compiler flag "-fmakeall" not working?
From: |
Georg Lokowandt |
Subject: |
[Gm2] [GM2] compiler flag "-fmakeall" not working? |
Date: |
Wed, 21 Jun 2017 23:38:44 +0200 |
Hi Gaius, all,
when I try to use the above flag, the generated makefile is invalid and
compilation fails. To reproduce the error, I followed the steps in the
documentation here:
http://www.nongnu.org/gm2/example_usage.html
The output is below, the generated makefile is attached. Calling gm2
without "-fmakeall" works perfectly.
Can someone please try to reproduce the problem on other platforms /
installations? I executed it on Ubuntu 16.4 on an intel machine with
gm2 1.2.0 (on top of gcc 5.2.0) from the tarball.
Many thanks and kind regards,
Georg
----------------
gm2 -version
GNU Modula-2 1.2.0 (20170512)
grafted onto GCC 5.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv2: GNU GPL version 2 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
gm2 -v -g -I. -fmakeall hello.mod
Using built-in specs.
COLLECT_GCC=gm2
COLLECT_LTO_WRAPPER=/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../gm2/gcc-versionno/configure
--enable-languages=c,c++,gm2 --prefix=/opt/gm2
--libexecdir=/usr/lib/gm2/libexec --infodir=/opt/gm2/share/info
--mandir=/opt/gm2/share/man --enable-threads=posix --enable-clocale=gnu
--disable-multilib --disable-bootstrap --enable-checking
--enable-libgm2 --build=x86_64-linux-gnu --host=x86_64-linux-gnu Thread
model: posix gcc version 5.2.0 (GCC) COLLECT_GCC_OPTIONS='-fonlylink'
'-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic'
'-march=x86-64' /usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0/gm2m
-nolink -B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0 -fgm2begin
-fmakeall0 -B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0 -g -v
-fonlylink -fobject-path=. -ftarget-ar=/usr/bin/x86_64-linux-gnu-ar
-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib -fmakeall -I.
-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim -fgm2end
-o /tmp/ccAXshzY.m hello.mod COLLECT_GCC_OPTIONS='-fonlylink' '-I.'
'-fobject-path=.' '-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64'
COLLECT_GCC_OPTIONS='-fonlylink' '-I.' '-fobject-path=.'
'-I/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-ftarget-ar=/usr/bin/x86_64-linux-gnu-ar'
'-ftarget-ranlib=/usr/bin/x86_64-linux-gnu-ranlib'
'-B/usr/lib/gm2/libexec/gcc//x86_64-linux-gnu/5.2.0' '-x' 'modula-2'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim'
'-L/opt/gm2/lib/gcc/x86_64-linux-gnu/5.2.0/m2/pim' '-shared-libgcc'
'-v' '-g' '-fmakeall' '-mtune=generic' '-march=x86-64' make -r
-f /tmp/ccAXshzY.m /tmp/ccAXshzY.m:3: *** recipe commences before first
target. Stop.
hello.m
Description: Text Data
- [Gm2] [GM2] compiler flag "-fmakeall" not working?,
Georg Lokowandt <=