gm2
[Top][All Lists]
Advanced

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

Re: A beginner's question


From: Rudolf Schubert
Subject: Re: A beginner's question
Date: Sat, 8 Apr 2023 15:27:49 +0200 (CEST)

Hi Gaius,

ah, there are two things which come to my mind:

1. I did not take care of PATH and LD_LIBRARY_PATH. These might be
important so that not the system libs are used. Might well be the
reason for the linking error I see.

2. When working with the 'original' gcc sources from
git://gcc.gnu.org/git/gcc.git. Do I still have to

git checkout devel/modula-2

as they explain at

https://www.nongnu.org/gm2/12/development.html

or would this just mess up things? I was still checking out
devel/modula-2 and perhaps I should not do this any more?


Rudolf

--
Rudolf Schubert                 \
Kirchstr. 18a                    \  mailto:rudolf@muc.de
82054 Sauerlach                   > http://www.dose.muc.de
Deutschland                      /
Tel. 08104/908311               /


On Sat, 8 Apr 2023, Gaius Mulley wrote:

> Rudolf Schubert <rudolf@muc.de> writes:
> 
> > BTW, was it to be expected that the
> >
> > make m2/stage2/cc1gm2
> >
> > in your script just did nothing because I got the message that
> > there was no rule in the Makefile?
> 
> Hi Rudolf,
> 
> That is very odd, with the current gcc git source I get:
> 
> $ cd build/gcc
> $ make m2/stage2/cc1gm2
> 
> test -d m2/gm2-compiler || /bin/bash 
> ../../gcc-read-write/gcc/../mkinstalldirs m2/gm2-compiler
> ar cr m2/gm2-compiler/gm2.a m2/gm2-compiler/FifoQueue.o 
> m2/gm2-compiler/Lists.o m2/gm2-compiler/M2ALU.o m2/gm2-compiler/M2AsmUtil.o 
> m2/gm2-compiler/M2Base.o m2/gm2-compiler/M2BasicBlock.o 
> m2/gm2-compiler/M2Batch.o m2/gm2-compiler/M2Bitset.o 
> m2/gm2-compiler/M2CaseList.o m2/gm2-compiler/M2Check.o 
> m2/gm2-compiler/M2Code.o m2/gm2-compiler/M2ColorString.o 
> m2/gm2-compiler/M2Comp.o m2/gm2-compiler/M2Const.o m2/gm2-compiler/M2Debug.o 
> m2/gm2-compiler/M2DebugStack.o m2/gm2-compiler/M2Defaults.o 
> m2/gm2-compiler/M2DriverOptions.o m2/gm2-compiler/DynamicPath.o 
> m2/gm2-compiler/PathName.o m2/gm2-compiler/M2Emit.o m2/gm2-compiler/M2Error.o 
> m2/gm2-compiler/M2FileName.o m2/gm2-compiler/M2GCCDeclare.o 
> m2/gm2-compiler/M2GenGCC.o m2/gm2-compiler/M2Graph.o 
> m2/gm2-compiler/M2LexBuf.o m2/gm2-compiler/M2MetaError.o 
> m2/gm2-compiler/M2Optimize.o m2/gm2-compiler/M2Options.o 
> m2/gm2-compiler/M2Pass.o m2/gm2-compiler/M2Preprocess.o 
> m2/gm2-compiler/M2Printf.o m2/gm2-compiler/M2Quads.o 
> m2/gm2-compiler/M2Quiet.o m2/gm2-compiler/M2Range.o 
> m2/gm2-compiler/M2Reserved.o m2/gm2-compiler/M2SSA.o 
> m2/gm2-compiler/M2Scaffold.o m2/gm2-compiler/M2Scope.o 
> m2/gm2-compiler/M2Search.o m2/gm2-compiler/M2Size.o 
> m2/gm2-compiler/M2StackAddress.o m2/gm2-compiler/M2StackWord.o 
> m2/gm2-compiler/M2Students.o m2/gm2-compiler/M2Swig.o 
> m2/gm2-compiler/M2System.o m2/gm2-compiler/NameKey.o 
> m2/gm2-compiler/ObjectFiles.o m2/gm2-compiler/Output.o 
> m2/gm2-compiler/P0SymBuild.o m2/gm2-compiler/P1SymBuild.o 
> m2/gm2-compiler/P2SymBuild.o m2/gm2-compiler/P3SymBuild.o 
> m2/gm2-compiler/PCSymBuild.o m2/gm2-compiler/Sets.o 
> m2/gm2-compiler/SymbolConversion.o m2/gm2-compiler/SymbolKey.o 
> m2/gm2-compiler/SymbolTable.o m2/gm2-compiler/bnflex.o \
>                     m2/gm2-compiler/P2Build.o m2/gm2-compiler/P3Build.o 
> m2/gm2-compiler/PHBuild.o m2/gm2-compiler/PCBuild.o m2/gm2-compiler/P1Build.o 
> m2/gm2-compiler/P0SyntaxCheck.o
> ranlib m2/gm2-compiler/gm2.a
> test -d m2/gm2-libs || /bin/bash ../../gcc-read-write/gcc/../mkinstalldirs 
> m2/gm2-libs
> ar cr m2/gm2-libs/libgm2.a m2/gm2-libs/ASCII.o m2/gm2-libs/Args.o 
> m2/gm2-libs/Assertion.o m2/gm2-libs/Break.o m2/gm2-libs/Builtins.o 
> m2/gm2-libs/COROUTINES.o m2/gm2-libs/CmdArgs.o m2/gm2-libs/Debug.o 
> m2/gm2-libs/DynamicStrings.o m2/gm2-libs/Environment.o m2/gm2-libs/FIO.o 
> m2/gm2-libs/FormatStrings.o m2/gm2-libs/FpuIO.o m2/gm2-libs/GetOpt.o 
> m2/gm2-libs/IO.o m2/gm2-libs/Indexing.o m2/gm2-libs/LMathLib0.o 
> m2/gm2-libs/LegacyReal.o m2/gm2-libs/M2Dependent.o m2/gm2-libs/M2EXCEPTION.o 
> m2/gm2-libs/M2RTS.o m2/gm2-libs/MathLib0.o m2/gm2-libs/MemUtils.o 
> m2/gm2-libs/NumberIO.o m2/gm2-libs/PushBackInput.o m2/gm2-libs/RTExceptions.o 
> m2/gm2-libs/RTint.o m2/gm2-libs/SArgs.o m2/gm2-libs/SEnvironment.o 
> m2/gm2-libs/SFIO.o m2/gm2-libs/SMathLib0.o m2/gm2-libs/SYSTEM.o 
> m2/gm2-libs/Scan.o m2/gm2-libs/StdIO.o m2/gm2-libs/Storage.o 
> m2/gm2-libs/StrCase.o m2/gm2-libs/StrIO.o m2/gm2-libs/StrLib.o 
> m2/gm2-libs/StringConvert.o m2/gm2-libs/SysStorage.o m2/gm2-libs/TimeString.o 
> \
>                     m2/gm2-libs/UnixArgs.o m2/gm2-libs/dtoa.o 
> m2/gm2-libs/ldtoa.o \
>                     m2/gm2-libs/Selective.o m2/gm2-libs/SysExceptions.o 
> m2/gm2-libs/cgetopt.o m2/gm2-libs/choosetemp.o m2/gm2-libs/errno.o 
> m2/gm2-libs/host.o m2/gm2-libs/termios.o m2/gm2-libs/wrapc.o
> ranlib m2/gm2-libs/libgm2.a
> test -d m2/stage2 || /bin/bash ../../gcc-read-write/gcc/../mkinstalldirs 
> m2/stage2
> g++ -no-pie   -g      -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings 
> -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes  -Wold-style-definition 
> -Wc++-compat -fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc   
> -o m2/stage2/cc1gm2 m2/gm2-lang.o m2/stor-layout.o m2/m2pp.o 
> m2/gm2-gcc/m2assert.o m2/gm2-gcc/m2block.o m2/gm2-gcc/m2builtins.o 
> m2/gm2-gcc/m2except.o m2/gm2-gcc/m2color.o m2/gm2-gcc/m2configure.o 
> m2/gm2-gcc/m2convert.o m2/gm2-gcc/m2decl.o m2/gm2-gcc/m2expr.o 
> m2/gm2-gcc/m2linemap.o m2/gm2-gcc/m2statement.o m2/gm2-gcc/m2type.o 
> m2/gm2-gcc/m2tree.o m2/gm2-gcc/m2treelib.o m2/gm2-gcc/m2top.o 
> m2/gm2-gcc/m2misc.o m2/gm2-gcc/init.o m2/gm2-compiler/m2flex.o \
>                             attribs.o \
>                               m2/gm2-compiler/gm2.a m2/gm2-libs/libgm2.a  \
>                               libbackend.a main.o libcommon-target.a 
> libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a 
> ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a 
> ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  
> m2/gm2-gcc/rtegraph.o \
>                               -L/home/gaius/GCC/build/./isl/.libs  -lisl 
> -L/home/gaius/GCC/build/./gmp/.libs -L/home/gaius/GCC/build/./mpfr/src/.libs 
> -L/home/gaius/GCC/build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl  
> -L./../zlib -lz  ../x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.a -lm
> 
> 
> regards,
> Gaius
> 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]