Opened 13 years ago

Closed 13 years ago

#31316 closed defect (fixed)

msgpack @0.5.4 build fails with llvm-gcc-4.2

Reported by: Ricky28269@… Owned by: n0ts (Naoya Nakazawa)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch llvm-gcc-4.2 Cc: ryandesign (Ryan Carsten Schmidt)
Port: msgpack

Description

Rickys-MacBook-Pro:msgpack-0.5.7 ricky$ sudo port install msgpack +universal
Password:
--->  Fetching archive for msgpack
--->  Attempting to fetch msgpack-0.5.4_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/msgpack
--->  Fetching msgpack
--->  Attempting to fetch msgpack-0.5.4.tar.gz from http://voxel.dl.sourceforge.net/msgpack
--->  Verifying checksum(s) for msgpack
--->  Extracting msgpack
--->  Configuring msgpack
--->  Building msgpack
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for msgpack is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_msgpack/msgpack/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

main.log is attached. I've tried this multiple times now, so sorry if the log file contains multiple attempts/failures.

Attachments (2)

main.log (24.0 KB) - added by Ricky28269@… 13 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_msgpack/msgpack/main.log
msgpack-clang.diff (515 bytes) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
proposed patch

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by Ricky28269@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_msgpack/msgpack/main.log

comment:1 Changed 13 years ago by Ricky28269@…

Cc: Ricky28269@… added

Cc Me!

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

Cc: ryandesign@… added; Ricky28269@… removed
Owner: changed from macports-tickets@… to naoya.n@…

Interesting, I don't actually see the error message in the log.

Things to try:

  • updating the port to 0.5.7
  • building with clang or gcc-4.2 instead of llvm-gcc-4.2
  • not building universal
  • not building parallel

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

Keywords: haspatch added

I verified that msgpack 0.5.4 builds with gcc-4.2 and clang on Snow Leopard with Xcode 3.2.6, but not with llvm-gcc-4.2; the error looks like yours.

I tried updating the port to 0.5.7 and now trying to build with llvm-gcc-4.2 hangs with 100% CPU use compiling object.o.

So I suggest we modify the port to use clang instead of llvm-gcc-4.2. I'll attach a patch.

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

Keywords: llvm-gcc-4.2 added
Summary: msgpack @0.5.4 +universal Error shell command failedmsgpack @0.5.4 build fails with llvm-gcc-4.2

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: msgpack-clang.diff added

proposed patch

comment:5 Changed 13 years ago by richard@…

Confirmed that clang works on my system as well.

I was able to build msgpack 0.5.7 for i386 using:

./configure CC="clang" CXX="clang" CFLAGS="-arch i386" CXXFLAGS="-arch i386"
make
make install

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.