Opened 15 years ago

Last modified 15 months ago

#31384 new defect

pike: build fails with segmentation fault

Reported by: peymandelshad@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: rchl2k@…, bill@…, cooljeanius (Eric Gallager)
Port: pike

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

Macports fail to install pike. Here's the log:

--->  Computing dependencies for pike
--->  Fetching archive for pike
--->  Attempting to fetch pike-7.6.112_3.darwin_10.x86_64.tbz2 from http://packages.macports.org/pike
--->  Fetching pike
--->  Verifying checksum(s) for pike
--->  Extracting pike
--->  Applying patches to pike
--->  Configuring pike
--->  Building pike
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for pike is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_pike/pike/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (2)

main.log​ (359.0 KB) - added by peymandelshad@… 15 years ago.
pike_Portfile.diff​ (2.5 KB) - added by michaelld (Michael Dickens) 12 years ago.

Download all attachments as: .zip

Change History (16)

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

Description: modified (diff)
Port: pike added

Please actually attach the main.log file indicated.

Changed 15 years ago by peymandelshad@…

Attachment: main.log​ added

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

Cc: exodusd@… added
Summary: Cannot install pike using macports → pike: build fails with segmentation fault

Ok, I see the same thing on my Snow Leopard system.

The first thing we should probably try is to update pike to the latest version, 7.8.352.

comment:3 Changed 15 years ago by rchl2k@…

Cc: rchl2k@… added

Cc Me!

comment:4 Changed 15 years ago by rchl2k@…

Can we get this sorted out, please?

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Cc: exodusd@… removed
Owner: changed from macports-tickets@… to exodusd@…

comment:6 Changed 14 years ago by bill@…

I'm the "release manager" for the Pike project; hopefully the following information will be helpful:

There's a problem with Pike compiled against newer versions of GCC/Xcode that have machine-code enabled. This problem causes segfaults very much like this. The problem is resolved in the newest development versions of pike, but the solution for 7.8 is to build with the --without-machine-code configure flag:

make CONFIGUREARGS="--without-machine-code"

Also, a new 7.8 release (7.8.696) should be out within the week.

Last edited 14 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 14 years ago by bill@…

Cc: bill@… added

Cc Me!

comment:8 Changed 13 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:9 Changed 12 years ago by michaelld (Michael Dickens)

Attaching a patch that works (without variants) for me on 10.8, Xcode 5.1.1 (Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)).

Changed 12 years ago by michaelld (Michael Dickens)

Attachment: pike_Portfile.diff​ added

comment:10 Changed 12 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added

Cc Me!

comment:11 Changed 11 years ago by mf2k (Frank Schima)

Owner: changed from exodusd@… to macports-tickets@…

This port no longer has a maintainer. See #47918.

comment:12 Changed 11 years ago by michaelld (Michael Dickens)

Cc: michaelld@… removed

Cc Me!

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

In c59105654b036ca9ae42bedde88560b0fd70c6fa/macports-ports (master):

pike: Doesn't build anywhere; set known_fail yes

See: #31384
See: #68011

comment:14 in reply to:  10 Changed 15 months ago by barracuda156

Replying to michaelld:

Fails on Nettle module:

#### Making dynamic: post_modules/Nettle
Compiling post_modules/Nettle/nettle.c
Compiling post_modules/Nettle/hash.c
Compiling post_modules/Nettle/cipher.c
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘pike_aes_set_encrypt_key’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:337: warning: ‘nettle_aes_set_encrypt_key’ is deprecated (declared at /opt/local/include/nettle/aes.h:160)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘pike_aes_set_decrypt_key’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:348: warning: ‘nettle_aes_set_decrypt_key’ is deprecated (declared at /opt/local/include/nettle/aes.h:165)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘init_AES_Info_struct’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:362: warning: ‘nettle_aes_encrypt’ is deprecated (declared at /opt/local/include/nettle/aes.h:175)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:362: warning: ‘nettle_aes_decrypt’ is deprecated (declared at /opt/local/include/nettle/aes.h:179)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘pike_cast128_set_key’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: ‘CAST128_MIN_KEY_SIZE’ undeclared (first use in this function)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: (Each undeclared identifier is reported only once
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: for each function it appears in.)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: ‘CAST128_MAX_KEY_SIZE’ undeclared (first use in this function)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:593: warning: passing argument 2 of ‘nettle_cast128_set_key’ makes pointer from integer without a cast
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:593: error: too many arguments to function ‘nettle_cast128_set_key’
WARNING: Compiler failure! Trying without optimization!
cc1: warning: -Wuninitialized is not supported without -O
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘pike_aes_set_encrypt_key’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:337: warning: ‘nettle_aes_set_encrypt_key’ is deprecated (declared at /opt/local/include/nettle/aes.h:160)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘pike_aes_set_decrypt_key’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:348: warning: ‘nettle_aes_set_decrypt_key’ is deprecated (declared at /opt/local/include/nettle/aes.h:165)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘init_AES_Info_struct’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:362: warning: ‘nettle_aes_encrypt’ is deprecated (declared at /opt/local/include/nettle/aes.h:175)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:362: warning: ‘nettle_aes_decrypt’ is deprecated (declared at /opt/local/include/nettle/aes.h:179)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod: In function ‘pike_cast128_set_key’:
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: ‘CAST128_MIN_KEY_SIZE’ undeclared (first use in this function)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: (Each undeclared identifier is reported only once
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: for each function it appears in.)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:590: error: ‘CAST128_MAX_KEY_SIZE’ undeclared (first use in this function)
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:593: warning: passing argument 2 of ‘nettle_cast128_set_key’ makes pointer from integer without a cast
/Users/hww3/pike-build/src/post_modules/Nettle/cipher.cmod:593: error: too many arguments to function ‘nettle_cast128_set_key’
Compilation command was:
/opt/local/var/macports/build/pike-6b612c49/work/Pike-v7.8.700/build/darwin-10.8.0-power-macintosh/smartlink gcc -q64 -I. -I/opt/local/var/macports/build/pike-6b612c49/work/Pike-v7.8.700/src/post_modules/Nettle -I/opt/local/var/macports/build/pike-6b612c49/work/Pike-v7.8.700/build/darwin-10.8.0-power-macintosh -I/opt/local/var/macports/build/pike-6b612c49/work/Pike-v7.8.700/src   -I/opt/local/var/macports/build/pike-6b612c49/work/Pike-v7.8.700/build/darwin-10.8.0-power-macintosh/bundles/include -I/opt/local/include -DHAVE_CONFIG_H  -g -ggdb3  -W -Wall -Wno-unused -Wcomment -Wformat -Wformat-security -Wimplicit-function-declaration -Wmultichar -Wswitch -Wuninitialized -Wpointer-arith -Wchar-subscripts -Wno-long-long -Wdeclaration-after-statement  -fPIC -DDYNAMIC_MODULE -c /opt/local/var/macports/build/pike-6b612c49/work/Pike-v7.8.700/src/post_modules/Nettle/cipher.c -o cipher.o
make[5]: *** [cipher.o] Error 1
make[4]: *** [all] Error 2
make[3]: *** [Nettle] Error 1
make[2]: *** [post_module_objects] Error 1
make[1]: *** [_make_in_builddir] Error 2
make: *** [compile] Error 2
Note: See TracTickets for help on using tickets.