Opened 11 months ago

Closed 7 months ago

Last modified 6 months ago

#68964 closed defect (fixed)

texinfo @7.1 fails to build on Tiger: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mcontext64_t'

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: tiger Cc: gombang (Gombang Nan Cengka)
Port: texinfo, wget

Description

:info:build /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -pipe -Os -arch ppc -MT libgnu_a-error.o -MD -MP -MF .deps/libgnu_a-error.Tpo -c -o libgnu_a-error.o `test -f 'error.c' || echo './'`error.c
:info:build /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -pipe -Os -arch ppc -MT libgnu_a-exitfail.o -MD -MP -MF .deps/libgnu_a-exitfail.Tpo -c -o libgnu_a-exitfail.o `test -f 'exitfail.c' || echo './'`exitfail.c
:info:build /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -pipe -Os -arch ppc -MT libgnu_a-free.o -MD -MP -MF .deps/libgnu_a-free.Tpo -c -o libgnu_a-free.o `test -f 'free.c' || echo './'`free.c
:info:build /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -pipe -Os -arch ppc -MT libgnu_a-getopt.o -MD -MP -MF .deps/libgnu_a-getopt.Tpo -c -o libgnu_a-getopt.o `test -f 'getopt.c' || echo './'`getopt.c
:info:build In file included from /usr/include/sys/wait.h:110,
:info:build                  from /usr/include/stdlib.h:64,
:info:build                  from ./stdlib.h:36,
:info:build                  from error.c:29:
:info:build /usr/include/sys/signal.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mcontext64_t'
:info:build /usr/include/sys/signal.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ucontext64_t'
:info:build mv -f .deps/libgnu_a-exitfail.Tpo .deps/libgnu_a-exitfail.Po
:info:build /opt/local/bin/gcc-apple-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..   -I/opt/local/include  -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -pipe -Os -arch ppc -MT libgnu_a-getopt1.o -MD -MP -MF .deps/libgnu_a-getopt1.Tpo -c -o libgnu_a-getopt1.o `test -f 'getopt1.c' || echo './'`getopt1.c
:info:build mv -f .deps/libgnu_a-free.Tpo .deps/libgnu_a-free.Po
:info:build make[4]: *** [libgnu_a-error.o] Error 1

Attachments (1)

texinfo_10.4.11.log (137.9 KB) - added by barracuda156 11 months ago.

Download all attachments as: .zip

Change History (10)

Changed 11 months ago by barracuda156

Attachment: texinfo_10.4.11.log added

comment:1 Changed 11 months ago by barracuda156

wget also fails with this error:

In file included from /usr/include/sys/wait.h:110,
                 from ./sys/wait.h:28,
                 from /usr/include/stdlib.h:64,
                 from ./stdlib.h:36,
                 from md2-stream.c:27:
/usr/include/sys/signal.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mcontext64_t'
/usr/include/sys/signal.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ucontext64_t'
/opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I../src  -DDEFAULT_TEXT_DOMAIN=\"wget-gnulib\" -I/opt/local/include   -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -DNDEBUG -pipe -Os -std=c99 -arch ppc -MT libgnu_a-md4-stream.o -MD -MP -MF .deps/libgnu_a-md4-stream.Tpo -c -o libgnu_a-md4-stream.o `test -f 'md4-stream.c' || echo './'`md4-stream.c
mv -f .deps/libgnu_a-concat-filename.Tpo .deps/libgnu_a-concat-filename.Po
/opt/local/bin/gcc-apple-4.2 -DHAVE_CONFIG_H -I. -I../src  -DDEFAULT_TEXT_DOMAIN=\"wget-gnulib\" -I/opt/local/include   -Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef -Wno-unused-function -Wno-unused-parameter -DNDEBUG -pipe -Os -std=c99 -arch ppc -MT libgnu_a-md4.o -MD -MP -MF .deps/libgnu_a-md4.Tpo -c -o libgnu_a-md4.o `test -f 'md4.c' || echo './'`md4.c
In file included from /usr/include/sys/param.h:110,
                 from ./minmax.h:39,
                 from md2.c:30:
/usr/include/sys/signal.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mcontext64_t'
/usr/include/sys/signal.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ucontext64_t'
md2-stream.c: In function 'md2_stream':
md2-stream.c:78: warning: implicit declaration of function 'ferror_unlocked'
md2-stream.c:89: warning: implicit declaration of function 'feof_unlocked'
In file included from /usr/include/sys/wait.h:110,
                 from ./sys/wait.h:28,
                 from /usr/include/stdlib.h:64,
                 from ./stdlib.h:36,
                 from md4-stream.c:27:
/usr/include/sys/signal.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mcontext64_t'
/usr/include/sys/signal.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ucontext64_t'
make[3]: *** [libgnu_a-md2.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [libgnu_a-md2-stream.o] Error 1
md4-stream.c: In function 'md4_stream':
md4-stream.c:78: warning: implicit declaration of function 'ferror_unlocked'
md4-stream.c:89: warning: implicit declaration of function 'feof_unlocked'
make[3]: *** [libgnu_a-md4-stream.o] Error 1

comment:2 Changed 11 months ago by barracuda156

Port: wget added

comment:3 Changed 11 months ago by kencu (Ken)

you’ll see this error many times on Tiger in various ports.

sys/signal.h changed quite a bit between Tiger and Leopard, and has stayed stable since.

Many Tiger builds would work better if you could use the 10.5 SDK to build things on Tiger, but there are problems doing that nobody ever sorted out.

The kinds of fixes needed can be seen in this patch by Evan

https://github.com/macports/macports-ports/blob/master/lang/ruby22/files/patch-ruby22-tigeri386.diff

Or see what Jeremy did in the ld64 portfile.

You do learn a great deal about MacOS building by fixing Tiger errors, though. Touches many things.

comment:4 Changed 9 months ago by gombang (Gombang Nan Cengka)

Cc: gombang added

comment:5 in reply to:  3 ; Changed 9 months ago by barracuda156

Replying to kencu:

you’ll see this error many times on Tiger in various ports.

Is it possible to fix these somehow via legacysupport? It is unrealistic to patch every affected port manually (unrealistic in a sense none of us gonna bother doing that).

comment:6 in reply to:  5 Changed 9 months ago by kencu (Ken)

Replying to barracuda156:

Replying to kencu:

you’ll see this error many times on Tiger in various ports.

Is it possible to fix these somehow via legacysupport? It is unrealistic to patch every affected port manually (unrealistic in a sense none of us gonna bother doing that).

sure, it's possible you could sort something like that out for legacysupport.

comment:7 in reply to:  3 Changed 9 months ago by barracuda156

Replying to kencu:

Ken, could you perhaps close this as a duplicate of #67248

Version 0, edited 9 months ago by barracuda156 (next)

comment:8 Changed 7 months ago by kencu (Ken)

Resolution: fixed
Status: newclosed

comment:9 Changed 6 months ago by ballapete (Peter "Pete" Dyballa)

It happened today: texinfo @7.1_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2024-04-30T08:20:51+0200'.

Note: See TracTickets for help on using tickets.