Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.24.0-RC1 Windows build failure with mingw.org gcc-3.4.5 #15281

Open
p5pRT opened this issue Apr 18, 2016 · 4 comments
Open

5.24.0-RC1 Windows build failure with mingw.org gcc-3.4.5 #15281

p5pRT opened this issue Apr 18, 2016 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 18, 2016

Migrated from rt.perl.org#127922 (status was 'open')

Searchable as RT127922$

@p5pRT
Copy link
Author

p5pRT commented Apr 18, 2016

From @steve-m-hay

The same compiler happily builds 5.22.2-RC1, but with 5.24.0-RC1 it falls over in PerlIO​::encoding. Probably not a blocker since the compiler is quite old (2008) and probably not widely used, if at all? Most people are on at least 4.x if not 5.x these days, and prefer mingw-w64.org over mingw.org anyway. Maybe it's simpler to drop support for mingw.org 3.x?

gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.24\" -DXS_VERSION=\"0.24\" "-I..\..\lib\CORE" encoding.c
encoding.xs​:633​: error​: initializer element is not constant
encoding.xs​:633​: error​: (near initialization for `PerlIO_encode.Open')
encoding.xs​:636​: error​: initializer element is not constant
encoding.xs​:636​: error​: (near initialization for `PerlIO_encode.Fileno')
encoding.xs​:638​: error​: initializer element is not constant
encoding.xs​:638​: error​: (near initialization for `PerlIO_encode.Read')
encoding.xs​:639​: error​: initializer element is not constant
encoding.xs​:639​: error​: (near initialization for `PerlIO_encode.Unread')
encoding.xs​:641​: error​: initializer element is not constant
encoding.xs​:641​: error​: (near initialization for `PerlIO_encode.Seek')
encoding.xs​:646​: error​: initializer element is not constant
encoding.xs​:646​: error​: (near initialization for `PerlIO_encode.Eof')
encoding.xs​:647​: error​: initializer element is not constant
encoding.xs​:647​: error​: (near initialization for `PerlIO_encode.Error')
encoding.xs​:648​: error​: initializer element is not constant
encoding.xs​:648​: error​: (near initialization for `PerlIO_encode.Clearerr')
encoding.xs​:649​: error​: initializer element is not constant
encoding.xs​:649​: error​: (near initialization for `PerlIO_encode.Setlinebuf')
encoding.xs​:651​: error​: initializer element is not constant
encoding.xs​:651​: error​: (near initialization for `PerlIO_encode.Get_bufsiz')
encoding.xs​:652​: error​: initializer element is not constant
encoding.xs​:652​: error​: (near initialization for `PerlIO_encode.Get_ptr')
encoding.xs​:653​: error​: initializer element is not constant
encoding.xs​:653​: error​: (near initialization for `PerlIO_encode.Get_cnt')
encoding.xs​:654​: error​: initializer element is not constant
encoding.xs​:654​: error​: (near initialization for `PerlIO_encode.Set_ptrcnt')
dmake​: Error code 129, while making 'encoding.o'
gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.24\" -DXS_VERSION=\"0.24\" "-I..\..\lib\CORE" encoding.c
encoding.xs​:633​: error​: initializer element is not constant
encoding.xs​:633​: error​: (near initialization for `PerlIO_encode.Open')
encoding.xs​:636​: error​: initializer element is not constant
encoding.xs​:636​: error​: (near initialization for `PerlIO_encode.Fileno')
encoding.xs​:638​: error​: initializer element is not constant
encoding.xs​:638​: error​: (near initialization for `PerlIO_encode.Read')
encoding.xs​:639​: error​: initializer element is not constant
encoding.xs​:639​: error​: (near initialization for `PerlIO_encode.Unread')
encoding.xs​:641​: error​: initializer element is not constant
encoding.xs​:641​: error​: (near initialization for `PerlIO_encode.Seek')
encoding.xs​:646​: error​: initializer element is not constant
encoding.xs​:646​: error​: (near initialization for `PerlIO_encode.Eof')
encoding.xs​:647​: error​: initializer element is not constant
encoding.xs​:647​: error​: (near initialization for `PerlIO_encode.Error')
encoding.xs​:648​: error​: initializer element is not constant
encoding.xs​:648​: error​: (near initialization for `PerlIO_encode.Clearerr')
encoding.xs​:649​: error​: initializer element is not constant
encoding.xs​:649​: error​: (near initialization for `PerlIO_encode.Setlinebuf')
encoding.xs​:651​: error​: initializer element is not constant
encoding.xs​:651​: error​: (near initialization for `PerlIO_encode.Get_bufsiz')
encoding.xs​:652​: error​: initializer element is not constant
encoding.xs​:652​: error​: (near initialization for `PerlIO_encode.Get_ptr')
encoding.xs​:653​: error​: initializer element is not constant
encoding.xs​:653​: error​: (near initialization for `PerlIO_encode.Get_cnt')
encoding.xs​:654​: error​: initializer element is not constant
encoding.xs​:654​: error​: (near initialization for `PerlIO_encode.Set_ptrcnt')
dmake​: Error code 129, while making 'encoding.o'
Unsuccessful make(ext/PerlIO-encoding)​: code=65280 at ..\make_ext.pl line 569.
dmake​: Error code 153, while making 'Extensions'

@p5pRT
Copy link
Author

p5pRT commented Apr 20, 2016

From @tonycoz

On Mon Apr 18 09​:53​:53 2016, shay wrote​:

The same compiler happily builds 5.22.2-RC1, but with 5.24.0-RC1 it
falls over in PerlIO​::encoding. Probably not a blocker since the
compiler is quite old (2008) and probably not widely used, if at all?
Most people are on at least 4.x if not 5.x these days, and prefer
mingw-w64.org over mingw.org anyway. Maybe it's simpler to drop
support for mingw.org 3.x?

Probably.

It looks like a documented limitation in gcc 3.x​:

See the end of dllimport​:

https://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Function-Attributes.html#index-g_t_0040code_007b_005f_005fdeclspec_0028dllimport_0029_007d-1639

An option for a fix might be to not use __declspec(dllimport) on gcc 3.x. This will slow down the built perl slightly.

Tony

@p5pRT
Copy link
Author

p5pRT commented Apr 20, 2016

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Apr 28, 2016

From @bulk88

On Tue Apr 19 21​:38​:00 2016, tonyc wrote​:

On Mon Apr 18 09​:53​:53 2016, shay wrote​:

The same compiler happily builds 5.22.2-RC1, but with 5.24.0-RC1 it
falls over in PerlIO​::encoding. Probably not a blocker since the
compiler is quite old (2008) and probably not widely used, if at all?
Most people are on at least 4.x if not 5.x these days, and prefer
mingw-w64.org over mingw.org anyway. Maybe it's simpler to drop
support for mingw.org 3.x?

Probably.

It looks like a documented limitation in gcc 3.x​:

See the end of dllimport​:

https://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Function-
Attributes.html#index-
g_t_0040code_007b_005f_005fdeclspec_0028dllimport_0029_007d-1639

An option for a fix might be to not use __declspec(dllimport) on gcc
3.x. This will slow down the built perl slightly.

Tony

Would a 2nd .o, without dllimport (suppressed with macros before #include) just for the vtable work?

--
bulk88 ~ bulk88 at hotmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants