I am experimenting a bit with gpc and gcc:
[G4:~/gnu/testgpc/demos] adriaan% gcc hello.pas gcc: Internal GPC problem: internal option `--amtmpfile' not given
Is this a compiler, configure or install problem ? Or is it a non-feature ?
In more detail:
[G4:~/gnu/testgpc/demos] adriaan% gcc -v hello.pas Reading specs from /Developer/Pascal/gpc321d3/lib/gcc-lib/powerpc-apple-darwin6.3/3.2.1/ specs Configured with: ../gpc-3.2.1/configure --enable-languages=pascal,c --prefix=/Developer/Pascal/gpc321d3 Thread model: single gcc version 3.2.1
/Developer/Pascal/gpc321d3/lib/gcc-lib/powerpc-apple-darwin6.3/3.2.1/ gpcpp -v -iprefix /usr/bin/../lib/gcc-lib/powerpc-apple-darwin6.3/3.2.1/ -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=1 -D__BITS_BIG_ENDIAN__=1 -D__BYTES_BIG_ENDIAN__=1 -D__WORDS_BIG_ENDIAN__=1 -D__NEED_NO_ALIGNMENT__=1 -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__ppc__ -D__POWERPC__ -D__NATURAL_ALIGNMENT__ -D__MACH__ -D__BIG_ENDIAN__ -D__APPLE__ -D__NO_INLINE__ -D__APPLE_CC__=999 -D__DYNAMIC__ hello.pas /var/tmp//ccD97Waf.i GNU Pascal Compiler PreProcessor version 20021128, based on gcc-3.2.1 (Darwin/PowerPC) gcc: Internal GPC problem: internal option `--amtmpfile' not given
[G4:~/gnu/testgpc/demos] adriaan% gpc -v Reading specs from /Developer/Pascal/gpc321d3/lib/gcc-lib/powerpc-apple-darwin6.3/3.2.1/ specs Configured with: ../gpc-3.2.1/configure --enable-languages=pascal,c --prefix=/Developer/Pascal/gpc321d3 Thread model: single gpc version 20021128, based on gcc-3.2.1 [G4:~/gnu/testgpc/demos] adriaan% gcc -v Reading specs from /Developer/Pascal/gpc321d3/lib/gcc-lib/powerpc-apple-darwin6.3/3.2.1/ specs Configured with: ../gpc-3.2.1/configure --enable-languages=pascal,c --prefix=/Developer/Pascal/gpc321d3 Thread model: single gcc version 3.2.1
Regards,
Adriaan van Os
Adriaan van Os wrote:
I am experimenting a bit with gpc and gcc:
[G4:~/gnu/testgpc/demos] adriaan% gcc hello.pas gcc: Internal GPC problem: internal option `--amtmpfile' not given
Is this a compiler, configure or install problem ? Or is it a non-feature ?
A usage problem. ;-) The `gcc' driver doesn't support automake, so you can't use it to compile Pascal programs yet. It might work with `--no-automake' and building everything manually (and linking with `-lgpc -lm' explicitly).
In the future, automake will be replaced with an external utility, and then this problem should disappear.
Frank
Frank Heckenbach wrote:
Adriaan van Os wrote:
I am experimenting a bit with gpc and gcc:
[G4:~/gnu/testgpc/demos] adriaan% gcc hello.pas gcc: Internal GPC problem: internal option `--amtmpfile' not given
Is this a compiler, configure or install problem ? Or is it a non-feature ?
A usage problem. ;-) The `gcc' driver doesn't support automake, so you can't use it to compile Pascal programs yet. It might work with `--no-automake' and building everything manually (and linking with `-lgpc -lm' explicitly).
I just found this:
[G4:~/gnu/testgpc/demos] adriaan% gcc --amtmpfile -lSystem -lgpc hello.pas
It does the job.
Adriaan van Os wrote:
I just found this:
[G4:~/gnu/testgpc/demos] adriaan% gcc --amtmpfile -lSystem -lgpc hello.pas
It does the job.
In a simple case, but not in general.
Frank