* Fail building modula2.
@ 2019-06-28 20:56 Ed Smith-Rowland via gcc-patches
2019-06-29 15:42 ` Gaius Mulley
0 siblings, 1 reply; 3+ messages in thread
From: Ed Smith-Rowland via gcc-patches @ 2019-06-28 20:56 UTC (permalink / raw)
To: gaius.mulley, joseph, richard.guenther, gcc-patches
Gaius,
I tried to apply your patch and build and got the following error:
--------------------------------------------------------------------------
/home/ed/obj_modula2/./prev-gcc/xg++ -B/home/ed/obj_modula2/./prev-gcc/
-B/home/ed/bin_modula2/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/ed/gcc_git/libstdc++-v3/libsupc++
-L/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE???? -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-error=format-diag?? -fno-common??
-DHAVE_CONFIG_H -I. -Im2 -I../../gcc_git/gcc -I../../gcc_git/gcc/m2
-I../../gcc_git/gcc/../include -I../../gcc_git/gcc/../libcpp/include
-I/home/ed/obj_modula2/./gmp -I/home/ed/gcc_git/gmp
-I/home/ed/obj_modula2/./mpfr/src -I/home/ed/gcc_git/mpfr/src
-I/home/ed/gcc_git/mpc/src?? -I../../gcc_git/gcc/../libdecnumber
-I../../gcc_git/gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc_git/gcc/../libbacktrace -I/home/ed/obj_modula2/./isl/include
-I/home/ed/gcc_git/isl/include?? \
???????????????? -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/home/ed/bin_modula2/lib/gcc/\"
-DSTANDARD_LIBEXEC_PREFIX=\"/home/ed/bin_modula2/libexec/gcc/\"
-DDEFAULT_TARGET_VERSION=\"10.0.0\"
-DDEFAULT_REAL_TARGET_MACHINE=\"x86_64-pc-linux-gnu\"
-DDEFAULT_TARGET_MACHINE=\"x86_64-pc-linux-gnu\"
-DSTANDARD_BINDIR_PREFIX=\"/home/ed/bin_modula2/bin/\"
-DTOOLDIR_BASE_PREFIX=\"../../../../\" -DACCEL_DIR_SUFFIX=\"\"
-DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\""
-DTOOL_INCLUDE_DIR=\"/home/ed/bin_modula2/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../x86_64-pc-linux-gnu/include\"
-DNATIVE_SYSTEM_HEADER_DIR=\"/usr/include\" \
-DLIBSUBDIR=\"/home/ed/bin_modula2/lib/gcc/x86_64-pc-linux-gnu/10.0.0\" \
?????????????????????????????? -DPREFIX=\"/home/ed/bin_modula2\" \
?????????????????????????????? -c ../../gcc_git/gcc/m2/gm2spec.c -o m2/gm2spec.o)
../../gcc_git/gcc/m2/gm2spec.c: In function ???void add_B_prefix(unsigned
int*, cl_decoded_option**)???:
../../gcc_git/gcc/m2/gm2spec.c:275:11: error: ???fe_B_prefix??? was not
declared in this scope; did you mean ???add_B_prefix????
?? 275 |???????????????????? fe_B_prefix (xstrdup (path));
?????????? |???????????????????? ^~~~~~~~~~~
?????????? |???????????????????? add_B_prefix
../../gcc_git/gcc/m2/gm2spec.c: In function ???const char* no_link(int,
const char**)???:
../../gcc_git/gcc/m2/gm2spec.c:1406:3: error: ???allow_linker??? was not
declared in this scope
??1406 |???? allow_linker = FALSE;
?????????? |???? ^~~~~~~~~~~~
../../gcc_git/gcc/m2/gm2spec.c: In function ???void
lang_register_spec_functions()???:
../../gcc_git/gcc/m2/gm2spec.c:1416:3: error: ???fe_add_spec_function??? was
not declared in this scope; did you mean ???spec_function????
??1416 |???? fe_add_spec_function ("objects", get_objects);
?????????? |???? ^~~~~~~~~~~~~~~~~~~~
?????????? |???? spec_function
../../gcc_git/gcc/m2/Make-lang.in:59: recipe for target 'm2/gm2spec.o'
failed
make[3]: *** [m2/gm2spec.o] Error 1
make[3]: Leaving directory '/home/ed/obj_modula2/gcc'
Makefile:4734: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/ed/obj_modula2'
Makefile:26901: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/ed/obj_modula2'
Makefile:1002: recipe for target 'all' failed
make: *** [all] Error 2
--------------------------------------------------------------------------
Thanks,
Ed Smith-Rowland
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fail building modula2.
2019-06-28 20:56 Fail building modula2 Ed Smith-Rowland via gcc-patches
@ 2019-06-29 15:42 ` Gaius Mulley
2019-06-30 15:55 ` Ed Smith-Rowland via gcc-patches
0 siblings, 1 reply; 3+ messages in thread
From: Gaius Mulley @ 2019-06-29 15:42 UTC (permalink / raw)
To: Ed Smith-Rowland; +Cc: joseph, richard.guenther, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 4692 bytes --]
Ed Smith-Rowland <3dw4rd@verizon.net> writes:
> Gaius,
>
> I tried to apply your patch and build and got the following error:
> --------------------------------------------------------------------------
>
> /home/ed/obj_modula2/./prev-gcc/xg++
> -B/home/ed/obj_modula2/./prev-gcc/
> -B/home/ed/bin_modula2/x86_64-pc-linux-gnu/bin/ -nostdinc++
> -B/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
> -B/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
> -I/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
> -I/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
> -I/home/ed/gcc_git/libstdc++-v3/libsupc++
> -L/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
> -L/home/ed/obj_modula2/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
> -fno-PIE???? -g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions
> -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wno-error=format-diag?? -fno-common??
> -DHAVE_CONFIG_H -I. -Im2 -I../../gcc_git/gcc -I../../gcc_git/gcc/m2
> -I../../gcc_git/gcc/../include -I../../gcc_git/gcc/../libcpp/include
> -I/home/ed/obj_modula2/./gmp -I/home/ed/gcc_git/gmp
> -I/home/ed/obj_modula2/./mpfr/src -I/home/ed/gcc_git/mpfr/src
> -I/home/ed/gcc_git/mpc/src?? -I../../gcc_git/gcc/../libdecnumber
> -I../../gcc_git/gcc/../libdecnumber/bid -I../libdecnumber
> -I../../gcc_git/gcc/../libbacktrace
> -I/home/ed/obj_modula2/./isl/include -I/home/ed/gcc_git/isl/include??
> \
> ???????????????? -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
> -DSTANDARD_EXEC_PREFIX=\"/home/ed/bin_modula2/lib/gcc/\"
> -DSTANDARD_LIBEXEC_PREFIX=\"/home/ed/bin_modula2/libexec/gcc/\"
> -DDEFAULT_TARGET_VERSION=\"10.0.0\"
> -DDEFAULT_REAL_TARGET_MACHINE=\"x86_64-pc-linux-gnu\"
> -DDEFAULT_TARGET_MACHINE=\"x86_64-pc-linux-gnu\"
> -DSTANDARD_BINDIR_PREFIX=\"/home/ed/bin_modula2/bin/\"
> -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DACCEL_DIR_SUFFIX=\"\"
> -DENABLE_SHARED_LIBGCC -DCONFIGURE_SPECS="\"\""
> -DTOOL_INCLUDE_DIR=\"/home/ed/bin_modula2/lib/gcc/x86_64-pc-linux-gnu/10.0.0/../../../../x86_64-pc-linux-gnu/include\"
> -DNATIVE_SYSTEM_HEADER_DIR=\"/usr/include\" \
> -DLIBSUBDIR=\"/home/ed/bin_modula2/lib/gcc/x86_64-pc-linux-gnu/10.0.0\" \
> ?????????????????????????????? -DPREFIX=\"/home/ed/bin_modula2\" \
> ?????????????????????????????? -c ../../gcc_git/gcc/m2/gm2spec.c -o m2/gm2spec.o)
> ../../gcc_git/gcc/m2/gm2spec.c: In function ???void
> add_B_prefix(unsigned int*, cl_decoded_option**)???:
> ../../gcc_git/gcc/m2/gm2spec.c:275:11: error: ???fe_B_prefix??? was
> not declared in this scope; did you mean ???add_B_prefix????
> ?? 275 |???????????????????? fe_B_prefix (xstrdup (path));
> ?????????? |???????????????????? ^~~~~~~~~~~
> ?????????? |???????????????????? add_B_prefix
> ../../gcc_git/gcc/m2/gm2spec.c: In function ???const char*
> no_link(int, const char**)???:
> ../../gcc_git/gcc/m2/gm2spec.c:1406:3: error: ???allow_linker??? was
> not declared in this scope
> ??1406 |???? allow_linker = FALSE;
> ?????????? |???? ^~~~~~~~~~~~
> ../../gcc_git/gcc/m2/gm2spec.c: In function ???void
> lang_register_spec_functions()???:
> ../../gcc_git/gcc/m2/gm2spec.c:1416:3: error:
> ???fe_add_spec_function??? was not declared in this scope; did you
> mean ???spec_function????
> ??1416 |???? fe_add_spec_function ("objects", get_objects);
> ?????????? |???? ^~~~~~~~~~~~~~~~~~~~
> ?????????? |???? spec_function
> ../../gcc_git/gcc/m2/Make-lang.in:59: recipe for target 'm2/gm2spec.o'
> failed
> make[3]: *** [m2/gm2spec.o] Error 1
> make[3]: Leaving directory '/home/ed/obj_modula2/gcc'
> Makefile:4734: recipe for target 'all-stage2-gcc' failed
> make[2]: *** [all-stage2-gcc] Error 2
> make[2]: Leaving directory '/home/ed/obj_modula2'
> Makefile:26901: recipe for target 'stage2-bubble' failed
> make[1]: *** [stage2-bubble] Error 2
> make[1]: Leaving directory '/home/ed/obj_modula2'
> Makefile:1002: recipe for target 'all' failed
> make: *** [all] Error 2
>
> --------------------------------------------------------------------------
>
> Thanks,
>
> Ed Smith-Rowland
Hi Ed,
many thanks for trying out the patch - did you also use the tarball from
https://gcc.gnu.org/ml/gcc-patches/2019-06/msg00832.html ?
They are required for a clean build, the patches relate to changes in
the gcc driver and Makefile/configure structure. I've just rebuilt from
the patches and tarball from the latest svn - all seems to be fine
(modulo a couple of fuzzy patches at the start).
For completeness here are the patches and tarball in .tar.gz format:
the first tarball needs to be extracted inside the gcc directory
[-- Attachment #2: m2 front end tarball --]
[-- Type: application/gzip, Size: 218914 bytes --]
[-- Attachment #3: Type: text/plain, Size: 58 bytes --]
and these need to be applied in the top level directory
[-- Attachment #4: gcc patches to build gm2 driver --]
[-- Type: application/gzip, Size: 5140 bytes --]
[-- Attachment #5: Type: text/plain, Size: 17 bytes --]
regards,
Gaius
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fail building modula2.
2019-06-29 15:42 ` Gaius Mulley
@ 2019-06-30 15:55 ` Ed Smith-Rowland via gcc-patches
0 siblings, 0 replies; 3+ messages in thread
From: Ed Smith-Rowland via gcc-patches @ 2019-06-30 15:55 UTC (permalink / raw)
To: Gaius Mulley; +Cc: joseph, richard.guenther, gcc-patches
Gaius,
I missed the fact that there are two patch sets.?? Things built like a
charm.?? Testing now.
Thank you.
Ed
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-30 15:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-28 20:56 Fail building modula2 Ed Smith-Rowland via gcc-patches
2019-06-29 15:42 ` Gaius Mulley
2019-06-30 15:55 ` Ed Smith-Rowland via gcc-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).