Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#36572 closed defect (fixed)

cuneiform: character too large for enclosing character literal type

Reported by: benjamin_steinberg@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: cuneiform

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm running Mac OS X 10.8.2 and XCode 4.5.1 (4G1004) -- cuneiform build fails. I'll attach /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_cuneiform/cuneiform/main.log

The errors are "character too large for enclosing character literal type" -- I wonder if the strings in question need to be prefixed with an L, something like this:

https://github.com/TheLevelUp/ZXingObjC/issues/3

though that might be an issue for upstream. However, I see other people have obviously built this version of cuneiform: #33708

Attachments (2)

main.log (223.5 KB) - added by benjamin_steinberg@… 11 years ago.
main.ryandesign.log.bz2 (21.9 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by benjamin_steinberg@…

Attachment: main.log added

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

Description: modified (diff)

This was not a clean build attempt. Please "sudo port clean cuneiform", then try again, then attach the new main.log file.

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.ryandesign.log.bz2 added

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

Summary: cuneiform 1.1.0 build failurecuneiform: character too large for enclosing character literal type

Actually I was able to reproduce the problem on my system (also 10.8.2 and Xcode 4.5.1) so I attached my main.log.

comment:3 in reply to:  description Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

Replying to benjamin_steinberg@…:

The errors are "character too large for enclosing character literal type" -- I wonder if the strings in question need to be prefixed with an L, something like this:

https://github.com/TheLevelUp/ZXingObjC/issues/3

though that might be an issue for upstream.

Indeed please report the problem to the developers so that they can fix it. I'm not a C programmer and don't understand the significance of prefixing a string with "L" so I don't feel comfortable making that change on my own.

However, I see other people have obviously built this version of cuneiform: #33708

Yes but that's on Lion, which is a different OS. They're probably also using a different version of Xcode, which means a different version of clang, or if Xcode < 4.2, then they wouldn't even have been using clang; they'd've been using llvm-gcc-4.2.

On the hunch that this, like so many other problems we've seen, is because clang is a bit different, I tried blacklisting it and using llvm-gcc-4.2 instead. That worked, so I committed that workaround in r98766.

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

Fixed properly in r136891, using the same fix FreeBSD used, which is indeed simply to prefix the string with L as you had suggested.

Note: See TracTickets for help on using tickets.