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

lib: fix error on MacOS #6032

Closed
wants to merge 1 commit into from

Conversation

rubenk
Copy link
Contributor

@rubenk rubenk commented Mar 18, 2020

Sections use a different syntax for Mach-O executables.

Fixes:

lib/bfd.c:35:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a
comma
DEFINE_MTYPE_STATIC(LIB, BFD_INFO, "BFD info")
^
./lib/memory.h:140:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
DEFINE_MTYPE_ATTR(group, name, static, desc)
^
./lib/memory.h:110:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
attribute((section(".data.mtypes"))) = { {
^
1 error generated.

Signed-off-by: Ruben Kerkhof ruben@rubenkerkhof.com

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/3f3ea50f2f5f9bd11fd2ea4fbdc7dcc9/raw/07a8e684d5bc430e1b31623df4d2a1b23f720dcd/cr_6032_1584543107.diff | git apply

diff --git a/lib/memory.h b/lib/memory.h
index cf3390af4..f89a5c299 100644
--- a/lib/memory.h
+++ b/lib/memory.h
@@ -83,13 +83,12 @@ struct memgroup {
 
 #define DECLARE_MGROUP(name) extern struct memgroup _mg_##name;
 #define DEFINE_MGROUP(mname, desc)                                             \
-	struct memgroup _mg_##mname                                            \
-		ATTRIBUTE_MGROUPS = {                                          \
-			.name = desc,                                          \
-			.types = NULL,                                         \
-			.next = NULL,                                          \
-			.insert = NULL,                                        \
-			.ref = NULL,                                           \
+	struct memgroup _mg_##mname ATTRIBUTE_MGROUPS = {                      \
+		.name = desc,                                                  \
+		.types = NULL,                                                 \
+		.next = NULL,                                                  \
+		.insert = NULL,                                                \
+		.ref = NULL,                                                   \
 	};                                                                     \
 	static void _mginit_##mname(void) __attribute__((_CONSTRUCTOR(1000))); \
 	static void _mginit_##mname(void)                                      \
@@ -119,14 +118,13 @@ struct memgroup {
 #endif
 
 #define DEFINE_MTYPE_ATTR(group, mname, attr, desc)                            \
-	attr struct memtype MTYPE_##mname[1]                                   \
-		ATTRIBUTE_MTYPES = { {                                         \
-			.name = desc,                                          \
-			.next = NULL,                                          \
-			.n_alloc = 0,                                          \
-			.size = 0,                                             \
-			.ref = NULL,                                           \
-	} };                                                                   \
+	attr struct memtype MTYPE_##mname[1] ATTRIBUTE_MTYPES = {{             \
+		.name = desc,                                                  \
+		.next = NULL,                                                  \
+		.n_alloc = 0,                                                  \
+		.size = 0,                                                     \
+		.ref = NULL,                                                   \
+	}};                                                                    \
 	static void _mtinit_##mname(void) __attribute__((_CONSTRUCTOR(1001))); \
 	static void _mtinit_##mname(void)                                      \
 	{                                                                      \
@@ -134,7 +132,7 @@ struct memgroup {
 			_mg_##group.insert = &_mg_##group.types;               \
 		MTYPE_##mname->ref = _mg_##group.insert;                       \
 		*_mg_##group.insert = MTYPE_##mname;                           \
-		_mg_##group.insert = &MTYPE_##mname->next;                      \
+		_mg_##group.insert = &MTYPE_##mname->next;                     \
 	}                                                                      \
 	static void _mtfini_##mname(void) __attribute__((_DESTRUCTOR(1001)));  \
 	static void _mtfini_##mname(void)                                      \

If you are a new contributor to FRR, please see our contributing guidelines.

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11265/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Failed

Checkout code: Failed (click for details) Checkout code: No useful log found

@rubenk
Copy link
Contributor Author

rubenk commented Mar 18, 2020

Please note I tried to verify that these attributes actually add new segments into the binary, but they don't show up on Linux in the output of readelf -a, before or after this change.

I can't find where we actually use this functionality (separate segment per MTYPE), so perhaps the better change here would be to remove the attributes altogether? @eqvinox what do you think?

@rubenk
Copy link
Contributor Author

rubenk commented Mar 18, 2020

ci:rerun

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11266/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Failed

Checkout code: Failed (click for details) Checkout code: No useful log found

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 18, 2020

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/6032 973ec7c
Date 03/18/2020
Start 11:10:28
Finish 11:36:18
Run-Time 25:50
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-03-18-11:10:28.txt
Log autoscript-2020-03-18-11:11:24.log.bz2
Memory 493 459 418

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: FAILED

See below for issues.
CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11266/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Get source / Pull Request: Successful

Building Stage: Successful

Basic Tests: Failed

Topotest tests on Ubuntu 16.04 i386: Failed (click for details)

Topology Test Results are at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-TOPOI386-11266/test

Topology Tests failed for Topotest tests on Ubuntu 16.04 i386:

2020-03-18 18:14:46,207 ERROR: 'router_json_cmp' failed after 5.09 seconds
2020-03-18 18:14:46,209 ERROR: assert failed at "test_bfd_bgp_cbit_topo3/test_bfd_comes_back_again": "r1" JSON output mismatches
assert json value is different (
  --- Expected value
  +++ Current value
  @@ -2,0 +3 @@
  +        "detect-multiplier": 3, 
  @@ -3,0 +5 @@
  +        "downtime": 0, 
  @@ -4,0 +7 @@
  +        "id": 712171189, 
  @@ -9 +12,2 @@
  -        "remote-diagnostic": "ok", 
  +        "remote-detect-multiplier": 3, 
  +        "remote-diagnostic": "administratively down", 
  @@ -11,4 +15,6 @@
  -        "remote-receive-interval": 300, 
  -        "remote-transmit-interval": 300, 
  -        "status": "up", 
  -        "transmit-interval": 300
  +        "remote-id": 4049572763, 
  +        "remote-receive-interval": 1000, 
  +        "remote-transmit-interval": 1000, 
  +        "status": "down", 
  +        "transmit-interval": 300, 
  +        "vrf": "default")
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
*** defaultIntf: warning: r1 has no interfaces
2020-03-18 18:38:55,051 ERROR: '_bgp_has_routes' failed after 38.17 seconds
2020-03-18 18:45:13,468 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 1514, in create_bgp_community_lists
    build=build)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 236, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 389, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp community-list standard ANY permit 0:-1 



2020-03-18 18:45:13,599 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 1514, in create_bgp_community_lists
    build=build)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 236, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 389, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp community-list standard ANY permit 0:65536 



2020-03-18 18:45:13,732 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 1514, in create_bgp_community_lists
    build=build)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 236, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 389, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 0:4294967296 



2020-03-18 18:45:13,872 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 1514, in create_bgp_community_lists
    build=build)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 236, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 389, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: % Malformed community-list value
line 2: Failure to communicate[13] to bgpd, line: bgp large-community-list standard ANY permit 0:-1:1 



2020-03-18 18:47:10,054 ERROR: Traceback (most recent call last):
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 1514, in create_bgp_community_lists
    build=build)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 236, in create_common_configuration
    load_config_to_router(tgen, router)
  File "/root/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-TOPOI386/topotests/lib/common_config.py", line 389, in load_config_to_router
    raise InvalidCLIError("%s" % output)
InvalidCLIError: line 2: % Command incomplete[4]: bgp large-community-list standard Test1 permit  



RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
2020-03-18 18:52:52,892 ERROR: PIMd StdErr Log:% No Path to RP address specified: 192.168.100.1

2020-03-18 18:52:54,938 ERROR: PIMd StdErr Log:% No Path to RP address specified: 192.168.100.1

2020-03-18 18:53:01,083 ERROR: PIMd StdErr Log:% No Path to RP address specified: 192.168.100.1

RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument

see full log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11266/artifact/TOPOI386/ErrorLog/log_topotests.txt

Successful on other platforms/tests
  • Debian 9 deb pkg check
  • Topology tests on Ubuntu 16.04 amd64
  • IPv4 protocols on Ubuntu 14.04
  • Fedora 29 rpm pkg check
  • Ubuntu 12.04 deb pkg check
  • Static analyzer (clang)
  • Topology tests on Ubuntu 18.04 amd64
  • IPv6 protocols on Ubuntu 14.04
  • Ubuntu 16.04 deb pkg check
  • CentOS 7 rpm pkg check
  • Debian 10 deb pkg check
  • Ubuntu 14.04 deb pkg check
  • IPv4 ldp protocol on Ubuntu 16.04
  • Addresssanitizer topotest
  • Debian 8 deb pkg check

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11266/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: pkg-js-tools-test-is-missing
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11265/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11265/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: pkg-js-tools-test-is-missing
W: frr-doc: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr-pythontools: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200318-07-g973ec7ca4-0 (missing) -> 7.4-dev-20200318-07-g973ec7ca4-0~deb10u1

@rubenk
Copy link
Contributor Author

rubenk commented Mar 18, 2020

ci:rerun

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11277/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Copy link

@polychaeta polychaeta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to FRR!

Click for style suggestions

To apply these suggestions:

curl -s https://gist.githubusercontent.com/polychaeta/3d4d29a827ac1ab8ac227cd8a8a771d7/raw/07a8e684d5bc430e1b31623df4d2a1b23f720dcd/cr_6032_1584639330.diff | git apply

diff --git a/lib/memory.h b/lib/memory.h
index cf3390af4..f89a5c299 100644
--- a/lib/memory.h
+++ b/lib/memory.h
@@ -83,13 +83,12 @@ struct memgroup {
 
 #define DECLARE_MGROUP(name) extern struct memgroup _mg_##name;
 #define DEFINE_MGROUP(mname, desc)                                             \
-	struct memgroup _mg_##mname                                            \
-		ATTRIBUTE_MGROUPS = {                                          \
-			.name = desc,                                          \
-			.types = NULL,                                         \
-			.next = NULL,                                          \
-			.insert = NULL,                                        \
-			.ref = NULL,                                           \
+	struct memgroup _mg_##mname ATTRIBUTE_MGROUPS = {                      \
+		.name = desc,                                                  \
+		.types = NULL,                                                 \
+		.next = NULL,                                                  \
+		.insert = NULL,                                                \
+		.ref = NULL,                                                   \
 	};                                                                     \
 	static void _mginit_##mname(void) __attribute__((_CONSTRUCTOR(1000))); \
 	static void _mginit_##mname(void)                                      \
@@ -119,14 +118,13 @@ struct memgroup {
 #endif
 
 #define DEFINE_MTYPE_ATTR(group, mname, attr, desc)                            \
-	attr struct memtype MTYPE_##mname[1]                                   \
-		ATTRIBUTE_MTYPES = { {                                         \
-			.name = desc,                                          \
-			.next = NULL,                                          \
-			.n_alloc = 0,                                          \
-			.size = 0,                                             \
-			.ref = NULL,                                           \
-	} };                                                                   \
+	attr struct memtype MTYPE_##mname[1] ATTRIBUTE_MTYPES = {{             \
+		.name = desc,                                                  \
+		.next = NULL,                                                  \
+		.n_alloc = 0,                                                  \
+		.size = 0,                                                     \
+		.ref = NULL,                                                   \
+	}};                                                                    \
 	static void _mtinit_##mname(void) __attribute__((_CONSTRUCTOR(1001))); \
 	static void _mtinit_##mname(void)                                      \
 	{                                                                      \
@@ -134,7 +132,7 @@ struct memgroup {
 			_mg_##group.insert = &_mg_##group.types;               \
 		MTYPE_##mname->ref = _mg_##group.insert;                       \
 		*_mg_##group.insert = MTYPE_##mname;                           \
-		_mg_##group.insert = &MTYPE_##mname->next;                      \
+		_mg_##group.insert = &MTYPE_##mname->next;                     \
 	}                                                                      \
 	static void _mtfini_##mname(void) __attribute__((_DESTRUCTOR(1001)));  \
 	static void _mtfini_##mname(void)                                      \

If you are a new contributor to FRR, please see our contributing guidelines.

@qlyoung
Copy link
Member

qlyoung commented Mar 19, 2020

please apply the style suggestions

Sections use a different syntax for Mach-O executables.

Fixes:

lib/bfd.c:35:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a
      comma
DEFINE_MTYPE_STATIC(LIB, BFD_INFO, "BFD info")
^
./lib/memory.h:140:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:110:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \
                                       ^
1 error generated.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 19, 2020

Outdated results 💚

Basic BGPD CI results: SUCCESS, 0 tests failed

_ _
Result SUCCESS git merge/6032 a56ce75
Date 03/19/2020
Start 15:13:29
Finish 15:39:18
Run-Time 25:49
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-03-19-15:13:29.txt
Log autoscript-2020-03-19-15:14:25.log.bz2
Memory 485 481 418

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11309/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11309/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: pkg-js-tools-test-is-missing
W: frr-pythontools: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-ga56ce75fc-0 (missing) -> 7.4-dev-20200319-03-ga56ce75fc-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-ga56ce75fc-0 (missing) -> 7.4-dev-20200319-03-ga56ce75fc-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-ga56ce75fc-0 (missing) -> 7.4-dev-20200319-03-ga56ce75fc-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-ga56ce75fc-0 (missing) -> 7.4-dev-20200319-03-ga56ce75fc-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-ga56ce75fc-0 (missing) -> 7.4-dev-20200319-03-ga56ce75fc-0~deb10u1

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11315/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Checkout code: Successful with additional warnings
Report for memory.h | 2 issues
===============================================
< ERROR: space required after that close brace '}'
< #127: FILE: /tmp/f1-8760/memory.h:127:

Warnings Generated during build:

Debian 10 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 10 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-11315/artifact/DEB10BUILD/ErrorLog/log_lintian.txt)

W: frr source: pkg-js-tools-test-is-missing
W: frr source: pkg-js-tools-test-is-missing
W: frr-pythontools: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-gad26e0926-0 (missing) -> 7.4-dev-20200319-03-gad26e0926-0~deb10u1
W: frr-doc: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-gad26e0926-0 (missing) -> 7.4-dev-20200319-03-gad26e0926-0~deb10u1
W: frr: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-gad26e0926-0 (missing) -> 7.4-dev-20200319-03-gad26e0926-0~deb10u1
W: frr-snmp: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-gad26e0926-0 (missing) -> 7.4-dev-20200319-03-gad26e0926-0~deb10u1
W: frr-rpki-rtrlib: changelog-file-missing-explicit-entry 6.0-2 -> 7.4-dev-20200319-03-gad26e0926-0 (missing) -> 7.4-dev-20200319-03-gad26e0926-0~deb10u1

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 19, 2020

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/6032 ad26e09
Date 03/19/2020
Start 17:26:26
Finish 17:52:23
Run-Time 25:57
Total 1815
Pass 1815
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2020-03-19-17:26:26.txt
Log autoscript-2020-03-19-17:27:23.log.bz2
Memory 488 461 418

For details, please contact louberger

Copy link
Contributor

@eqvinox eqvinox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK on change, but needs polish.

#define ATTRIBUTE_MGROUPS __attribute__((section("__DATA,mgroups")))
#else
#define ATTRIBUTE_MGROUPS __attribute__((section(".data.mgroups")))
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, but

  • this belongs in lib/compiler.h
  • please make it one macro with a parameterized section name
#ifdef __MACH__
#define _DATA_SECTION(name) __attribute__((section("__DATA," name)))
#else
#define _DATA_SECTION(name) __attribute__((section(".data." name)))
#endif

(Note consecutive string literals in C are automatically concatenated, "foo" "bar" is the same as "foobar". This does work correctly for GCC attribute parameters.)

would be used like this:
struct memgroup _mg_##mname _DATA_SECTION("mgroups")

(we have some macros with the __attribute__ included in the macro, and some without the __attribute__ - I don't really care much either way on that... maybe we should clean that up and make it consistent one way or another.)

@qlyoung
Copy link
Member

qlyoung commented Jun 9, 2020

@rubenk are you planning to address the comments and update this PR? If not please let us know so we can give the work to someone else to finish up

@donaldsharp
Copy link
Member

@polychaeta autoclose in 1 week

@polychaeta polychaeta closed this Nov 4, 2020
httpstorm added a commit to httpstorm/openwrt.packages that referenced this pull request Apr 30, 2024
Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens");
^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] FRRouting/frr#6032

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
httpstorm added a commit to httpstorm/openwrt.packages that referenced this pull request Apr 30, 2024
Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens");
^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] FRRouting/frr#6032

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
httpstorm added a commit to httpstorm/openwrt.packages that referenced this pull request Apr 30, 2024
Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens");
^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] FRRouting/frr#6032

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
httpstorm added a commit to httpstorm/openwrt.packages that referenced this pull request Apr 30, 2024
Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens"); ^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] FRRouting/frr#6032
[2] FRRouting/frr#15890

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
robimarko pushed a commit to openwrt/packages that referenced this pull request Apr 30, 2024
Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens"); ^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] FRRouting/frr#6032
[2] FRRouting/frr#15890

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants