| Summary: | Update request: gcc 5.5.0 | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Thomas Backlund <tmb> |
| Component: | Security | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | Sec team <security> |
| Severity: | major | ||
| Priority: | High | CC: | davidwhodgins, mageia, smelror, sysadmin-bugs, tarazed25 |
| Version: | 6 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA6-64-OK | ||
| Source RPM: | gcc | CVE: | |
| Status comment: | |||
| Bug Depends on: | |||
| Bug Blocks: | 22533, 22543, 22544 | ||
| Attachments: |
Generate a number of "hailstones"
Program containing embedded assembler code |
||
|
Description
Thomas Backlund
2018-02-05 20:29:19 CET
This one needs to go aut before or at the same as the next kernel update (probably 4.14.18) Priority:
Normal =>
High Mageia 6 :: x86_64 Installed all the packages and then updated them. Clean update. On this machine there was still a copy of the docker sources from an unrelated update. Rebuilding this should exercize some of the packages, the compiler anyway. $ cat SPECS/docker.spec | grep -i gcc BuildRequires: gcc $ bm -l < This ran smoothly and finished with: > + /usr/bin/rm -rf /home/lcl/qa/docker/after/docker/BUILDROOT/docker-17.03.1-4.mga6.x86_64 + exit 0 succeeded! Looking for ways to test some of the other components. CC:
(none) =>
tarazed25 !My Fortran days are 30 years in the past so I lifted a snippet from the IBM Knowledge Center.
PROGRAM CALCULATE
!
! Program to calculate the sum of up to n values of x**3
! where negative values are ignored.
!
IMPLICIT NONE
INTEGER I,N
REAL SUM,X,Y
READ(*,*) N
WRITE(*,*) N
SUM=0
DO I=1,N
READ(*,*) X
WRITE(*,*) X
IF (X.GE.0.0) THEN
Y=X**3
SUM=SUM+Y
END IF
END DO
WRITE(*,*) 'This is the sum of the positive cubes:',SUM
END
$ gfortran -o calculate calculate.f90
$ ./calculate
4
4
2.0
2.00000000
-3.0
-3.00000000
5.0
5.00000000
3.0
3.00000000
This is the sum of the positive cubes: 160.000000
Big deal.
$ urpmq -i gcj-tools
$MIRRORLIST: media/core/release/media_info/20170714-192548-info.xml.lzma
Name : gcj-tools
Version : 5.4.0
Release : 5.mga6
Group : Development/Java
Size : 696736 Architecture: x86_64
Source RPM : gcc-5.4.0-5.mga6.src.rpm
URL : http://gcc.gnu.org/
Summary : Java related tools from gcc 5.4.0
Description :
This package includes Java related tools built from gcc 5.4.0:
* gij: a Java ByteCode Interpreter
* gcjh: generate header files from class files
* jcf-dump: print information about class files
* gcj-dbtool: tool for manipulating class file databases
* grmic: generate stubs for Remote Method Invocation
* grmiregistry: the remote object registry
* aot-compile: ahead-of-time compiler
* gappletviewer
* gc-analyze
* gjar
* gjarsigner
* gjavah
* gkeytool
* gnative2ascii
* gorbd
* grmid
* gtnameserv
* gserialver
Leaving that alone.
Giving this an OK for x86_64 but others might like to try java or objective C.
This is one update which should definitely be tested on 32 bits.Whiteboard:
(none) =>
MGA6-64-OK Docker uses golang instead of gcc. Maybe so but isn't gcc involved as well? BuildRequires: gcc BuildRequires: glibc-static-devel # ensure build uses golang 1.4 or above BuildRequires: golang >= 1.7 BuildRequires: libsqlite3-devel BuildRequires: golang-net-devel BuildRequires: go-md2man BuildRequires: device-mapper-devel BuildRequires: btrfs-devel BuildRequires: systemd-devel On the other hand I don't really understand the spec file so gcc needs another compilation test. Tomorrow sometime.
Len Lawrence
2018-02-06 02:54:16 CET
Whiteboard:
MGA6-64-OK =>
(none) Honestly I don't know whether GCC is used to build some portion of it or not, one would have to check a build log to know for sure, but it's probably better to build something that's actually written in C to be sure to have a good test :o).
Thomas Backlund
2018-02-06 07:30:29 CET
Blocks:
(none) =>
22533 kernel in bug 22533 is now built with this gcc-5.5.0-1 so we know atleast it works there :) System: MGA6::x86_64 Dell Precision T1600 I've compiled a new kernel and other packages without any issues. Cheers, Stig CC:
(none) =>
smelror @stig, David and tmb. We can't do better than that but for form's sake I shall hack something in C. Created attachment 9956 [details]
Generate a number of "hailstones"
$ gcc -o hailstones hailstones.c
$ hailstones <some integer>
Created attachment 9958 [details]
Program containing embedded assembler code
$ gcc -o mmx mmx.c
$ ./mmx
MMX is NOT detected !
Found a couple of trivial programs in my archives - see attachments. They work OK anyway. Also ran a local build of openjpeg2 which is all C as far as I can see. $ mgarepo co -d 6 openjpeg2 $ cd openjpeg2 $ bm -ls $ bm -l That worked fine.
Len Lawrence
2018-02-06 18:35:42 CET
Whiteboard:
(none) =>
MGA6-64-OK Mageia 6:: 1586 in virtualbox
Installed all the packages.
Used the scripts from the 64-bit tests:
$ gfortran -o calculate calculate.f90
$ ./calculate
7
7
1
1.00000000
4
4.00000000
5
5.00000000
2
2.00000000
9
9.00000000
10
10.0000000
8
8.00000000
This is the sum of the positive cubes: 2439.00000
$ gcc -o hailstones hailstones.c
$ ./hailstones 200
26 hailstones generated from 200
$ gcc -o mmx mmx.c
$ ./mmx
MMX is NOT detected !
For the local build hit a problem trying to connect to SVN. Using the same public and private keys and config file as on the host.
svn: E210002: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.
svn: E210002: Network connection closed unexpectedly
Need to investigate this.
Installed and tested without issues. Tested by compiling several C and C++ projects (including some from github), with unit tests, and running both the main programs and the tests. Also cross-compiled to target a x86 arch on a x86_64 build system. No noticeable regressions. System: Mageia 6, x86_64, Intel CPU. $ uname -a Linux marte 4.14.16-desktop-1.mga6 #1 SMP Wed Jan 31 20:50:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux $ rpm -qa | egrep 'gcc|stdc' | sort gcc-5.5.0-1.mga6 gcc-c++-5.5.0-1.mga6 gcc-cpp-5.5.0-1.mga6 libgcc1-5.5.0-1.mga6 libstdc++5-3.3.6-15.mga6 libstdc++5-devel-3.3.6-15.mga6 libstdc++6-5.5.0-1.mga6 libstdc++-devel-5.5.0-1.mga6 CC:
(none) =>
mageia
Thomas Backlund
2018-02-08 10:07:42 CET
Blocks:
(none) =>
22543
Thomas Backlund
2018-02-08 10:09:22 CET
Blocks:
(none) =>
22544 Advisory committed to svn. Validating the update. Keywords:
(none) =>
advisory, validated_update An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGASA-2018-0124.html Status:
NEW =>
RESOLVED |