[#50466] [ruby-trunk - Bug #7492][Open] Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8 — "phasis68 (Heesob Park)" <phasis@...>

23 messages 2012/12/02

[#50558] [ruby-trunk - Feature #7511][Open] short-circuiting logical implication operator — "rits (First Last)" <redmine@...>

12 messages 2012/12/04

[#50575] [ruby-trunk - Feature #7517][Open] Fixnum::MIN,MAX — "matz (Yukihiro Matsumoto)" <matz@...>

20 messages 2012/12/05

[#50755] Becoming a committer — Charlie Somerville <charlie@...>

Hi ruby-core,

21 messages 2012/12/11
[#50759] Re: Becoming a committer — Yukihiro Matsumoto <matz@...> 2012/12/11

Hi,

[#50784] Re: Becoming a committer — Charles Oliver Nutter <headius@...> 2012/12/11

It's really this easy? If so, I'll send over my public key today :)

[#50795] Re: Becoming a committer — Yukihiro Matsumoto <matz@...> 2012/12/11

Hi,

[#50806] [ruby-trunk - Feature #7548][Open] Load and Require Callbacks — "trans (Thomas Sawyer)" <transfire@...>

12 messages 2012/12/12

[#50810] [ruby-trunk - Feature #7549][Open] A Ruby Design Process — "brixen (Brian Ford)" <brixen@...>

34 messages 2012/12/12

[#50867] [ruby-trunk - Bug #7556][Assigned] test error on refinement — "usa (Usaku NAKAMURA)" <usa@...>

14 messages 2012/12/13

[#50900] [ruby-trunk - Bug #7564][Open] r38175 introduces incompatibility — "tenderlovemaking (Aaron Patterson)" <aaron@...>

14 messages 2012/12/14

[#50951] [ruby-trunk - Bug #7584][Open] Ruby hangs when shutting down an ssl connection in gc finalization — "bpot (Bob Potter)" <bobby.potter@...>

12 messages 2012/12/17

[#51076] [ruby-trunk - Feature #7604][Open] Make === comparison operator ability to delegate comparison to an argument — "prijutme4ty (Ilya Vorontsov)" <prijutme4ty@...>

12 messages 2012/12/22

[#51170] [ruby-trunk - Bug #7629][Open] Segmentation fault — "atd (Antonio Tapiador)" <atapiador@...>

13 messages 2012/12/28

[ruby-core:51140] [ruby-trunk - Bug #7606][Assigned] gcc -pie configure check is broken for OpenBSD/amd64

From: "kosaki (Motohiro KOSAKI)" <kosaki.motohiro@...>
Date: 2012-12-26 02:43:59 UTC
List: ruby-core #51140
Issue #7606 has been updated by kosaki (Motohiro KOSAKI).

Category set to build
Status changed from Open to Assigned
Assignee set to kosaki (Motohiro KOSAKI)
Priority changed from Low to High
Target version set to 2.0.0

I don't think OpenBSD support is low priority. 
----------------------------------------
Bug #7606: gcc -pie configure check is broken for OpenBSD/amd64
https://bugs.ruby-lang.org/issues/7606#change-35080

Author: kernigh (George Koehler)
Status: Assigned
Priority: High
Assignee: kosaki (Motohiro KOSAKI)
Category: build
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-23 trunk 38563) [x86_64-openbsd5.2]


=begin
I can use PIE if I compile with gcc -fPIE and link with gcc -pie.  Ruby's configure script tries to enable PIE, but the check for gcc -pie says "no".  I expected "yes".  My system runs OpenBSD 5.2 for amd64.  My compiler is the default gcc 4.2.1.

The problem is it forgot to use -fPIE when checking -pie.  Here is the relevant part of config.log:

 configure:17900: checking whether -pie is accepted as LDFLAGS
 configure:17922: gcc -o conftest  -O3 -fno-fast-math -ggdb3 -ansi -std=iso9899:199409  -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -I/usr/local/include -L/usr/local/lib -fstack-protector -Wl,-E -pie conftest.c -pthread -lm  >&5
 /usr/bin/ld: /tmp//ccYa9wrA.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
 /tmp//ccYa9wrA.o: could not read symbols: Bad value
 collect2: ld returned 1 exit status

I am attaching a patch (pie-check.diff) to solve this problem. I use -fPIE during the check for gcc -pie. I also add -fPIE to XCFLAGS only when adding -pie (or -Wl,-pie) to XLDFLAGS. With this patch, the check says "yes" and I see -pie in XLDFLAGS.
=end



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next