Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#54789 closed defect (invalid)

gtk2 @2.24.31_0+x11: error: stray '\177' in program

Reported by: rickyzhang82 (Ricky Zhang) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: gtk2

Description

I do upgrade macport in PowerPC Mac OS 10.4. I had compiled errors:

--->  Computing dependencies for gtk2
--->  Fetching archive for gtk2
--->  Attempting to fetch gtk2-2.24.31_0+x11.darwin_8.ppc.tbz2 from http://packages.macports.org/gtk2
--->  Attempting to fetch gtk2-2.24.31_0+x11.darwin_8.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gtk2
--->  Attempting to fetch gtk2-2.24.31_0+x11.darwin_8.ppc.tbz2 from http://lil.fr.packages.macports.org/gtk2
--->  Fetching distfiles for gtk2
--->  Attempting to fetch gtk+-2.24.31.tar.xz from http://distfiles.macports.org/gtk2
--->  Verifying checksums for gtk2
--->  Extracting gtk2
--->  Applying patches to gtk2
--->  Configuring gtk2
--->  Building gtk2
Error: Failed to build gtk2: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk2/gtk2/main.log for details.

The main.log complains a strange characters:

:info:build In file included from ../gtk/gtk.h:88,
:info:build                  from testprintfileoperation.c:2:
:info:build ../gtk/gtkfilechooser.h:240: error: stray '\177' in program
:info:build ../gtk/gtkfilechooser.h:240: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'chooser_set_filter'
:info:build gmake[2]: *** [Makefile:1551: testprintfileoperation.o] Error 1

Attachments (1)

main.log (2.3 MB) - added by rickyzhang82 (Ricky Zhang) 7 years ago.

Change History (9)

Changed 7 years ago by rickyzhang82 (Ricky Zhang)

Attachment: main.log added

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: tiger added
Port: gtk2 added; gtk2@2.24.31_0+x11 removed
Summary: gtk2@2.24.31_0+x11: Build failed in Tigergtk2 @2.24.31_0+x11: error: stray '\177' in program

comment:2 Changed 7 years ago by kencu (Ken)

try gcc6 and see if that works (or gives you a better error).

comment:3 Changed 7 years ago by rickyzhang82 (Ricky Zhang)

I don't know why. But I run port clean --dist gtk2 and install again. The error is gone. I can't replicate the issue.

Please mark this no bug.

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added
Keywords: tiger removed

Glad you got it working on retry. I was going to report back that gtk2 also built for me with no problems on Tiger ppc.

Maybe you experienced a random single-bit corruption; it is uncommon but it happens from time to time.

The error message was:

../gtk/gtkfilechooser.h:240: error: stray '\177' in program
../gtk/gtkfilechooser.h:240: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'chooser_set_filter'

Lines 240-241 of gtkfilechooser.h are:

void           gtk_file_chooser_set_filter (GtkFileChooser *chooser,
					   GtkFileFilter  *filter);

So the character before chooser_set_filter is supposed to be _, which is represented as 137 in octal or 01011111 in binary. If one bit got inadvertently flipped, making it 01111111, that would be 177 in octal.

comment:6 Changed 7 years ago by rickyzhang82 (Ricky Zhang)

wow. Thanks to dig that deep!

I wonder how can it pass checksum? If it passed checksum, that means downloaded compressed file is correct. It happens when I extract the content?

Last week, I replaced my spinning disk with a SSD. Is hardware the culprit?

comment:7 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Right, the file you downloaded from us was correct, and then a single bit got corrupted on your computer afterward, probably during the process of extracting that file. It could have been caused by bad hardware, such as RAM, disk or CPU, or by cosmic rays.

comment:8 Changed 7 years ago by rickyzhang82 (Ricky Zhang)

Ah! I know why I have to pay more for ECC ram in my home server now. Thanks!

Note: See TracTickets for help on using tickets.